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 a user, I want to filter the products by any available PDS4 property using comparison operators #494

Closed
jordanpadams opened this issue Jul 12, 2024 · 2 comments Β· Fixed by NASA-PDS/registry#311

Comments

@jordanpadams
Copy link
Member

jordanpadams commented Jul 12, 2024

Checked for duplicates

Yes - I've already checked

πŸ§‘β€πŸ”¬ User Persona(s)

Data User

πŸ’ͺ Motivation

...so that I can query very specific values based upon comparison operators

πŸ“– Additional Details

Supported comparison operators: eq, ne, gt, ge, lt, le

Acceptance Criteria

AC1

Given a registry loaded with a subset of data with a target of Mars
When I perform /some/endpoint?q=(ref_target eq "urn:nasa:pds:context:target:planet.mars")
Then I expect the result set to contain all expected products where target is Mars

AC2

Given a registry loaded with a subset of data with a target of Mars and other targets
When I perform /some/endpoint?q=(ref_target ne "urn:nasa:pds:context:target:planet.mars")
Then I expect the result set to contain all expected products where target is NOT Mars

AC3

Given a registry loaded with a subset of data with times before and after 2001-05-10T00:00:00Z
When I perform /some/endpoint?q=( pds:Time_Coordinates.pds:start_date_timeΒ gtΒ "2001-05-10T00:00:00Z")
Then I expect the result set to contain all expected products where pds:start_date_time is after 2001-05-10T00:00:00Z

AC4

Given a registry loaded with a subset of data with pds:start_date_time before and after 2001-05-10T00:00:00Z
When I perform /some/endpoint?q=( pds:Time_Coordinates.pds:start_date_timeΒ ltΒ "2001-05-10T00:00:00Z")
Then I expect the result set to contain all expected products where pds:start_date_time is before 2001-05-10T00:00:00Z

AC5

Given a registry loaded with a subset of data with pds:start_date_time before, after, and exactly matches 2001-05-10T00:00:00Z
When I perform /some/endpoint?q=( pds:Time_Coordinates.pds:start_date_timeΒ geΒ "2001-05-10T00:00:00Z")
Then I expect the result set to contain all expected products where pds:start_date_time is after 2001-05-10T00:00:00Z and equals 2001-05-10T00:00:00Z

AC6

Given a registry loaded with a subset of data with pds:start_date_time before, after, and exactly matches 2001-05-10T00:00:00Z
When I perform /some/endpoint?q=( pds:Time_Coordinates.pds:start_date_timeΒ leΒ "2001-05-10T00:00:00Z")
Then I expect the result set to contain all expected products where pds:start_date_time is before 2001-05-10T00:00:00Z and equals 2001-05-10T00:00:00Z

βš™οΈ Engineering Details

No response

πŸŽ‰ I&T

No response

@jordanpadams jordanpadams added needs:triage requirement the current issue is a requirement labels Jul 12, 2024
@jordanpadams jordanpadams self-assigned this Jul 12, 2024
@jordanpadams jordanpadams changed the title As a user, I want to filter the products by any available PDS4 property using comparison operators: eq, ne, gt, ge, lt, le As a user, I want to filter the products by any available PDS4 property using comparison operators Jul 12, 2024
@github-project-automation github-project-automation bot moved this to Release Backlog in B15.0 Jul 12, 2024
@tloubrieu-jpl
Copy link
Member

Need to add test for each acceptance criteria.

@alexdunnjpl
Copy link
Contributor

Tests added in NASA-PDS/registry#311

@github-project-automation github-project-automation bot moved this from Release Backlog to 🏁 Done in B15.0 Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: 🏁 Done
Development

Successfully merging a pull request may close this issue.

3 participants