Commit Graph

50759 Commits

Author SHA1 Message Date
Tom Ratcliffe
9860117399 Add more fine grained tag invalidation/providing for Silences 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
4fb1ac2bec Check error state more reliably 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a0373c66c3 Add fallback for alertmanager alerts 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
9bf2cf0a52 Rename silences RTKQ tag 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
4d4bf39184 Check for server received body
This is not ideal! Preference would be to have a more robust mock server
that responds to the received silence and appends it to a stateful list for the test
and then resets afterwards
2024-04-29 14:15:48 +01:00
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
Eric Leijonmarck
8a1f43a65d
User: Remove the lowercasing in the query for login conflict (#87032)
* refactor: remove the lowercasing in the query for login conflict

* refactor: move function into the closure gs
2024-04-29 12:24:14 +01:00
Ieva
cee713e34c
Chore: Add tracing to team service (#86999)
* add tracing to team service

* another test fix

* pass in context for team creation and membership checking
2024-04-29 11:32:03 +01:00
Steve Simpson
fbaa847a3c
Alerting: Pass logger into NewRemoteLokiBackend. (#87029)
Tiny refactor to allow a logger to be passed into NewRemoteLokiBackend.
2024-04-29 12:10:23 +02: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
Thomas Wikman
7fab894e9b
DateTimePicker: Alternate timezones now behave correctly (#86750)
* Add failing tests for timezone handling

* Fix `DateTimePicker.tsx` timezone handling

- Resolves `onBlur` issue
- Resolve Calendar and TimeOfDay issues
- Update test to cover different timezone

* Handle `console.warn` in test

* Handle `console.warn` in test #2

* Better handling of invalid date

When parsing date string with `dateTime`, adding a second `formatInput` aids in both parsing the actual string and avoid `console.warn` when `moment` reverts to be using `Date`.

* add more test cases

* Ash/proposed changes (#86854)

* simplify

* only need this change

* formatting

* const > let

* add test to ensure calendar is always showing the matching day

* separate state

* undo story changes

* update util function comments

* fix for selecting date in the calendar

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-29 10:46:44 +01:00
Dai Nguyen
ccd2bff8b0
Docs: Create the Azure AD application section has outdated information. (#71498)
Update index.md
2024-04-29 10:24:49 +01:00
Levente Balogh
e89f6daeda
Plugins: Add an auto-generated part to the plugin.json schema (#86520)
feat: update the plugin.json schema
2024-04-29 11:04:03 +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
Karl Persson
c4cfee8d96
User: support setting org and help flags though update function (#86535)
* User: Support setting active org through update function

* User: add support to update help flags through update function
2024-04-29 08:53:05 +02:00
brendamuir
7077a5850e
Alerting docs: more vale (#86978) 2024-04-27 09:59:42 +02:00
Juan Cabanas
b77763bbcc
ShareModal: Differentiate between panel and dashboard share for tracking (#86992) 2024-04-26 15:35:39 -03:00
Isabel Matwawana
d5fde99c6d
Docs: Add value mappings shared content (#86996)
* Added value mappings shared file

* Fixed name of file

* Fixed list of visualizations using shared file

* Added shared file to visualizations

* Updated shared file and added to canvas

* Updated shared file intro text

* Removed future tense
2024-04-26 14:32:01 -04: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
Hugo Kiyodi Oshiro
7783b16e47
Plugins: Make grafana-com API URL usage consistent (#86920)
Plugins: Fix grafana-com API URL usage
2024-04-26 16:47:38 +02:00
Juan Cabanas
85c23eed38
ShareModal: Remove PublicDashboard tab when share panel (#86946) 2024-04-26 11:34:55 -03:00
Mihai Doarna
45effc48d9
Auth: ignore non-OAuth2 providers when creating social connectors (#86989)
ignore non-oauth2 providers when creating social connectors
2024-04-26 17:14:31 +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
Eric Leijonmarck
eaad38e492
TeamLBAC: Add a limit to the docs for the number of rules (#86971)
teamlbac: update to include the limit for the rules
2024-04-26 13:01:04 +01:00
brendamuir
fd30ceed3e
Alerting docs: vale fixes (#86972)
* Alerting docs: vale fixes

* ran prettier
2024-04-26 12:17:06 +02:00
Eric Leijonmarck
f9714b9672
Docs: Update manage rbac w. toc and reference to provisioning w. file (#81120)
* docs: toc and reference to provisioning

* Update docs/sources/administration/roles-and-permissions/access-control/manage-rbac-roles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-04-26 10:09:08 +01:00