NASA-PDS / registry-api

Web API service for the PDS Registry, providing the implementation of the PDS Search API (https://github.com/nasa-pds/pds-api) for the PDS Registry.
https://nasa-pds.github.io/pds-api
Apache License 2.0
3 stars 5 forks source link

As a user, by default, I want to search for the latest versions of all products on the `/classes/{class}` endpoint unless explicitly requested #488

Closed jordanpadams closed 3 months ago

jordanpadams commented 4 months ago

Checked for duplicates

No - I haven't checked

🧑‍🔬 User Persona(s)

No response

💪 Motivation

...so that I can get all applicable products of a specific product class, but avoid getting any superseded data.

📖 Additional Details

dependent upon https://github.com/NASA-PDS/registry-api/issues/511

Acceptance Criteria

NOTE: These acceptance criteria are just for example. See #511 for all the possible product classes you could use as test cases

Given multiple versions of a Product_Collection product When I perform GET /classes/collections Then I expect when paginating through the results, I get only the latest version of that collection product

Given multiple versions of a Product_Browse product loaded into the registry When I perform GET /classes/browses Then I expect when paginating through the results, I get only the latest version of that browse product

Given multiple versions of a Product_Observational product loaded into the registry When I perform GET /classes/observationals Then I expect when paginating through the results, I get only the latest version of that observational product

⚙️ Engineering Details

No response

🎉 I&T

No response

alexdunnjpl commented 3 months ago

@jordanpadams @tloubrieu-jpl this endpoint does not appear to be reimplemented yet - shall I go ahead with that?

jordanpadams commented 3 months ago

@alexdunnjpl yes. I will create a requirement

jordanpadams commented 3 months ago

@alexdunnjpl new requirements created: #511

alexdunnjpl commented 3 months ago

@jordanpadams the scope of these "latest unless specifically-requested" reqs does not include implementation of the feature "user can specifically request all versions", yeah?

jordanpadams commented 3 months ago

@alexdunnjpl correct. Those will be separate requirements when the time comes