-
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, I want to apply an additional query filter (q=
) to members of an aggregate product (/products/{identifier}/members
)
#298
Comments
@jordanpadams @tloubrieu-jpl for all that I'd much prefer to write a python script and be done with it, isn't this strictly a job for harvest? Pros: (Python script - should be separate from provenance imho but that's whatever)
Cons:
I suppose the correct solution is to bandaid it with a python script, implement it in harvest as well, then rip off the bandaid once the updated version of harvest is deployed everywhere it needs to be. Note to self - LIDs are strictly-defined in the PDS Standards Reference as |
85ca61e implements addition of membership metadata to products whose documents lack such (to prevent having to update every product on every script run) Metadata is currently written to the document in this format. I'm assuming the nesting isn't a problem but I can tweak it to a flat structure if need be. All products will have that full membership metadata structure, with Ensuring that this structure is included in the index is an outstanding question. @jordanpadams @jimmie @al-niessner @tloubrieu-jpl would it be appropriate for the script to ensure presence of these fields in the index? I wouldn't think reindexing is necessary in that case as on first run, the index would be added and then the relevant metadata would be written for all products (triggering indexing on each product). |
@alexdunnjpl just as an FYI, even though the standard says this:
That is not actually always the case. There is an |
@alexdunnjpl per:
how would a user then query for that information based upon it's nesting? for other metadata we have added to the registry, we have been flattening it for the time being, e.g. |
@alexdunnjpl per:
similar to the provenance script, we could do this in harvest, but there are a few reasons why we want this in a separate script (e.g. within the provenance script):
|
q=
) to products that belong to a collection (/products/{identifier}/members
)
q=
) to products that belong to a collection (/products/{identifier}/members
)q=
) to members of an aggregate products (/products/{identifier}/members
)
q=
) to members of an aggregate products (/products/{identifier}/members
)q=
) to members of an aggregate product (/products/{identifier}/members
)
Checked for duplicates
Yes - I've already checked
π§βπ¬ User Persona(s)
Data User
πͺ Motivation
...so that I can search for the products of a bundle/collection, and then provide additional filters to the search within the same query.
π Additional Details
Follow-on to #197, we do not want to support
q=
from a/members
or/member-of
endpoint, so we need to some other way to provide this query functionality.Acceptance Criteria
Given
When I perform
Then I expect
βοΈ Engineering Details
Initial design idea is to update
provenance
script to include adding thecollection_lidvid
andbundle_lidvid
to each product.In order the support the example from #197
the API query would instead be something like:
The text was updated successfully, but these errors were encountered: