Skip to content

7790 remove files of deleted draft#8035

Merged
kcondon merged 2 commits intodevelopfrom
7790-remove-files-of-deleted-draft
Aug 2, 2021
Merged

7790 remove files of deleted draft#8035
kcondon merged 2 commits intodevelopfrom
7790-remove-files-of-deleted-draft

Conversation

@sekmiller
Copy link
Copy Markdown
Contributor

What this PR does / why we need it: Deleting a dataset version from the dataset page does not remove the physical files that had been added to that version. Because of this there are files in storage that were never part of a published or current draft dataset version.

Which issue(s) this PR closes:

Closes #7790 Deleting a draft of a published dataset does not remove files added in that draft

Special notes for your reviewer: Not much since the code had already been written for the delete draft version via the api/

Suggestions on how to test this: Add files to a draft version. See that they are saved to the file system. Delete that draft and verify they have been removed while those files from previous published versions remain.

Does this PR introduce a user interface change? If mockups are available, please link/include them here: No

Is there a release notes update needed for this change?:
No. unless we want to note that existing files created for deleted versions prior to this change will not be removed by this change. There's a separate issue for that clean up.
Additional documentation: None

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.001%) to 19.126% when pulling 4c12c65 on 7790-remove-files-of-deleted-draft into 69cfaf1 on develop.

Copy link
Copy Markdown
Contributor

@landreev landreev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks straightforward, approving.

@kcondon kcondon self-assigned this Jul 29, 2021
@kcondon kcondon merged commit f6f892a into develop Aug 2, 2021
@kcondon kcondon deleted the 7790-remove-files-of-deleted-draft branch August 2, 2021 14:30
@djbrooke djbrooke added this to the 5.6 milestone Aug 9, 2021
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.

S3 Storage, Deleting a draft of a published dataset does not remove files added in that draft.

5 participants