sul-dlss / purl-fetcher

An HTTP API for querying and updating PURLs
0 stars 1 forks source link

Version manifest should recreate missing versions #907

Open justinlittman opened 1 month ago

justinlittman commented 1 month ago

When writing a new object and the version > 1, entries should be made in the version manifest for previous versions. Those previous versions should be marked as permanently_withdrawn and have no date. The head version should be set to the version.

jcoyne commented 1 month ago

@justinlittman can you say more about why we need to write these versions? Why not just have the actual versions in the manifest?

justinlittman commented 1 month ago

Otherwise PURL would not to understand that these versions were implicitly withdrawn. This avoids PURL having to be aware of such logic.

jcoyne commented 1 month ago

@justinlittman Where in purl does it care about missing versions?

justinlittman commented 1 month ago

When an object is public then dark then public, it's earlier user versions are deleted from stacks. When it is made public, there is a requirement to indicate that earlier user versions existed, but were withdrawn.

@andrewjbtw Is this a correct understanding of the requirement?

andrewjbtw commented 4 weeks ago

@justinlittman Sorry, I missed the question in the ticket here. Yes, that's the correct understanding.