-
Notifications
You must be signed in to change notification settings - Fork 16.2k
fix(sqllab): prev shema/table options remained on fail #29638
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
Merged
justinpark
merged 3 commits into
apache:master
from
justinpark:fix--clear-prev-db-schema-selection
Jul 19, 2024
Merged
fix(sqllab): prev shema/table options remained on fail #29638
justinpark
merged 3 commits into
apache:master
from
justinpark:fix--clear-prev-db-schema-selection
Jul 19, 2024
+55
−19
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eschutho
approved these changes
Jul 19, 2024
justinpark
commented
Jul 19, 2024
| }); | ||
|
|
||
| test('Should fetch the search keyword when total count exceeds initial options', async () => { | ||
| fetchMock.reset(); |
Member
Author
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.
restore from this accidental removal
eschutho
pushed a commit
that referenced
this pull request
Jul 24, 2024
Member
|
@supersetbot label 4.1 |
sadpandajoe
pushed a commit
that referenced
this pull request
Aug 13, 2024
(cherry picked from commit 5539f87)
Member
Author
|
@michael-s-molina Please add this hotfix on 4.0 too. |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🏷️ bot
A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels
size/M
sqllab
Namespace | Anything related to the SQL Lab
v4.1
Label added by the release manager to track PRs to be included in the 4.1 branch
🍒 4.1.0
Cherry-picked to 4.1.0
🍒 4.1.1
Cherry-picked to 4.1.1
🍒 4.1.2
Cherry-picked to 4.1.2
🍒 4.1.3
Cherry-picked to 4.1.3
🍒 4.1.4
🚢 5.0.0
First shipped in 5.0.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Due to the difference between the data of the RDK query and currentData, an issue occurred in SQL Lab where, instead of showing an empty selection due to (permission) errors, the schema and table selector allowed the selection of previous database or schema options.
As a result, it was possible to combine schema and table selections that do not actually exist, causing errors and potentially confusing users.
This commit addresses these issues by changing to currentData, ensuring that only results existing in the strictly selected database and schema are displayed.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
before--using-current-data.mov
After:
after--using-current-data.mov
TESTING INSTRUCTIONS
Select a db/schema/tables in Sql Lab page
Choose a db that doesn't allow to access the schemas
See the schema selection remained or not after db selection changed
ADDITIONAL INFORMATION