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

[superset-client] getClientErrorObject for everyone #6276

Merged
merged 1 commit into from
Nov 5, 2018

Conversation

williaster
Copy link
Contributor

This fixes #6272 and probably some other error 🐛 s that haven't been reported.

I searched for all instances of SupersetClient.xxx().catch() and if any call attempted to pull an error message from the response I wrapped it in the getClientErrorObject which properly parses the response.

Tested most of them manually by hand by inducing an error, here's the updated error for the reported bug:

image

@mistercrunch @kristw @michellethomas @graceguo-supercat

dispatch(annotationQuerySuccess(annotation, err, sliceKey));
} else if (err.statusText !== 'abort') {
dispatch(annotationQueryFailed(annotation, err.responseJSON, sliceKey));
dispatch(annotationQueryFailed(annotation, err, sliceKey));
Copy link
Contributor Author

@williaster williaster Nov 5, 2018

Choose a reason for hiding this comment

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

I verified that err.error is pulled from err in the annotationQueryFailed reducer

@codecov-io
Copy link

codecov-io commented Nov 5, 2018

Codecov Report

Merging #6276 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6276   +/-   ##
=======================================
  Coverage   77.02%   77.02%           
=======================================
  Files          64       64           
  Lines        9504     9504           
=======================================
  Hits         7320     7320           
  Misses       2184     2184

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1e408a...6410bde. Read the comment docs.

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this so quickly!

@williaster williaster merged commit 7fe8e8a into master Nov 5, 2018
@williaster williaster deleted the chris--getclienterrorobj branch November 5, 2018 22:26
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Nov 8, 2018
(cherry picked from commit 7fe8e8a)

(cherry picked from commit c099382)
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[sql lab] error handling is broken
3 participants