Repository navigation
feat(frontend): let admins delete a hackathon from the Hackathons page - #450
Merged
Merged
Conversation
The backend has had HackathonService.Delete (a soft delete) for a while, but nothing in the UI called it, so a hackathon could only be removed over the API. Each row on the admin Hackathons page (/manage/hackathons) now has a Delete button. It asks once more in the app's danger confirm dialog, then calls Delete and stays on the page: the list reloads without the row, and a line above the table says what happened. A refusal or an already-deleted hackathon is reported there too. Only this admin page offers it for now. The backend still also lets owners delete their own hackathon. There is no Restore RPC yet, so a deleted hackathon can't be brought back from the app.
A hackathon delete cannot be undone from the app, and a single confirm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Admins can delete a hackathon
Before, a hackathon could only be deleted by calling the API directly. Test runs and mistakes stayed on the platform for good. Now a platform admin can delete one from the admin
Hackathonspage.Hackathonshas aDeletebutton. The admin types the hackathon's name to confirm, then it is gone for everyone.Delete hackathonstays locked until the typed name matches exactly. Spaces at either end are ignored.Left out: restoring a deleted hackathon. That needs a new backend call, so it comes in a separate PR.