As a user, I want to filter the products by any available PDS4 property using comparison operators #494
Labels
B15.0
i&t.automated
i&t.done
p.must-have
requirement
the current issue is a requirement
sprint-backlog
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 after2001-05-10T00:00:00Z
AC4
Given a registry loaded with a subset of data with
pds:start_date_time
before and after2001-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 before2001-05-10T00:00:00Z
AC5
Given a registry loaded with a subset of data with
pds:start_date_time
before, after, and exactly matches2001-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 after2001-05-10T00:00:00Z
and equals2001-05-10T00:00:00Z
AC6
Given a registry loaded with a subset of data with
pds:start_date_time
before, after, and exactly matches2001-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 before2001-05-10T00:00:00Z
and equals2001-05-10T00:00:00Z
βοΈ Engineering Details
No response
π I&T
No response
The text was updated successfully, but these errors were encountered: