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

filters added for the submissions #190

Merged
merged 1 commit into from
Sep 4, 2023
Merged

filters added for the submissions #190

merged 1 commit into from
Sep 4, 2023

Conversation

nrjadkry
Copy link
Member

@nrjadkry nrjadkry commented Sep 4, 2023

Odata submissions allows us to filter the submission json using $filter, $select.

  1. The $select query parameter will return just the fields you specify and is supported on __id, __system, __system/creatorId, __system/createdAt and __system/updatedAt, as well as on user defined properties.

  2. The $filter querystring parametercan be used to filter by any data field in the system-level schema, but not the Dataset properties. The operators lt, le, eq, ne, ge, gt, not, and, and or are supported. The built-in functions now, year, month, day, hour, minute, second are supported.

Like these it allows us other options like $top, $skip, $limit, $offset and many more.

This pull request will allow us to use those filter options in the submission json.

@nrjadkry nrjadkry temporarily deployed to 190/merge September 4, 2023 06:22 — with GitHub Actions Inactive
@nrjadkry nrjadkry temporarily deployed to 190/merge September 4, 2023 06:49 — with GitHub Actions Inactive
@nrjadkry nrjadkry requested a review from robsavoye September 4, 2023 06:56
@robsavoye robsavoye added the enhancement New feature or request label Sep 4, 2023
@robsavoye robsavoye merged commit 6fe819c into hotosm:main Sep 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants