You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't technically a bug, but more an issue of being vulnerable to inconsistency.
With regards to archive_status, the API selects documents which have one of a (configurable) set of values (typically archived, certified). Provenance on the other hand selects documents which do not have an archive_status of staged - the item of note being that in the provenance case, documents without a value for archive_status qualify. The end result is there can be a series of vids that sequentially point to a document that does have an archive_status.
When the API is looking for a product record, the query includes criteria of no value for superseded_by and archive_status of archived or certified. However, because provenance works by exclusion, we could end up with no qualifying vids for a lid (i.e. all have a superseded_by except for one that has no archive_status).
To best avoid this occurrence, provenance should request documents in the same inclusive manner as the API.
The text was updated successfully, but these errors were encountered:
This isn't technically a bug, but more an issue of being vulnerable to inconsistency.
With regards to archive_status, the API selects documents which have one of a (configurable) set of values (typically archived, certified). Provenance on the other hand selects documents which do not have an archive_status of staged - the item of note being that in the provenance case, documents without a value for archive_status qualify. The end result is there can be a series of vids that sequentially point to a document that does have an archive_status.
When the API is looking for a product record, the query includes criteria of no value for superseded_by and archive_status of archived or certified. However, because provenance works by exclusion, we could end up with no qualifying vids for a lid (i.e. all have a superseded_by except for one that has no archive_status).
To best avoid this occurrence, provenance should request documents in the same inclusive manner as the API.
The text was updated successfully, but these errors were encountered: