Skip to content

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

Merged
Didayolo merged 2 commits into
developfrom
delete-submissions
Jun 25, 2026
Merged

fix: allow organizers to hard-delete soft-deleted submissions#2446
Didayolo merged 2 commits into
developfrom
delete-submissions

Conversation

@Didayolo

@Didayolo Didayolo commented Jun 25, 2026

Copy link
Copy Markdown
Member

Original PR: #2422

Description

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.

Issues this PR resolves

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.

A checklist for hand testing

  • As an organizer, soft-delete a submission, then confirm the trash icon appears
  • Click the trash icon and confirm the submission is permanently deleted
  • Verify quota is freed after hard-delete
  • Confirm non-organizers do not see the delete button on soft-deleted submissions

Checklist

  • Code review by me
  • Hand tested by me
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

dconstancy and others added 2 commits June 17, 2026 12:28
Add a delete button visible to organizers on soft-deleted submissions,
and guard against None data in delete/soft_delete methods.
…submissions

fix: allow organizers to hard-delete soft-deleted submissions
@Didayolo Didayolo merged commit 353f603 into develop Jun 25, 2026
1 check passed
@Didayolo Didayolo deleted the delete-submissions branch June 25, 2026 11:43
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.

2 participants