mirror of
https://github.com/grafana/grafana.git
synced 2025-01-05 13:45:16 -06:00
718401d250
* Add smart type selection when creating a new alert rule * Auto switch when switch button has not been clicked yet * remove unnecessay code after the last refacgtor * Refactor * Remove unneeded prop * Move SmartAlertTypeDetector to its own file * Fix tests * Refactor: new useSetExpressionAndDataSource hook * Fix expressions not been propagated when switching from one type to another * Change texts * Update tests * Update text in switch button * Update texts and tests * Refactor: move code to getCanSwitch new method * Move smart alert after queries and remove auto-switch * Remove expressions and restore them when switching between grafana and cloud type * Rename previous expression state * Fix tests * Add data source name for data source-managed alert selection * Update reducer when changing cloud data source * PR review suggestions * PR review suggestions 2nd part * PR review suggestions 3th part * Fix canSwitch * Update texts on smart alert --------- Co-authored-by: Virginia Cepeda <virginia.cepeda@grafana.com> |
||
---|---|---|
.. | ||
alertingRuleEditor.tsx | ||
asserts.ts | ||
convertToStoreState.ts | ||
createFetchResponse.ts | ||
fieldConfig.ts | ||
getDashboardModel.ts | ||
getQueryOptions.ts | ||
getTemplateSrvDependencies.ts | ||
initTemplateSrv.ts | ||
selectOptionInTest.ts | ||
TestProvider.tsx |