grafana/public/app/features/alerting/unified/components
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
..
alert-groups Alerting: Fix permissions for timeintervals UI and improve display of contact points in notification policies (#96129) 2024-11-14 09:55:15 +00:00
alertmanager-entities Alerting: Consume k8s API for notification policies tree (#96147) 2024-11-26 13:46:39 +00:00
bridges
common Alerting: Show a warning when a template has been potentially misconfigured (#94698) 2024-10-15 14:00:20 +03:00
contact-points Alerting: Consume k8s API for notification policies tree (#96147) 2024-11-26 13:46:39 +00:00
export Alerting: Add new button for exporting new alert rule in HCL format (#96785) 2024-11-25 11:52:28 +01:00
expressions Alerting: Remove threshold as default expression for grafana-managed recording rules (#94949) 2024-10-22 10:22:42 +02:00
extensions Plugin extensions: Make sure core features use new hooks (#92723) 2024-09-13 09:23:18 +02:00
mute-timings Alerting: Consume k8s API for notification policies tree (#96147) 2024-11-26 13:46:39 +00:00
notification-policies Alerting: Consume k8s API for notification policies tree (#96147) 2024-11-26 13:46:39 +00:00
panel-alerts-tab
permissions Alerting: Add manage permissions UI logic for Contact Points (#92885) 2024-09-27 19:56:32 +01:00
receivers Alerting: notification template group (#96447) 2024-11-22 14:40:20 +02:00
rule-editor Alerting: Add new button for exporting new alert rule in HCL format (#96785) 2024-11-25 11:52:28 +01:00
rule-viewer Alerting: Fix runbook URL overflow (#93516) 2024-11-26 10:12:25 +01:00
rules Chore: Make ResizeObserver test mock only emit if an element is being observed (#96770) 2024-11-21 10:39:19 +00:00
settings Alerting: Lint and remove unused object properties (#92996) 2024-11-11 13:02:46 +00:00
silences Routing: Remove nested silences routes (#94385) 2024-10-09 13:56:54 +03:00
templates Alerting: Fix some templates RBAC UI action control/checks (#94898) 2024-11-13 17:14:15 +00:00
AlertLabel.tsx
AlertLabelDropdown.tsx
AlertLabels.test.tsx
AlertLabels.tsx
AlertManagerPicker.tsx
AlertStateDot.tsx
AlertingPageWrapper.tsx
AnnotationDetailsField.tsx
Authorize.tsx
CollapseToggle.test.tsx
CollapseToggle.tsx
ConditionalWrap.tsx
DetailsField.tsx
DynamicTable.tsx Alerting: Prometheus primary mode for the alert list page (#92975) 2024-09-27 14:27:16 +02:00
DynamicTableWithGuidelines.tsx
EmptyArea.tsx
EmptyAreaWithCTA.tsx
Expression.tsx
GrafanaAlertmanagerDeliveryWarning.test.tsx
GrafanaAlertmanagerDeliveryWarning.tsx
HoverCard.tsx Alerting: New search UI – Part 1 (#91620) 2024-09-11 14:29:26 +03:00
InfoIcon.tsx
InfoPausedRule.tsx
InvalidIntervalWarning.tsx
Label.tsx
MenuItemPauseRule.tsx Alerting: New list view (Part 1) (#95039) 2024-11-18 10:48:15 +01:00
MetaText.tsx
MoreButton.tsx
NoAlertManagerWarning.tsx
PluginBridge.test.tsx
PluginBridge.tsx
Provisioning.tsx
RuleLocation.tsx
Spacer.tsx
StateColoredText.tsx
StateTag.tsx
Tokenize.tsx Alerting: New search UI – Part 1 (#91620) 2024-09-11 14:29:26 +03:00
Well.tsx
WithReturnButton.tsx