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

Add typed filtering #3385

Merged
merged 6 commits into from
Apr 24, 2023
Merged

Conversation

dbutenhof
Copy link
Member

PBENCH-1124

Support type-cast filter expressions in GET /datasets. The primary objective is to support a paginated "Expiring Soon" view in the dashboard, requiring the ability to look for datasets expiring before a fixed timestamp. Previously, GET /datasets?filter worked by casting all SQL data to "string" and then comparing against the raw extracted string from the query parameter. Now it's possible to identify a type as well as additional comparison operators. For example, GET /datasets?filter=server.deletion:<2023-05-01:date will select all datasets with expiration timestamps earlier than 2023-05-1.

To target this specific capability, the functional tests now override the default server.deletion on some uploads and verify that those datasets are returned by the filtered query.

@dbutenhof dbutenhof added Server Dashboard Of and relating to the Dashboard GUI API Of and relating to application programming interfaces to services and functions labels Apr 14, 2023
@dbutenhof dbutenhof self-assigned this Apr 14, 2023
webbnh

This comment was marked as resolved.

webbnh

This comment was marked as resolved.

PBENCH-1124

Support type-cast filter expressions in `GET /datasets`. The primary objective
is to support a paginated "Expiring Soon" view in the dashboard, requiring the
ability to look for datasets expiring before a fixed timestamp. Previously,
`GET /datasets?filter` worked by casting all SQL data to "string" and then
comparing against the raw extracted string from the query parameter. Now it's
possible to identify a type as well as additional comparison operators. For
example, `GET /datasets?filter=server.deletion:<2023-05-01:date` will select
all datasets with expiration timestamps earlier than 2023-05-1.

To target this specific capability, the functional tests now override the
default `server.deletion` on some uploads and verify that those datasets are
returned by the filtered query.
webbnh

This comment was marked as resolved.

Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

@dbutenhof dbutenhof merged commit 6d9c40f into distributed-system-analysis:main Apr 24, 2023
@dbutenhof dbutenhof deleted the mtype branch April 24, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Of and relating to application programming interfaces to services and functions Dashboard Of and relating to the Dashboard GUI Server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants