-
Notifications
You must be signed in to change notification settings - Fork 14k
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: auto-complete of tables and names are not working in SQL lab #19152
fix: auto-complete of tables and names are not working in SQL lab #19152
Conversation
096b2a4
to
61dbdd5
Compare
/testenv up |
@rusackas Ephemeral environment spinning up at http://54.202.246.98:8080. Credentials are |
Codecov Report
@@ Coverage Diff @@
## master #19152 +/- ##
=======================================
Coverage 66.54% 66.54%
=======================================
Files 1646 1646
Lines 63630 63638 +8
Branches 6475 6477 +2
=======================================
+ Hits 42343 42350 +7
- Misses 19607 19609 +2
+ Partials 1680 1679 -1
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.
Looks (and works) great! Thank you!
setTableOptions(options); | ||
setCurrentTable(currentTable); | ||
setLoadingTables(false); | ||
if (forceRefresh) addSuccessToast('List updated'); | ||
}) | ||
.catch(e => { | ||
.catch(() => { |
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.
Thanks for the extra cleanup along the way!
Ephemeral environment shutdown and build artifacts deleted. |
🏷️ preset:2022.11 |
…ache#19152) (cherry picked from commit 3b427b2)
SUMMARY
Currently table names are not added to autocomplete in SQL Lab
When the schema is selected, then a query is made to fetch the tables for the database/schema combination.
Those options were not properly propagated and stored in the reducer, thus the tables never appeared.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
Screen.Recording.2022-03-15.at.09.58.49.mov
After:
Screen.Recording.2022-03-15.at.09.56.51.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
Fixes #19008