Repository navigation
Submission Delete - clean up everything when a submission is deleted - #2629
Merged
Merged
Conversation
Didayolo
force-pushed
the
submission_delete_cleanup
branch
from
October 12, 2026 12:23
49ff269 to
eeb95d1
Compare
ihsaan-ullah
force-pushed
the
submission_delete_cleanup
branch
2 times, most recently
from
October 21, 2026 08:35
0476bac to
52dc794
Compare
ihsaan-ullah
force-pushed
the
submission_delete_cleanup
branch
from
November 9, 2026 12:46
52dc794 to
474b715
Compare
ihsaan-ullah
force-pushed
the
submission_delete_cleanup
branch
from
November 13, 2026 20:43
474b715 to
905bbf3
Compare
- Delete child submissions, scores, logs, zips and files with a submission - Keep a zip when another submission still uses it - Soft delete also cleans up child submissions, keeping only the records - Delete failed submissions now cleans up everything and updates counts - Failed submissions counter no longer counts child submissions - Clearer messages before deleting submissions - Add tests for deleting, soft deleting and deleting failed submissions
Didayolo
force-pushed
the
submission_delete_cleanup
branch
from
November 19, 2026 13:47
905bbf3 to
2d8c697
Compare
Member
|
When a child submission is deleted without its parent, the parent loses the child’s scores (they're attached to both, see |
Didayolo
self-requested a review
November 19, 2026 14:04
Didayolo
approved these changes
Nov 19, 2026
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
How to test
Step 1: Upload
NOTE: note down the submission ID you want to delete
Step 2: Submission delete preview
Run this script to get a preview of what fields and files are associated with a submission: check_submission_delete_preview.py
Run the script using the command:
NOTE: this script saves the output in
preview.txtStep 3: Submission delete
Delete your submission in one of the places:
Step 4: Submission delete status
Run this script to get a status of the deleted submission: check_submission_delete_status.py
Run the script using the command:
NOTE: this script saves the output in
status.txtand uses thepreview.txtgenerated in step 2Checklist