-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As a user, by default, I want to search only for the latest versions of all products on the /products
endpoint
#426
Comments
alternate_ids implemented but we now need to build this into the API so we use this field and date time to properly support version histories. |
@jordanpadams @al-niessner I believe it will be better to wait for the redesign to be completed before working on that. |
/products
search results unless explicitly requested
/products
search results unless explicitly requested/products
endpoint unless explicitly requested
/products
endpoint unless explicitly requested/products
endpoint
@jordanpadams There is not a distinct test for this issue, but coverage (of the common code path subsetting a result set to non-superseded products) is provided by the new tests for those tickets. |
💪 Motivation
...so that I am not confused by seeing superseded data returned in search results
📖 Additional Details
Per the parent epic, and the design we need to update the API to implement these changes so we can sufficiently understand the version history.
See parent epic for more details.
⚖️ Acceptance Criteria
AC 1
Given the products
urn:nasa:pds:mars2020.spice::1.0
,urn:nasa:pds:mars2020.spice::2.0
, andurn:nasa:pds:mars2020.spice::3.0
have been loaded into the registry (see registry-ref-data) and inarchived
statusWhen I perform a query of the API for
/products
and paginate through the results and/or apply any other filtering that would include this SPICE bundleThen I expect I should get only the latest v3.0 product returned (
urn:nasa:pds:mars2020.spice::3.0
)AC 2
Given the products
urn:nasa:pds:mars2020.spice::1.0
,urn:nasa:pds:mars2020.spice::2.0
, andurn:nasa:pds:mars2020.spice::3.0
have been loaded into the registry (see registry-ref-data) and inarchived
statusWhen I perform a query of the API for
/products/urn:nasa:pds:mars2020.spice::1.0
Then I expect I should get the older version 1.0 of the product (
urn:nasa:pds:mars2020.spice::1.0
) because it was explicitly requestedAC 3
Note: This AC depends upon the completion of this requirement: #427
Given the context products urn:nasa:pds:context:instrument:crs.vg1::1.0 and urn:nasa:pds:context:instrument:vg1.crs::1.0 ingested into the registry
When I perform a query of the API for
/products
and paginate through the results, or perform any additional filtering on the dataThen I expect I should only see the product metadata for urn:nasa:pds:context:instrument:vg1.crs::1.0 returned, not the superseded/deprecated urn:nasa:pds:context:instrument:crs.vg1::1.0
⚙️ Engineering Details
See parent ticket for related requirements:
latest
functionality for all endpoints #428The text was updated successfully, but these errors were encountered: