Commit Graph

22124 Commits

Author SHA1 Message Date
Tom Ratcliffe
0dc003aadc Split handlers out into separate files 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
f419c9b53a Add comment explaining reset in silences editor 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
df5c62b8ad Misc tidy up 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
21a3f4817a Add correct tag invalidation after creating a silence 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
cdfc6baea4 Remove unused fetchAlerts method 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
f397830098 Refactor Silences test 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
10fcd541e3 Add handlers to mock server 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
341449f4f5 Remove unused actions/reducers 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a1d2a9670b Restructure Silences components for better separation of concerns 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
11ed882c84 Add mock server handlers necessary for Silences 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
8f27ec2521 Add silences RTK Query API 2024-04-29 14:15:48 +01:00
kay delaney
6f875188b7
Chore: Clean up package.json files (#86951)
* Chore: Clean up package.json files

Removes any unused packages, adds missing peer dependencies
2024-04-29 14:03:01 +01:00
Haris Rozajac
b52e349639
Explore and Correlations: Replace deprecated layout components (#86967)
Replace deprecated layout components
2024-04-29 13:50:03 +01:00
Piotr Jamróz
5830d6761d
ifrost/fix-link (#86965)
* Fix link label

* Switch to lowercase
2024-04-29 14:33:00 +02:00
Matias Chomicki
f1e8d2645f
Loki: update HorizontalGroup deprecation (#86995)
* Loki: update HorizontalGroup deprecation

* Update betterer
2024-04-29 13:14:06 +01:00
Ashley Harrison
c151a97110
Chore: Enable no-unreduced-motion and fix errors (#86572)
* enable `no-unreduced-motion` in betterer

* move all animation calls inside handleReducedMotion

* fix violations + enable rule

* update rule README

* remove unnecessary transition from <Collapse>

* remove handleReducedMotion utility and add handleMotion to theme

* update to use new theme value

* handle Dropdown and IconButton

* handle AppChromeMenu and update lint message

* keep rotation at a reduced speed

* handle DashboardLoading
2024-04-29 13:12:36 +01:00
github-actions[bot]
706110be62
I18n: Download translations from Crowdin (#86807)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-29 11:50:15 +02:00
Torkel Ödegaard
a4bb4c8400
DashboardScene: Fixes issues with relative time range in panel edit (#86862)
* DashboardScene: Fixes deleting dirty dashboard

* Update

* Progress

* Update

* Update

* Update

* Update

* Update

* Update

* update

* Update
2024-04-29 10:53:57 +02:00
Torkel Ödegaard
01f8301504
DashboardScene: Fixes issue with dashboard links and variables (#86910)
* DashboardScene: Fixes issue with dashboard links and variables

* Update
2024-04-29 10:28:41 +02:00
Victor Marin
8705e03d57
Home dashboard test (#86961)
home dashboard test
2024-04-29 10:56:06 +03:00
Gábor Farkas
500558bb72
mysql decouple frontend part (#86308)
* mysql decouple frontend part

* eslint "fix"

* package version update
2024-04-29 09:55:09 +02:00
Dominik Prokop
67968df70e
DashboardDataSourceBehaviour: Handle loading library panel (#86980)
* DashboardDataSourceBehaviour: Handle loading library panel

* Remove timeout

* FIx test
2024-04-29 09:49:46 +02:00
Oscar Kilhed
fdc1023586
Dashboard scenes: Fix min interval not saving (#86962)
* Fix min interval not saving

* Add tests

* Fix test
2024-04-29 09:41:43 +02:00
Juan Cabanas
b77763bbcc
ShareModal: Differentiate between panel and dashboard share for tracking (#86992) 2024-04-26 15:35:39 -03:00
kay delaney
1dbb3bfdea
Scenes/PanelVizTypePicker: Use default tab if listMode is unsupported (#86885)
Closes #84565
2024-04-26 18:44:18 +01:00
Ben Sully
f2ca115913
Scenes: support interpolations in TemplateSrv.replace (#86990)
TemplateSrv.replace takes an optional 'interpolations' argument which
records information about the variables which were found during the
interpolation. Until [this Scenes PR][scenes PR] this wasn't supported
by Scenes so the interpolations argument was being ignored if dashboard
scenes were enabled. This commit bumps the scenes version and passes
the interpolations array along to the scenes function.

[scenes PR]: https://github.com/grafana/scenes/pull/708
2024-04-26 16:44:36 +01:00
Darren Janeczek
9af4607e78
datatrails: fix bookmark/recent trail detection, prevent duplications, save trail on browser close/reload (#85677)
* fix: persistence trail detection, save on unload

- fixes detection on bookmarks and recents when current step isn't final
- now save current trail on browser close or reload (unload)
- refresh page or return to URL that corresponds to a recent trail will
   resume that trail instead of creating a duplicate recent trail
- do not create a recent trail out of an empty starting trail

* fix: bookmarks status after making new step

- clone bookmark trail state to prevent it from being changed by user
- re-evaluate bookmark status after creating new step
2024-04-26 11:35:38 -04:00
linoman
9a1f9c126f
Replace deprecated layout elements (#86977) 2024-04-26 17:13:28 +02:00
Oscar Kilhed
c3cde17b33
Dasbhoard scenes: Don't return null when uids are not matching for new dashboards (#86998)
Don't return null when uids not matching for new dashboards
2024-04-26 17:12:47 +02:00
Juan Cabanas
85c23eed38
ShareModal: Remove PublicDashboard tab when share panel (#86946) 2024-04-26 11:34:55 -03:00
Kristina
e6f51536bf
Explore: Add tests around query history errors (#86810)
* WIP build tests

* Fix one test :D

* Unskip, remove console logging, fix limit test

* Add back whitespace
2024-04-26 08:09:31 -05:00
Alex Khomenko
8117aad9af
Stack: Add size props (#86900)
* Abstract sizing styles from Box

* Upd name

* Stack: Add sizing props

* Revert

* Update LoginServiceButtons
2024-04-26 08:17:16 +03:00
kay delaney
0f98bd3b7b
Chore: Rewrite dashboard component css using object styles (#86930) 2024-04-25 20:18:02 +01:00
Juan Cabanas
9f07c37fac
ShareModal: Fix share link tracking (#86940) 2024-04-25 15:38:12 -03:00
Leon Sorokin
d1b67847a2
Migrations: Graph (old) percent stacked (#84335) 2024-04-25 12:51:07 -05:00
kay delaney
917cbce448
Scenes: Remove lodash usage from DetectChangesWorker (#86683) 2024-04-25 14:42:24 +01:00
Todd Treece
32215adb37
Chore: Remove HorizontalGroup and VerticalGroup from storage (#86888) 2024-04-25 13:58:25 +01:00
Sonia Aguilar
a68df4be88
Alerting: Skip flaky test (#86921)
Skip flacky test
2024-04-25 13:43:37 +01:00
Tom Ratcliffe
f43762f39a Remove (most) occurrences of HorizontalGroup within Alerting 2024-04-25 12:54:41 +01:00
Alexa V
e711d10925
Dashboard: Migration Fixes Mixed data source losing existing queries (#86883) 2024-04-25 13:06:57 +02:00
Tobias Skarhed
18c4bee18e
DashboardLinks: Make click area bigger in the list (#86481)
* DasboardLinks: Make click area bigger in the list

* Update DashboardLinkList.tsx

* Remove import
2024-04-25 10:59:04 +01:00
Erik Sundell
0140dfdddf
Chore: Add e2e selectors to alert rule page (#86909)
wip
2024-04-25 10:00:11 +02:00
Kristin Laemmert
f1aa6549f6
Chore: Upgrade go version to 1.22.2 (#86873)
* Chore: Upgrade go version to 1.22.2
* upgrade to latest swagger for go 1.22 compatibility
* regen openapi spec
* upgrade go in github workflows
2024-04-24 14:26:14 -04:00
Darren Janeczek
53ead9904d
datatrails: interpolate adhoc variables and datasource variables when opening "explore metrics" from dashboard panels (#86252)
* fix: interpolate "explore metrics" from panels

---------

Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>

* fix: remove support for legacy dashboard

- simplify code
- take advantage of scenes dashboard async and datasource api object

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-04-24 12:05:48 -04:00
Javier Ruiz
9e54c450d7
Add onClick behaviour to links to new tooltips (#84974)
* Add onClick behaviour to new tooltips

* Prefer using DataLink component
2024-04-24 17:24:47 +02:00
Tom Ratcliffe
0582e05f8f Add PoC for different MSW approach 2024-04-24 15:57:11 +01:00
Torkel Ödegaard
c965c27994
DataTrails: Exploring alternatives to history issues (#86843)
* DataTrails: Exploring alternatives to history issues

* incorporated unit tests from #86817 and #86741

---------

Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>
2024-04-24 10:36:58 -04:00
Levente Balogh
17a3ec52b6
Plugin preloading: Fix performance measurement (#86855)
fix: measuring plugin preload performance
2024-04-24 15:37:22 +02:00
Khushi Jain
5dd8353ab1
Dashboards: Migrate from aria-label e2e selectors to data-testid (#78536)
* Dashboards: Migrate from aria-label e2e selectors to data-testid

* more changes

* addPanelwidget

* Test: Update .betterer.results

* refactor: fix e2e tests

* refactor: fix failing test

* refactor: update plugin-e2e after adding selector changes to the packege

---------

Co-authored-by: Laura Benz <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: Laura Benz <laura.benz@grafana.com>
2024-04-24 15:16:19 +02:00
Victor Marin
38917c4e79
Fix home breadcrumbs (#86786)
* fix home breadcrumbs

* fix homepage gap

* fix tests
2024-04-24 14:54:30 +03:00