-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
refactor: sql lab: handling command exceptions #16852
Conversation
…the exception to dictionary
…the exception to dictionary
…ry was not created
bf5bd14
to
2d4bddb
Compare
Codecov Report
@@ Coverage Diff @@
## master #16852 +/- ##
==========================================
+ Coverage 76.79% 76.90% +0.10%
==========================================
Files 1021 1022 +1
Lines 54707 54836 +129
Branches 7457 7470 +13
==========================================
+ Hits 42014 42172 +158
+ Misses 12449 12418 -31
- Partials 244 246 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM!
* chore: support error_type in SupersetException and method to convert the exception to dictionary * chore: support error_type in SupersetException and method to convert the exception to dictionary * refactor handling command exceptions fix update query status when query was not created
* chore: support error_type in SupersetException and method to convert the exception to dictionary * chore: support error_type in SupersetException and method to convert the exception to dictionary * refactor handling command exceptions fix update query status when query was not created
SUMMARY
The sql_json view code in superset core view without any "clean code" standard and it does not adopt any software development principle.
This is the fifteenth PR in the sequence of future PRs ([previous PR](refactor: sql_json view endpoint: move all logic from view to Command class)) try to solve it by refactoring the code.
The PR focus on organizing the command exception handling
actually, there are no logic changes so it implies on the current tests.