Ticket #1076 (closed enhancement: fixed)
Improve revision and package purge system
Reported by: | rgrp | Owned by: | johnlawrenceaspden |
---|---|---|---|
Priority: | major | Milestone: | ckan-v1.4 |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description (last modified by rgrp) (diff)
Purging Revisions
- Delete button displayed on:
- /revision/list
(/package/history)- /package/history is problematic because html does not allow nested forms and we already have form for doing diff/comparison.
- /revision/{id}
- Delete button submits to delete action on revision and changes revision state to 'deleted'.
- undelete button now displayed and revisions are marked as deleted in some way (e.g. greyed out?)
- Sysadmins then visit /ckan-admin/trash which lists all revisions with deleted state. There is a large button: "Empty trash" (irreversible). Click button purges all revisions with deleted state.
Purging Packages
- Put into deleted state.
- Listed on /ckan-admin/trash
- Separate Empty trash button which deletes all associated revisions.
- Should be separate from Empty trash for revisions
Current system
- Single purge link on revision listing if a sysadmin which permanently purges the revision and all associated changes (without confirmation atm!)
Change History
comment:3 Changed 3 years ago by rgrp
All main work done as of cset:556efcb91f19 in branch feature-1076-improve-purge-system (+ associated work in ckanext-admin trash bin management). All that remains is to add some tests.
comment:4 Changed 3 years ago by rgrp
- Status changed from new to closed
- Resolution set to fixed
Test of trash functionality in ckanext-admin in https://bitbucket.org/okfn/ckanext-admin/changeset/e86c102a3c60 so now closing (could do with some functional tests in the main interface but can leave for later -- were none before so situation no worse ;0 ).
Note: See
TracTickets for help on using
tickets.
See also http://trac.ckan.org/ticket/948