-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
SQL Datasources: Reinstate SQL data source behavior around database selection when default configured databases already exist #65659
Conversation
You have successfully added a new CodeQL configuration |
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.
It's looking mostly good, left a couple comments and should be good to go!
@baldm0mma This looks great! The error also seems to be thrown in an unexpected scenario (for me at least). On mssql with set default database, if I skip choosing a dataset and go straight for table and column, I get an invalid query and when running it I get the message that the database configuration has been changed, although it wasn't. e.g: Screen.Recording.2023-05-29.at.15.13.46.movThis happens on all 3 ds'es and is a bit confusing. e.g. with all 3: Screen.Recording.2023-05-29.at.15.16.02.movThe main problem seems that not selecting the dataset but still setting the other options will trigger that warning, then a user would select a dataset and still have the other selects set but the SQL query preview doesn't show it. Maybe a different warning should be thrown that tells the user to choose a dataset and also after setting the dataset, all other selects should be reset so the user isn't confused seeing the select box set, but the query invalid like in the video |
…pdate the database correctly
…g default datasets
@mdvictor Good catch! This behavior should now be fixed. I think you're right about adding a similar warning in the query editor, but I think that should be in another PR; there's a number of similar, small updates I'd like to make like the one you mentioned, but that don't really belong in this PR.
|
preconfiguredDataset, | ||
}: DatasetSelectorProps) => { | ||
/* | ||
The behavior of this component - for MSSQL and MySQL datasources - is based on whether the user chose to create a datasource |
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 work with the explanations!
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! Great work with this one!
@ricky-undeadcoders Could you tell us when the docker image with this feature will be available? |
What is this feature?
This reinstates SQL data source behavior around database selection when default configured databases already exist, or is updated to have one.
Expected behavior for data sources, created either in the user interface or a provisioning file:
Does not interfere with datasources in Explore mode.
Why do we need this feature?
To match previous behavior with our sql datasources.
Who is this feature for?
Everyone.
Which issue(s) does this PR fix?:
Fixes #63161 and fixes #64790
Special notes for your reviewer:
Please check that: