ismail simsek
9c0f9f6ba4
Fix sending maxDataPoints as string ( #85561 )
...
* make sure maxDataPoints is a number
* add migration for maxDataPoints
* remove migration
2024-04-04 11:11:18 +02:00
Josh Hunt
aad79c9400
E2C: Start connecting on-prem to real apis ( #85527 )
...
* E2C: Start connecting on-prem to real apis
* actually run the migration
* show resources
* basic dashboards resources
* show dashboard title
* remove console logs
* cleanup 1
* i18n
* disconnect
* i18n
* restore type
* use fixed format
* fix
2024-04-03 13:47:02 -04: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
kay delaney
85127464a3
Scenes: Fix issue where unsaved changes prompt is shown when quickly adding panel to new dashboard ( #85518 )
...
Closes #84577
2024-04-03 15:39:01 +01:00
Josh Hunt
e08b5bd456
E2C: Fix Swagger spec for createMigration post body ( #85525 )
...
* E2C: Fix Swagger spec for CreateCloudMigration post body
* actually, don't rename that type
2024-04-03 11:59:50 +00:00
Ivan Ortega Alba
89638238e5
DashboardScene: Detect changes when live is enabled from settings ( #85409 )
...
* Adapt the code to the new live timer API
* Update scenes
2024-04-03 14:22:10 +03:00
Laura Fernández
4845b1e3c6
ServiceAccount : use InteractiveTable ( #85203 )
2024-04-03 13:12:23 +02:00
Ivan Ortega Alba
eb3d088645
DashboardScene: Implement autofit panels ( #85221 )
2024-04-03 13:36:29 +03:00
Dominik Prokop
b4dc79401b
DashboardScene: Fix explore to dashboard flow ( #85140 )
...
* DashboardScene: Fix explore to dashboard flow
* Tests
* Make sure dashboard is in edit mode when adding from explore
* Allow discarding changes when coming from explore
* Tests
2024-04-03 12:06:38 +02:00
Josh Hunt
ffb5d23a13
E2C: Hook Cloud Receiver-side up to real CreateCloudMigrationToken API ( #85490 )
...
E2C: Hook Cloud Reciever-side up to real CreateCloudMigrationToken API
2024-04-03 08:55:38 +00:00
Giordano Ricci
ff39067605
Explore: Make Explore breadcrumb clickable ( #85437 )
...
* Explore: make Explore breadcrumb a link to an empty Explore page
* update tests
2024-04-03 09:24:04 +01:00
Leon Sorokin
1522499c4a
VizTooltips: Remove remaining old bits ( #85500 )
...
Co-authored-by: Adela Almasan <adela.almasan@grafana.com >
2024-04-02 19:32:01 -05:00
Leon Sorokin
d601acac3a
VizTooltips: Remove old tooltips and annotations ( #84420 )
...
Co-authored-by: Adela Almasan <adela.almasan@grafana.com >
2024-04-02 15:32:46 -05:00
Nathan Marrs
b47f8b429e
Canvas: Hide background image size editor options for SVG based elements ( #85419 )
2024-04-02 09:04:36 -07:00
Josh Hunt
33dd204466
E2C: Generate RTK Query API slice from swagger spec ( #85463 )
...
* add deps and script
* add codegen rtk api clise for cloud migration
* rename all the mock exports to mock
* Reset changes to package.json and yarn.lock
* codeowners
2024-04-02 18:01:33 +03:00
Oscar Kilhed
9ba9cbf300
Bump scenes to 4.1.2 ( #85470 )
...
* Bump scenes to 4.1.2
* Fix tests after fixing the sorting in rows
---------
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com >
2024-04-02 16:15:53 +02:00