hubmapconsortium / entity-api

A set of web service calls to return information about HuBMAP entities
https://entity.api.hubmapconsortium.org
MIT License
3 stars 1 forks source link

Derek furst/multiple revisions #565

Closed DerekFurstPitt closed 10 months ago

DerekFurstPitt commented 10 months ago

Updated the property previous_revision_uuid (singular) to allow for either a list of previous_revisions or a single previous revision. The validation has changed. It used to not be allowed to add revisions to a dataset/publication that already had revisions of it. Now it is possible, however only if the existing revisions are the most recent ones. If a revision has been made of THAT revision, adding new revisions off of the earlier generation is disallowed. Also, an additional validation has been added when a list of multiple previous_revisions is given: revisions in the list may not be revisions of each other.