-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
feat: initial custom error messages for SQL Lab #12080
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12080 +/- ##
==========================================
- Coverage 67.56% 63.32% -4.24%
==========================================
Files 959 971 +12
Lines 47161 47959 +798
Branches 4613 4735 +122
==========================================
- Hits 31864 30371 -1493
- Misses 15185 17402 +2217
- Partials 112 186 +74
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
5a3e879
to
399a715
Compare
thanks for taking on this work! One question, how will this work for async queries? Or is that out of scope for now? |
399a715
to
b74e4c3
Compare
Yeah! My plan is to split the work into 3 parts:
I haven't looked at the async part yet, from I'm assuming we'll have to serialize the exception? |
9b77b06
to
4b5b49e
Compare
yeah, i think we'll need to serialize it into the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few comments
superset-frontend/src/components/ErrorMessage/ParameterErrorMessage.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/components/ErrorMessage/ParameterErrorMessage.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/components/ErrorMessage/ParameterErrorMessage.tsx
Outdated
Show resolved
Hide resolved
5fca8fb
to
ab209e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit, otherwise lgtm
ab209e8
to
0ea9c5b
Compare
SUMMARY
This PR adds the exception
SupersetGenericDBErrorException
, so we can start showing custom errors in SQL Lab. I still need to replace calls tojson_response_error
with throwing the exception in many parts of the view, but it already works for some errors (see screenshots).BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION