Skip to content

Datasets Delete - delete dataset files from storage and fix quota cleanup counters - #2646

Merged
Didayolo merged 2 commits into
developfrom
dataset_delete_cleanup
Nov 24, 2026
Merged

Didayolo merged 2 commits into
developfrom
dataset_delete_cleanup

Conversation

@ihsaan-ullah

@ihsaan-ullah ihsaan-ullah commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Deleting datasets

  • Deleting a dataset now also removes its file from storage
  • Works the same for single delete, Delete Selected and the quota cleanup buttons
  • Applies to datasets, programs, submission zips, starting kits, competition bundles and dumps

Quota cleanup counters

  • Solution datasets are no longer counted as unused or deleted by the cleanup button
  • Dumps of existing competitions are no longer counted as unused or deleted
  • Each counter now shows exactly what its delete button deletes

Labels

  • Competition bundles are shown as Competition Bundles/Dumps in the Resources tab and the quota page
  • Fixed the error message of the bundles cleanup button

Tests

  • Added tests for file removal on single, bulk and cleanup deletes
  • Added tests for keeping solutions and dumps of existing competitions

NOTE

This should be reviewed and tested carefully because it involves deletion of data and files

Issues this PR resolves

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@ihsaan-ullah ihsaan-ullah mentioned this pull request Oct 9, 2026
31 of 46 tasks
@ihsaan-ullah ihsaan-ullah changed the title Resource Interface - Delete dataset files from storage and fix quota cleanup counters Datasets Delete - delete dataset files from storage and fix quota cleanup counters Oct 9, 2026
@Didayolo
Didayolo force-pushed the dataset_delete_cleanup branch from 532872a to 6b21167 Compare October 12, 2026 12:20
@ihsaan-ullah
ihsaan-ullah force-pushed the dataset_delete_cleanup branch 2 times, most recently from d2a2a67 to 67a535d Compare October 21, 2026 08:34
@ihsaan-ullah
ihsaan-ullah force-pushed the dataset_delete_cleanup branch from 67a535d to fca5b75 Compare November 9, 2026 12:41
@Didayolo Didayolo self-assigned this Nov 12, 2026
@ihsaan-ullah
ihsaan-ullah force-pushed the dataset_delete_cleanup branch from fca5b75 to cd57858 Compare November 13, 2026 20:43
Deleting datasets
- Deleting a dataset now also removes its file from storage
- Works the same for single delete, Delete Selected and the quota cleanup buttons
- Applies to datasets, programs, submission zips, starting kits, competition bundles and dumps

Quota cleanup counters
- Solution datasets are no longer counted as unused or deleted by the cleanup button
- Dumps of existing competitions are no longer counted as unused or deleted
- Each counter now shows exactly what its delete button deletes

Labels
- Competition bundles are shown as Competition Bundles/Dumps in the Resources tab and the quota page
- Fixed the error message of the bundles cleanup button

Tests
- Added tests for file removal on single, bulk and cleanup deletes
- Added tests for keeping solutions and dumps of existing competitions
@Didayolo
Didayolo force-pushed the dataset_delete_cleanup branch from cd57858 to c4576a2 Compare November 23, 2026 14:18
@Didayolo
Didayolo merged commit 4c1910a into develop Nov 24, 2026
3 checks passed
@Didayolo
Didayolo deleted the dataset_delete_cleanup branch November 24, 2026 06:55
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.

Unused datasets cleanup counts solution datasets and deletes their solutions Resources - Unused competition bundles count is incorrect

2 participants