Skip to content

fix: allow organizers to hard-delete soft-deleted submissions#2422

Open
dconstancy wants to merge 1 commit into
codalab:developfrom
dconstancy:fix/quota-exclude-cancelled-submissions
Open

fix: allow organizers to hard-delete soft-deleted submissions#2422
dconstancy wants to merge 1 commit into
codalab:developfrom
dconstancy:fix/quota-exclude-cancelled-submissions

Conversation

@dconstancy

@dconstancy dconstancy commented Jun 17, 2026

Copy link
Copy Markdown

Fixes #2421

Context

Following feedback on the original approach (excluding Cancelled from quota),
this PR takes the suggested route: let organizers hard-delete soft-deleted
submissions so they can free up quota manually.

Changes

  • Frontend (submission_manager.tag): Add a delete button (trash icon)
    on soft-deleted submissions, visible to organizers only.
  • Backend (models.py): Guard self.data access in delete() and
    soft_delete() — after a soft-delete, self.data is None, which caused
    an AttributeError when trying to hard-delete.

Add a delete button visible to organizers on soft-deleted submissions,
and guard against None data in delete/soft_delete methods.
@dconstancy dconstancy force-pushed the fix/quota-exclude-cancelled-submissions branch from d16ddf8 to 600c3c5 Compare June 17, 2026 10:29
@dconstancy dconstancy changed the title fix: exclude cancelled submissions from quota count fix: allow organizers to hard-delete soft-deleted submissions Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cancelled submissions still count toward daily/total quota, blocking participants unfairly

1 participant