Tom Ratcliffe
d91e1a4e3a
Refactor tab query param logic and add tests
2024-04-12 09:13:29 +01:00
Tom Ratcliffe
800a2e0228
Fix tests being stateful due to locationService
2024-04-12 09:13:29 +01:00
Tom Ratcliffe
94ad66998f
Send tab query param through when returning from template save
2024-04-12 09:13:29 +01:00
Tom Ratcliffe
933cc3f075
Tweak ContactPoints to use query param for tab selection
2024-04-12 09:13:29 +01:00
Tom Ratcliffe
a852b70953
Fix console.errors from edit group modal tests
2024-04-10 19:13:41 +01:00
Tom Ratcliffe
fff524b54c
Make quick eval buttons in group edit set dirty state on form and handle invalid case
2024-04-10 19:13:41 +01:00
Tom Ratcliffe
584d2bcb91
Remove useEffect that was setting incorrect display value for pending period
2024-04-10 19:13:41 +01:00
Armand Grillet
212acb9bc5
Alerting: clarify alerting silences ( #85853 )
...
* Clarify alerting silences
* Update docs/sources/alerting/configure-notifications/create-silence.md
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
---------
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-04-10 18:30:21 +02:00
Ashley Harrison
3c69de6be5
Chore: removing some type assertions ( #85839 )
...
* fix some type assertions in loops
* some more cleanup
* some alerting fixes
* put comments in correct place to ignore rule
* couple more
* undo SilencesFilter changes
2024-04-10 14:54:31 +01:00
Sonia Aguilar
e234d098e9
Alerting: Get oncall metada only when we have alert manager configuration data ( #85622 )
...
* Get oncall metada from url in settings only when we have alert manager configuration
* Add test in useContactPointsWithStatus hook
* Fix tests
2024-04-09 09:02:44 +02:00
Adela Almasan
5f0ca1429b
Annotations: Fix annotation title ( #85614 )
2024-04-05 17:39:10 -05:00
Konrad Lalik
9b4f88c6f6
Alerting: Improve template preview ( #84798 )
...
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-04-04 18:37:24 +03:00
Gilles De Mey
d3ee3c0a24
Alerting: Evaluation quick buttons ( #85010 )
...
Co-authored-by: Tom Ratcliffe <tomratcliffe@users.noreply.github.com>
2024-04-04 16:24:35 +02:00
Gilles De Mey
c41b0a71cf
Alerting: Add state history polling interval ( #84837 )
2024-04-04 14:06:15 +02:00
Tobias Skarhed
f387cff836
Accessibility: Default Icon to aria-hidden ( #84362 )
...
* Icon: aria hide icon, unless a label is set
* Update doc
* Remove weird auto import
* Fix fialing tests
* Add recommendation for Tooltip
* Consider more aria attributes to support Tooltip
* Handle tabIndex and aria-hidden case
* Add comment about aria-label
2024-04-04 12:07:50 +02:00
Tom Ratcliffe
0ec48cfdbd
Add success toast for rule update back in
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
d585a5bc88
Rename tag for combined alert rules
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
1fcb264c87
Add InfoPausedRule back to alert detail view
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
20a1955026
Reuse StateTag for Paused state
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
0e87adbc97
Remove await from dispatch
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
ff8203a6cf
Forward ref to StateTag so it can work with Tooltip
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
fb40c09eaf
Reuse existing mock user method
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
2ca5e43a65
Remove superfluous alert
from pause text
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
30471c340a
Use verbose mutation from RTKQ for better IDE experience
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
28572102cf
Use produce
for pause payload generation and return early
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
12eeda5b7d
Hide alert update success toast
2024-04-03 18:38:49 +01:00
Gilles De Mey
fbe43100aa
add paused badge
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
30699dabec
Move repeated Paused message into component
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
31fb80b29a
Move MenuItemPaused to components folder
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
1e54899c6d
Remove unneeded type
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
b037236b9c
Add tag invalidation to updateRule mutation
...
...so the alert detail view updates appropriately
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
9ca2f7bece
Add pause/resume logic to menu items on Alert detail view
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
7d80373b5e
Move repeated menu item logic for pausing rules into separate component
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
b84962ef3f
Update tests to use existing mock server approach
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
5fbca0962e
Fix import/export messing with Policy tests
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
bd06607a51
Fix typing check for paused rules in table
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
820f4f0ef5
Remove console logs, fix aggregate errors and add missing endpoint
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
8c313add00
Add test for resuming a paused alert rule
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
fef481efc3
Add mock data for paused rules
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
5505b72998
Add first pass of basic mock server for alerting usage
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
72a3142c3b
Add pause/resume button with mutation for saving alert rule changes
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
9a416b8241
Fix potential display of "0" on rule details tab
...
When looking at the details tab of an alert rule, the last evaluation could potentially display as `0` due to falsy checks on React rendering
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
a94c3d63cc
Update utils for determining paused state of a rule
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
7fd9cbbfb5
Export alerts limit for reuse when re-fetching rules list
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
1a5d227e05
Hide "firing for time" if a rule is paused
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
93fd11fe86
Update alert state tag to display Paused as its own "state"
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
a881e7e404
Display info message on rule detail view when a rule is paused
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
31be1231cf
Move max width from rule editor parent
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
d0dcb72683
Display info message on rule form when a rule is paused
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
e5a6dff801
Add mutation method to update a rule
2024-04-03 18:38:49 +01:00