NASA-PDS / pds-api

PDS web APIs specifications and user's manual
http://nasa-pds.github.io/pds-api
Other
5 stars 3 forks source link

Past versions are being returned by API, by default #220

Closed jordanpadams closed 1 year ago

jordanpadams commented 2 years ago

🐛 Describe the bug

Per https://github.com/NASA-PDS/registry-api/issues/449, the API should only include the latest versions of products in search results.

📜 To Reproduce

Steps to reproduce the behavior:

curl -X 'GET' \
  'https://pds.nasa.gov/api/search/1.0/products?fields=lidvid&limit=100&q=lid%20eq%20%22urn%3Anasa%3Apds%3Amaven.spice%22&start=0&summary-only=false' \
  -H 'accept: application/csv'

Current API functionality is finding all products with a specific lid then returns all lidvids with that lid. If you had done /products/urn:nasa:pds:maven.spice then you would have just the latest. It is the q= that does not allow latest/all processing.


🦄 Related requirements

🦄 NASA-PDS/registry-api#449 🦄 NASA-PDS/registry-api#441

⚙️ Engineering Details

al-niessner commented 1 year ago

See NASA-PDS/registry-api#441 its duplicate and where the comment are

jordanpadams commented 1 year ago

implementation complete. deployment is being tracked here:

https://github.com/NASA-PDS/registry/issues/140 https://github.com/NASA-PDS/registry/issues/141