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

As a user, I want to know why my query syntax is invalid #66

Closed
tloubrieu-jpl opened this issue May 5, 2021 · 1 comment
Closed

As a user, I want to know why my query syntax is invalid #66

tloubrieu-jpl opened this issue May 5, 2021 · 1 comment

Comments

@tloubrieu-jpl
Copy link
Member

Motivation

...so that I can update my query (q param) to make it work

Additional Details

Acceptance Criteria

Given deployed API server
When I perform request q=ops:Data_File_Info.ops:file_size gte 138172
Then I expect an explicit error message like "Unkown operator gte", status 400

To be completed

Engineering Details

I believe this can be easily added by using messages in the ParseCancellationException and throwing the exception all the way through the api controllers. Actually this requires a bit a research to understand how a springboot controller method can returm multiple type (products or error).

@tloubrieu-jpl
Copy link
Member Author

imported, see original ticket NASA-PDS/registry-api-service#26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants