Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trash page uses action #4906

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Trash page uses action #4906

wants to merge 2 commits into from

Conversation

davidread
Copy link
Contributor

@davidread davidread commented Jul 12, 2019

No change to functionality - just a refactor. Adds in a call to 'dataset_purge' action to do the purge of the dataset, when previously this was achieved as part of the model.repo.purge_revision() call, but that revision code will be deleted soon anyway with the remove-vdm branch.

See each revision separately for more clarity.

This refactor is strongly related to #4867. We should probably send out these IResourceController.before_delete events in the logic layer, rather than a view. That could dataset_purge or as I've proposed in #4905 in package_delete.

I've included a test along the lines of the ones added in #4867.

'purge-revisions' also needed deleting, as it was removed from the UI many years ago.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

@amercader amercader self-assigned this Jul 18, 2019
@davidread davidread force-pushed the trash-page-uses-action branch 3 times, most recently from e3a3b1c to bc4fee0 Compare July 19, 2019 21:23
David Read added 2 commits August 9, 2019 09:43
We add in a call to 'dataset_purge' action to do the purge of the
dataset, when previously this done as part of the
model.repo.purge_revision() call, but will be deleted soon anyway
with the remove-vdm branch.
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.

None yet

2 participants