Collection version history » History » Revision 2
Revision 1 (Tom Clegg, 06/04/2018 04:01 PM) → Revision 2/17 (Tom Clegg, 06/13/2018 03:44 PM)
h1. Collection version history (draft) Background: desired API features (see #13109, #13494) * Get current + previous versions of a collection with a single API call * Search all current + previous versions of collections with a single API call * Stable small numeric "version number" for each version of a given collection Implementation TBD * Store all versions in the collection table (much easier to do paging) * New database column indicates current version's UUID * New database column indicates user-friendly version number (starting at 1) -- can be assigned safely after locking "current" row for update * Flag for "list" API to include include/exclude old versions (otherwise, filter on current_version_uuid=uuid -- might need to adjust indexes to maintain performance) * Flag in site configuration to enable preserving old versions in database