Ticket #1623 (closed enhancement: fixed)
Dump to exclude deleted objects
Reported by: | dread | Owned by: | dread |
---|---|---|---|
Priority: | trivial | Milestone: | ckan-sprint-2012-01-23 |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description
The database dump currently contains all Packages and their associated objects, even those that have been set to state=deleted. We should exclude these from the dump now.
Dump = paster db simple-dump-csv/json
reasoning
The dumps are designed for end-users to be able to run scripts on the mass of data. Since end-users don't see state=deleted packages then they shouldn't need them in the dump. In fact their presence in the dump probably confuses them.
Admins get the full database anyway in the backup pg_dump.
We only included them in the user dump because it was designed before use of state=deleted was established.
Time estimate: 2h
Change History
Note: See
TracTickets for help on using
tickets.
Done in [master c2c3427]. Added first CLI test too! Targets release 1.5.2.
Took 0.5h