grafana/public/test/helpers
Sonia Aguilar 718401d250
Alerting: Add smart type selection when creating a new alert rule (#71071)
* 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>
2023-07-13 17:02:47 +02:00
..
alertingRuleEditor.tsx Alerting: Add smart type selection when creating a new alert rule (#71071) 2023-07-13 17:02:47 +02:00
asserts.ts Chore: use jest.mocked in favor of type assertions/any (#51156) 2022-06-21 13:47:33 +01:00
convertToStoreState.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
createFetchResponse.ts Plugins: Remove deprecated /api/tsdb/query metrics endpoint (#49916) 2022-06-01 13:05:15 +02:00
fieldConfig.ts grafana/data: Move getPanelOptionsWithDefaults from core (#60813) 2022-12-29 05:48:22 -08:00
getDashboardModel.ts Dashboards: Unify angular auto-migration code (#63915) 2023-03-27 18:11:45 +03:00
getQueryOptions.ts Chore: Remove deprecated dashboardId from panel query runner (#64786) 2023-04-14 16:50:10 -07:00
getTemplateSrvDependencies.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
initTemplateSrv.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
selectOptionInTest.ts Alerting: Fix RuleEditor flaky test for existing grafana managed alert (#59780) 2022-12-07 16:15:33 +01:00
TestProvider.tsx Explore: URL migrations & improved state management (#69692) 2023-06-21 10:06:28 +01:00