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

Introduce multiqueries for dataset lookup #33

Closed
dionhaefner opened this issue Jul 30, 2018 · 0 comments · Fixed by #230
Closed

Introduce multiqueries for dataset lookup #33

dionhaefner opened this issue Jul 30, 2018 · 0 comments · Fixed by #230
Labels
enhancement New feature or request

Comments

@dionhaefner
Copy link
Collaborator

To make it easier to scale to large data collections, we should support queries in /datasets such as

/datasets?year=[2016,2018]

which would return all datasets from 2016 and 2018.

Another consideration could be range-based queries, but that would require the introduction of per-key datatypes, which is something I'd like to avoid for now.

@dionhaefner dionhaefner added the enhancement New feature or request label Jul 30, 2018
dionhaefner pushed a commit that referenced this issue Sep 1, 2021
* Introduce multiqueries for dataset lookup (issue #33)

* Allow keys as either strings or list of strinngs in get_datasets

* Make mypy and flake8 happy

* Move data parsing into DatasetOptionSchema in server/datasets

* Adhere mypy and flake8

* Remove leftover print statement from testing period

* Use loops instead of list comprehensions

* Adhere flake8

* Create tests for dataset multiquerying

Co-authored-by: NNicklas Boserup <nibo@dhigroup.com>
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 a pull request may close this issue.

1 participant