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

Fix issue of workbench not outputting errors #32

Merged

Conversation

chloe-zh
Copy link
Contributor

@chloe-zh chloe-zh commented May 6, 2021

Signed-off-by: Chloe Zhang [email protected]

Description

Here was a rule to mark the result as a proper output from http response rather than error output, which is applied when the http response has data body even though the status is not "ok" (response ok is false). This condition was added specially to fix the csv downloading issue, details: opendistro-for-elasticsearch/sql#1023

But the temporary fix gave a much wider condition than necessary to mark a result as a "good result". This results in some improper behaviors, it does not show any error message in the output windows now when it should.

This fix is to give a restriction to the last fix of the csv downloading issue. However this fix is only a temporary solution to unblock the release. We should dive deep for better solution to stabilize the workbench.

Issues Resolved

Errors are not output in workbench. No GitHub issues are applicable.

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@chloe-zh chloe-zh requested a review from davidcui1225 May 6, 2021 00:47
@davidcui1225 davidcui1225 merged commit e28a3f9 into opensearch-project:develop May 6, 2021
davidcui1225 added a commit that referenced this pull request May 6, 2021
davidcui1225 added a commit that referenced this pull request May 6, 2021
davidcui1225 pushed a commit that referenced this pull request May 10, 2021
* fixed no-error-output bug in workbench (#32)
Signed-off-by: David Cui <[email protected]>

* Update issue template with multiple labels

Signed-off-by: Vacha Shah <[email protected]>

Co-authored-by: Vacha Shah <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants