Skip to content

FIREFLY-114: improved message for an API user on non-existent column #844

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

Merged
merged 1 commit into from
Aug 7, 2019

Conversation

tgoldina
Copy link
Contributor

@tgoldina tgoldina commented Aug 7, 2019

Ticket: https://jira.ipac.caltech.edu/browse/FIREFLY-114
To test, check case 4 (Chart errors: non-existing column):
https://irsawebdev9.ipac.caltech.edu/firefly-114_apiErr/firefly/test/tests-chart.html

These are minimum changes to help API user to find a problem, when an error happens because of a non-existent column. Basically, in "column not found" case, an error from db is passed to the user.

The limitations of this implementation are the following:

  • If multiple columns are misspelled, only the first one is mentioned
  • Non-existing column name is shown in lower case

@tgoldina tgoldina self-assigned this Aug 7, 2019
@tgoldina tgoldina requested a review from loitly August 7, 2019 18:39
Copy link
Contributor

@loitly loitly left a comment

Choose a reason for hiding this comment

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

Changes look good. Test added. Perfect!

@tgoldina tgoldina merged commit 183f3a1 into dev Aug 7, 2019
@tgoldina tgoldina deleted the firefly-114_apiErr branch August 7, 2019 22:39
@robyww robyww added Charts Anything related to charts enhancement labels Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Charts Anything related to charts enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants