-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
Azure data sources: Set selected config type before save #87481
Conversation
public/app/plugins/datasource/azuremonitor/components/ConfigEditor/MonitorConfig.tsx
Outdated
Show resolved
Hide resolved
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.
The prometheus data source is also affected by this bug and will require changes too 😊
public/app/plugins/datasource/azuremonitor/components/ConfigEditor/MonitorConfig.tsx
Outdated
Show resolved
Hide resolved
public/app/plugins/datasource/mssql/azureauth/AzureAuthSettings.tsx
Outdated
Show resolved
Hide resolved
public/app/plugins/datasource/prometheus/configuration/AzureAuthSettings.tsx
Outdated
Show resolved
Hide resolved
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.
This all LGTM! Just a couple nits in the comments. I think this would also benefit from a unit test to validate that the auth type is correctly set on first load
Hello @bossinc!
Please, if the current pull request addresses a bug fix, label it with the |
1 similar comment
Hello @bossinc!
Please, if the current pull request addresses a bug fix, label it with the |
Hello @bossinc!
Please, if the current pull request addresses a bug fix, label it with the |
This PR must be merged before a backport PR will be created. |
This PR must be merged before a backport PR will be created. |
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.
Nice nice! 🚀
* set selected config type before save * use effect once and move in mssql * add to prom * Update ConfigurationEditor.tsx * Update ConfigurationEditor.tsx * Delete public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx * omadsfdsa * remove unneeded assign (cherry picked from commit 5e19aa7)
* set selected config type before save * use effect once and move in mssql * add to prom * Update ConfigurationEditor.tsx * Update ConfigurationEditor.tsx * Delete public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx * omadsfdsa * remove unneeded assign (cherry picked from commit 5e19aa7)
* set selected config type before save * use effect once and move in mssql * add to prom * Update ConfigurationEditor.tsx * Update ConfigurationEditor.tsx * Delete public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx * omadsfdsa * remove unneeded assign (cherry picked from commit 5e19aa7)
…87583) Azure data sources: Set selected config type before save (#87481) * set selected config type before save * use effect once and move in mssql * add to prom * Update ConfigurationEditor.tsx * Update ConfigurationEditor.tsx * Delete public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx * omadsfdsa * remove unneeded assign (cherry picked from commit 5e19aa7) Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
…87584) Azure data sources: Set selected config type before save (#87481) * set selected config type before save * use effect once and move in mssql * add to prom * Update ConfigurationEditor.tsx * Update ConfigurationEditor.tsx * Delete public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx * omadsfdsa * remove unneeded assign (cherry picked from commit 5e19aa7) Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
…87585) Azure data sources: Set selected config type before save (#87481) * set selected config type before save * use effect once and move in mssql * add to prom * Update ConfigurationEditor.tsx * Update ConfigurationEditor.tsx * Delete public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx * omadsfdsa * remove unneeded assign (cherry picked from commit 5e19aa7) Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
* set selected config type before save * use effect once and move in mssql * add to prom * Update ConfigurationEditor.tsx * Update ConfigurationEditor.tsx * Delete public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx * omadsfdsa * remove unneeded assign (cherry picked from commit 5e19aa7)
…87632) Azure data sources: Set selected config type before save (#87481) * set selected config type before save * use effect once and move in mssql * add to prom * Update ConfigurationEditor.tsx * Update ConfigurationEditor.tsx * Delete public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx * omadsfdsa * remove unneeded assign (cherry picked from commit 5e19aa7) Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
Triggers an onchange event for authType when loading the page and the auth type is null.
This fixes https://github.com/grafana/support-escalations/issues/10390