grafana/pkg
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
..
api Plugins: Refactor plugin repository API (#69063) 2023-05-30 11:48:52 +02:00
build GoogleAPI: Add retries functionallity to GoogleAPI calls (#69129) 2023-05-26 12:59:56 +03:00
bus Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
cmd Plugins: Refactor plugin repository API (#69063) 2023-05-30 11:48:52 +02:00
codegen Chore: Hacky first pass on generating composable kinds within grafana/schema (#64723) 2023-05-30 05:56:18 -07:00
components ApiKeyGenPrefix: rename package (#65623) 2023-03-30 17:04:10 +02:00
cuectx Chore: Hacky first pass on generating composable kinds within grafana/schema (#64723) 2023-05-30 05:56:18 -07:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr Expressions/threshold: Fix incorrect thresholds args length (#66859) 2023-04-20 05:42:34 -04:00
extensions Deps: Replace go-jose v2 with go-jose v3 (#64228) 2023-03-06 15:12:51 +01:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra RBAC: Remove legacy ac from authorization middleware (#68898) 2023-05-24 09:49:42 +01:00
kinds Improve Dashboards schema docs (#68904) 2023-05-29 15:15:28 +03:00
kindsysreport Chore: Fix times in schemas (#64906) 2023-03-21 10:42:19 +01:00
login Chore: Adding "allowed_groups" Configuration Parameter to Generic OAuth Method (#69025) 2023-05-30 11:07:04 +02:00
middleware RBAC: Remove legacy ac from authorization middleware (#68898) 2023-05-24 09:49:42 +01:00
mocks/mock_gcsifaces Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
models Auth: Add feature flag to move token rotation to client (#65060) 2023-03-23 14:39:04 +01:00
modules Chore: Add initial support for deployment modes (#63992) 2023-03-06 14:06:52 -05:00
plugins Chore: Hacky first pass on generating composable kinds within grafana/schema (#64723) 2023-05-30 05:56:18 -07:00
registry Schema: Add schema for role+access policies (#68047) 2023-05-24 10:31:57 -07:00
server AuthN: Embed an OAuth2 server for external service authentication (#68086) 2023-05-25 15:38:30 +02:00
services Alerting: Matching instances preview for notification policies (#68882) 2023-05-30 15:15:22 +02:00
setting AuthN: Embed an OAuth2 server for external service authentication (#68086) 2023-05-25 15:38:30 +02:00
tests Plugins: Refactor plugin repository API (#69063) 2023-05-30 11:48:52 +02:00
tsdb TestData: Support labels in CSV content name (#61337) 2023-05-26 19:36:43 +03:00
util HTTP: Add TLS version configurability for Grafana server (#67482) 2023-05-08 17:11:36 +02:00
web Alerting: Add limits and filters to Prometheus Rules API (#66627) 2023-04-17 17:45:06 +01:00
README.md Chore: Move all backend contribution documents to a single directory (#61140) 2023-01-11 11:16:52 +01:00
ruleguard.rules.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00

This directory contains the code for the Grafana backend.

The contributor documentation for Grafana's backend is in /contribute/backend/README.md.