grafana/pkg/services/featuremgmt
Konrad Lalik 2f0728ac67
Alerting: Matching instances preview for notification policies (#68882)
* Basic implementation in web worker

* Move instances discovery to the worker

* Remove filtering from the worker

* Use normalized routes, use rtk query for alert groups fetching

* Reorganize matchers utilities to be available for web workers

* Move object matchers to the machers util file, rename worker

* Move worker code to a separate hook, add perf logging

* Add a mock for the web worker code, fix tests

* Fix tests warnings

* Remove notification policy feature flag

* Add normalizeRoute tests, change the regex match to test for label matching

* Move worker init to the file scope

* Simplify useAsyncFn hook

* Use CorsWorker as a workaround for web workers loading from CDN

* Use a feature flag to enable/disable worker-based preview, add worker error handling

* Add POC for react-enable working with grafana feature toggles

* Code cleanup

* Remove console error, add useRouteGroupsMatcher tests

* Fix tests mock
2023-05-30 15:15:22 +02:00
..
strcase Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
testdata FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
codeowners.go Datasource: datasource config page header redesign (#66999) 2023-05-23 09:18:00 -04:00
features.go Code: codeownership for feature toggles (#64266) 2023-03-07 20:04:20 +04:00
manager_test.go FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
manager.go Chore: remove unused feature flag showFeatureFlagsInUI (#62908) 2023-02-08 19:01:34 -05:00
registry.go Alerting: Matching instances preview for notification policies (#68882) 2023-05-30 15:15:22 +02:00
service_test.go chore: move models/licensing into licensing service (#61878) 2023-01-23 11:53:43 -05:00
service.go Angular: Rename autoMigrateGraphPanels feature flag to autoMigrateOldPanels (#65243) 2023-03-22 21:02:36 -07:00
settings_test.go FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
settings.go Chore: Replace yaml.v2 with yaml.v3 (#59897) 2022-12-06 21:17:17 +01:00
toggles_gen_test.go FeatureFlags: Do not allow spaces in descriptions (#68852) 2023-05-23 07:42:22 -07:00
toggles_gen.csv Alerting: Matching instances preview for notification policies (#68882) 2023-05-30 15:15:22 +02:00
toggles_gen.go Alerting: Matching instances preview for notification policies (#68882) 2023-05-30 15:15:22 +02:00
usage_stats_test.go Previews: remove dashboard previews backend (#66176) 2023-04-13 21:42:24 +04:00
usage_stats.go UsageStats: track enabled features (#47407) 2022-04-08 12:42:33 +02:00