Skip to content
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 an API user, I want to know the Product(s) that belong to a given Bundle. #453

Closed
2 tasks done
jordanpadams opened this issue Mar 26, 2021 · 1 comment
Closed
2 tasks done
Assignees
Labels
B12.0 p.must-have requirement the current issue is a requirement

Comments

@jordanpadams
Copy link
Member

jordanpadams commented Mar 26, 2021

For more information on how to populate this new feature request, see the PDS Wiki on User Story Development:

https://github.com/NASA-PDS/nasa-pds.github.io/wiki/Issue-Tracking#user-story-development

Motivation

...so that I can <why do you want to do this?>

Additional Details

Notional API Design:

GET /products/{bundle-identifier}/members/members

See NASA-PDS/registry#109 and NASA-PDS/registry#108 for how the registry ingests primary and secondary products.

Note: The logic here is a little funky:

  1. find all primary and secondary collections for the bundle
  2. find all primary and secondary products for those collections
    a. if product comes from secondary collection, ALL products from those collections should be considered secondary

Acceptance Criteria

Given I have a bundle LID OR LIDVID
When I perform an API query by that LIDVID for its products
Then I expect the API to return the primary product(s) AND any secondary product(s) for that bundle

Sub-tasks

  • Update Swagger API
  • Implement in API Server
@jordanpadams jordanpadams added requirement the current issue is a requirement needs:triage labels Mar 26, 2021
@jordanpadams jordanpadams self-assigned this Mar 26, 2021
@jordanpadams jordanpadams changed the title As a user, I want to search for the child product(s) for a collection. As a user, I want to search for the collection's products Mar 26, 2021
@jordanpadams jordanpadams changed the title As a user, I want to search for the collection's products As a user, I want to know for the product(s) that belong to a given bundle. Mar 26, 2021
@jordanpadams jordanpadams changed the title As a user, I want to know for the product(s) that belong to a given bundle. As a user, I want to know for the product(s) that belong to a given Collection. Mar 26, 2021
@jordanpadams jordanpadams changed the title As a user, I want to know for the product(s) that belong to a given Collection. As a user, I want to know for the product(s) that belong to a given Bundle. Mar 26, 2021
@jordanpadams jordanpadams changed the title As a user, I want to know for the product(s) that belong to a given Bundle. As a user, I want to know for the Product(s) that belong to a given Bundle. Mar 26, 2021
@jordanpadams jordanpadams changed the title As a user, I want to know for the Product(s) that belong to a given Bundle. As a user, I want to know the Product(s) that belong to a given Bundle. Mar 26, 2021
@jordanpadams jordanpadams changed the title As a user, I want to know the Product(s) that belong to a given Bundle. As an API user, I want to know the Product(s) that belong to a given Bundle. Mar 26, 2021
@tloubrieu-jpl
Copy link
Member

Validated in pull request: NASA-PDS/registry-api-service#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B12.0 p.must-have requirement the current issue is a requirement
Projects
None yet
Development

No branches or pull requests

3 participants