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

Where filter without operator part does not work with integer and boolean values #322

Closed
1 task
VKTB opened this issue Feb 3, 2022 · 0 comments · Fixed by #323
Closed
1 task

Where filter without operator part does not work with integer and boolean values #322

VKTB opened this issue Feb 3, 2022 · 0 comments · Fixed by #323
Assignees
Labels
bug Something isn't working expands-search-api Issues relating to the ExPaNDS Search API section of this repo

Comments

@VKTB
Copy link
Contributor

VKTB commented Feb 3, 2022

Description:
Sending the following request:
http://{{datagateway-api}}/search-api/datasets/0-8401-1070-7?filter={"include": [{"relation": "files", "scope": {"where": {"size": 1}}}]}

returns 400 BAD REQUEST:

local variable 'value' referenced before assignment

This errors only when integer or boolean values are used, but works fine with string values.

Acceptance criteria:

  • Where filter without operator part should work with integer and boolean values
@VKTB VKTB added bug Something isn't working expands-search-api Issues relating to the ExPaNDS Search API section of this repo labels Feb 3, 2022
@VKTB VKTB closed this as completed in #323 Feb 7, 2022
@VKTB VKTB self-assigned this Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working expands-search-api Issues relating to the ExPaNDS Search API section of this repo
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant