Repository navigation
Competition Delete - clean up everything when a competition is deleted - #2626
Open
ihsaan-ullah wants to merge 2 commits into
Open
ihsaan-ullah wants to merge 2 commits into
ihsaan-ullah wants to merge 2 commits into
Conversation
Didayolo
force-pushed
the
competition_delete_cleanup
branch
from
October 12, 2026 12:21
90bc7ef to
8aab533
Compare
ihsaan-ullah
force-pushed
the
competition_delete_cleanup
branch
2 times, most recently
from
October 21, 2026 08:35
bbd42a2 to
f5084f2
Compare
ihsaan-ullah
force-pushed
the
competition_delete_cleanup
branch
from
November 9, 2026 12:49
f5084f2 to
6c25ece
Compare
ihsaan-ullah
force-pushed
the
competition_delete_cleanup
branch
from
November 13, 2026 20:47
6c25ece to
103e5cd
Compare
ihsaan-ullah
force-pushed
the
competition_delete_cleanup
branch
from
November 18, 2026 12:32
103e5cd to
5cb9b9d
Compare
- Delete all competition data and files, not just the competition record - Add a delete dialog showing what will be deleted - Let organizers choose to also delete tasks and phase datasets - Keep tasks and datasets that other competitions still use - Only the competition creator can delete it - Add tests for deleting and for the delete preview
- Renamed deletion.py to competition_deletion.py so its name says what it deletes - Updated the import and the test that use it
Didayolo
force-pushed
the
competition_delete_cleanup
branch
from
November 24, 2026 10:33
5cb9b9d to
69f7bc5
Compare
This branch has not been deployed
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.
Description
NOTE
This should be reviewed and tested carefully because it involves deletion of data and files
Issues this PR resolves
Screenshots
NOTE:
Delete competition tasksandDelete phase datasetsare optionalDelete preview modal without any selection
Delete preview modal with selection
When delete is done, a celery task runs with these logs
How to test
Step 1: Upload an fill the competition
NOTE: you will need competition ID for step 2 and 4
Step 2: Get stats before deletion
You will need this script to get a preview of what data is there for a competition: check_delete_preview.py
You can run it using the command below:
NOTE: the output will be saved in
preview.txtStep 3: Delete competition
You can delete it the regular way. See the screenshot to see different options you will get during deletion
Step 4: Get stats after deletion
You will need this script to get deleted stats after you delete the competition: check_delete_status.py
NOTE: this step takes as input the
preview.txtthat you generated in step 2, and will outputstatus.txtChecklist