Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deleting a dataset now also deletes its resources
Fixes #4705 @dassolkim is concerned that IResourceController.before_delete event is not firing at any point when a dataset is deleted and then purged (either with package_purge or the admin.Trash page). PR #4867 seeks to implement the event in the admin.Trash page. But this PR proposes the alternative, which is to actually delete the resource when the dataset is deleted and fire the event then. It seems an anomaly that we don't delete resources with the dataset. It makes sense that the dataset and resources are both state=deleted. However there is an argument that we shouldn't, because a sysadmin can still see the deleted dataset, but with this PR it will have no resources.
- Loading branch information
David Read
committed
Jul 12, 2019
1 parent
51e4130
commit 02c10a4
Showing
3 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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