-
Notifications
You must be signed in to change notification settings - Fork 16.6k
fix(sqllab): autocomplete and delete tabs #34781
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(sqllab): autocomplete and delete tabs #34781
Conversation
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.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
| Category | Issue | Status |
|---|---|---|
| Unsafe Active Tab Assignment ▹ view | 🧠 Not in scope |
Files scanned
| File Path | Reviewed |
|---|---|
| superset-frontend/src/SqlLab/reducers/getInitialState.ts | ✅ |
| superset-frontend/src/SqlLab/reducers/sqlLab.js | ✅ |
| superset-frontend/src/SqlLab/components/SqlEditor/index.tsx | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
| } | ||
| }); | ||
| } | ||
| lastUpdatedActiveTab = tabHistory.slice(tabHistory.length - 1)[0] || ''; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
cc: @rebenitez1802 |
daf84d8 to
9a900c7
Compare
(cherry picked from commit cefd046)
SUMMARY
In the previous #33522, the autocomplete function was set to be skipped before it was synced. In this commit, following the fix for the SQL editor flushing issue in #34720, this behavior has been reverted so that the autocomplete function works correctly. Additionally, an issue where deleted tabs were not removed upon refresh before they were synced to the server has been fixed.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before:
before--autocomplete.mov
after:
after--autocomplete.mov
before:
before--clear-tabs.mov
after:
after--clear-tabs.mov
TESTING INSTRUCTIONS
Open a new tab and type some keyword to check autocomplete and then close the tab and then refresh the page for deletion
ADDITIONAL INFORMATION