grafana/public
Tom Ratcliffe e4a1243948
Alerting: Consume k8s API for notification policies tree (#96147)
* Add basic usage of K8s API for notification policies

* Add permissions checks for navtree for routes

* Add and update permissions for routing tree logic

* Add capability to skip calling contact points hook

* Conditionally show list of mute timings depending on permissions

* Conditionally link to mute timings if user can see at least one

* Add work in progress k8s handlers for routing tree

* Update notification policy hooks

* Wire up policies to permissions better (conditionally calling APIs)

* Add additional checks for whether to show grafana AM

* Add permission checks to access control

* Remove accidental permissions after rebase

* Update types and const for k8s routes

* Improve statefulness and reset routing tree in tests

* Update notif policy tests to check k8s and config API

* Fix type assertion

* Move non-grafana test out of .each

* Make failure case safer

* Override tag invalidation for notification policies API

* Pass in error and add new error alert component

* Add basic mock server conflict check

* Add test to check user can save after a conflict

* Add logic to allow reloading policies if changed by another user

* Fix test

* Update translations in Modals

* Add ViewAlertGroups ability

* Tweak provisioning logic and memoize AM config response

* Update snapshots for useAbilities

* Update result destructure

* Use enums for provenance in routingtrees

* Use consistent memoisation

* Fix _metadata for vanilla AM

* useAsync for error / update state

* move k8s api error handling to separate file

* use cause for error codes

* Use `supported` bools from Alertmanager abilities and clarify default policy

---------

Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-11-26 13:46:39 +00:00
..
app Alerting: Consume k8s API for notification policies tree (#96147) 2024-11-26 13:46:39 +00:00
dashboards
emails Auth: Passwordless Login Option Using Magic Links (#95436) 2024-11-14 08:50:55 -05:00
fonts Chore: Update Inter font files (#82446) 2024-02-14 16:57:02 +00:00
gazetteer
img Chore: update Asserts menu icon again (#95522) 2024-10-28 23:55:19 +02:00
lib Monaco Editor: Load via ESM (#78261) 2024-02-22 12:31:40 +01:00
locales Alerting: Consume k8s API for notification policies tree (#96147) 2024-11-26 13:46:39 +00:00
maps
sass Chore: Remove unused sass variables (#94723) 2024-10-15 13:38:42 +01:00
swagger Swagger: show user icon (#96736) 2024-11-20 15:43:25 +02:00
test Chore: Make ResizeObserver test mock only emit if an element is being observed (#96770) 2024-11-21 10:39:19 +00:00
vendor
views Frontend: Replace deprecated meta tag with correct version (#95939) 2024-11-06 10:34:14 +00:00
api-enterprise-spec.json GAS: Show mapped roles in role picker (#96681) 2024-11-20 17:37:12 +00:00
api-merged.json [docs] document 409 Conflict on updating data sources. (#93170) 2024-11-21 11:28:30 +02:00
openapi3.json [docs] document 409 Conflict on updating data sources. (#93170) 2024-11-21 11:28:30 +02:00
robots.txt