-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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: fixing mysql error message #14416
Conversation
@AAfghahi I just realized, can you update the unit tests as well? If though they should pass, it would be nice to have the error message there consistent with what MySQL returns. |
Oh yes, good point. |
@betodealmeida fixed the tests |
Codecov Report
@@ Coverage Diff @@
## master #14416 +/- ##
==========================================
- Coverage 76.67% 76.56% -0.11%
==========================================
Files 955 955
Lines 48250 48284 +34
Branches 6032 6032
==========================================
- Hits 36996 36969 -27
- Misses 11058 11119 +61
Partials 196 196
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Co-authored-by: Beto Dealmeida <[email protected]>
Co-authored-by: Beto Dealmeida <[email protected]>
Co-authored-by: Beto Dealmeida <[email protected]>
Co-authored-by: Beto Dealmeida <[email protected]>
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.
Awesome!
bb88a9f
to
dd0863d
Compare
* master: (38 commits) refactor(native-filters): allow cascading only for filter_select (apache#14441) test(maximize-chart): Add tests to maximize chart action (apache#14371) fix: fixing mysql error message (apache#14416) feat: Logic added to limiting factor column in Query model (apache#13521) change relationship (apache#14435) fix: bootstrap data permissions (apache#14348) fix: parse simple string error message values (apache#14360) chore: add stack trace to all calls of logger.error (apache#14382) update README with new docs and recordings (apache#14432) Renamed impyla from implya in impala.mdx and Renamed PIP package impyla from impala in index.mdx (apache#14425) fix(native-filters): fix filter scope error (apache#14426) feat: Adding limiting_factor column to Query model (apache#14234) feat: Add etag caching to dashboard APIs (apache#14357) chore: Moves Card to the components folder (apache#14139) feat: Dynamic imports for the Icons component (apache#14318) feat: Support env vars configuration for WebSocket server (apache#14398) fix: SQLLab role permissions (apache#14372) fix(native-filters): always show filters without dataset (apache#14409) fix error getting partitionQuery from table.partition (apache#14369) refactor: Boostrap to AntD - Tabs (apache#14048) ...
* fixing mysql error message * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update superset/db_engine_specs/mysql.py Co-authored-by: Beto Dealmeida <[email protected]> * fixed broken test * changed error type Co-authored-by: Beto Dealmeida <[email protected]>
* fixing mysql error message * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update superset/db_engine_specs/mysql.py Co-authored-by: Beto Dealmeida <[email protected]> * fixed broken test * changed error type Co-authored-by: Beto Dealmeida <[email protected]>
* fixing mysql error message * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update superset/db_engine_specs/mysql.py Co-authored-by: Beto Dealmeida <[email protected]> * fixed broken test * changed error type Co-authored-by: Beto Dealmeida <[email protected]>
* fixing mysql error message * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update tests/db_engine_specs/mysql_tests.py Co-authored-by: Beto Dealmeida <[email protected]> * Update superset/db_engine_specs/mysql.py Co-authored-by: Beto Dealmeida <[email protected]> * fixed broken test * changed error type Co-authored-by: Beto Dealmeida <[email protected]>
SUMMARY
The previous regex for custom database errors for mySQL had an extra period, this fixes that. The same was true for postgres when you are editing an already existing database.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before (postgres):
After (postgres)
After
TEST PLAN
ADDITIONAL INFORMATION