-
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
/bundles/{identifier}/collections endpoint is broken #222
Comments
@alexdunnjpl @tloubrieu-jpl this bug and the missing endpoints per #223 are top of list for fixes. |
Cannot replicate against minimal dataset loaded into registry profile http://localhost:8080/bundles/urn:nasa:pds:insight_rad::2.1/collections Replicated the following errors: makes sense as a bug given the whole products vs aggregate-products/basic-products thing the functionality is implemented for the new explicitly-aggregate routes (/classes/bundles and /classes/collections) but not the old ones (/bundles and /collections):
@jordanpadams is it an acceptable fix to forward requests to the old routes directly to the new routes? I have a vague memory of asking a similar question but can't find it. Seems like the correct approach to supporting deprecated, 1:1 equivalent(?) routes. BUT there's also an additional wrinkle - any aggregate product accessed through the /products route is at some point considered by the API to be of type "product", so even though equivalent (REST) resources are returned by
you can only call Additionally, the route for 'http://localhost:8080/products/urn:nasa:pds:insight_rad:data_calibrated::14.0' doesn't even work an returns HTTP404. So it look like there's a handful of tickets' here (for clarity/organisation's sake) - if you agree I'll break this out into one ticket per route - but there's also a need for tests for all of these routes (still need to tease out if we have existing tests in registry-api, a mock for OpenSearch, etc). There's also the question of which routes should support the members/member-of subroutes - i.e. should |
Hi @alexdunnjpl , i believe the error Jordan found might be related to release 1.1.11 which is deployed in production. This might be fixed with version 1.1.12 or 1.2.0-snapshot. regarding the old URL endpoints being implemented as proxies to new endpoints I 100% support this idea. Al told me this was already done this way, to be confirmed with him. at last the /members or member-of URL only applies to the new endpoints /classes/{class}, we don’t need to implement that on old endpoints eg /collections/{Id}/members is not a valid endpoint and should return 404. The old endpoint is /collections/{Id}/products . That should not work either on /products/{id}/members which should return 404. But /products/{id}/collections or /products/{id}/bundles should work as for the deprecated endpoints scheme. Sorry this is all confusing, we are hoping that will be clearer when the deprecated endpoints will go away or at least will be implemented in a non intrusive way in the code thanks to proxies. feel free to create specific bugs (eg unhandled 404 errors) for what you think is not right, Jordan/Al or I can validate them if we confirm the intention behind the development. |
@alexdunnjpl 👍 to all that @tloubrieu-jpl just mentioned. one difference being |
closing this as invalid. this is not a bug in a current main branch, the fix in ops will be done per:
|
🐛 Describe the bug
Cannot query for collections of a bundle.
📜 To Reproduce
New API endpoints don't work at all:
And we are missing an endpoint
🕵️ Expected behavior
📚 Version of Software Used
🩺 Test Data / Additional context
🏞Screenshots
🖥 System Info
🦄 Related requirements
⚙️ Engineering Details
This is blocking NASA-PDS/deep-archive#134
The text was updated successfully, but these errors were encountered: