Project

General

Profile

Collection version history » History » Version 2

Tom Clegg, 06/13/2018 03:44 PM

1 1 Tom Clegg
h1. Collection version history
2
3
(draft)
4
5
Background: desired API features (see #13109, #13494)
6
* Get current + previous versions of a collection with a single API call
7
* Search all current + previous versions of collections with a single API call
8
* Stable small numeric "version number" for each version of a given collection
9
10 2 Tom Clegg
Implementation
11 1 Tom Clegg
* Store all versions in the collection table (much easier to do paging)
12 2 Tom Clegg
* New database column indicates current version's UUID
13
* New database column indicates user-friendly version number (starting at 1) -- can be assigned safely after locking "current" row for update
14
* Flag for "list" API to include old versions (otherwise, filter on current_version_uuid=uuid -- might need to adjust indexes to maintain performance)
15
* Flag in site configuration to enable preserving old versions in database