Commit Graph

50548 Commits

Author SHA1 Message Date
Tom Ratcliffe
a5c75c5ffb Remove explicit imports of whatwg-fetch from individual test files 2024-04-18 12:23:38 +01:00
Tom Ratcliffe
389250afe0 Add whatwg-fetch polyfill to jest test setup so all tests run it 2024-04-18 12:23:38 +01:00
Andres Martinez Gotor
0f4a47b180
Plugin load errors: Add more well-known errors (#85960) 2024-04-18 13:04:22 +02:00
github-actions[bot]
80e63b5206
I18n: Download translations from Crowdin (#86438)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-18 10:34:18 +00:00
Ashley Harrison
07044309f1
EmptyState: Add completed variant (#86497)
* add 'completed' variant

* add central text alignment
2024-04-18 11:22:28 +01:00
Laura Fernández
bc07eedaa9
Grafana UI: Replace VerticalGroup with Stack on alerts documentation in Storybook (#86400) 2024-04-18 12:16:57 +02:00
Laura Fernández
6b21d12ce0
Grafana UI: FilterPopup- Replace VerticalGroup and HorizontalGroup with Stack (#86398) 2024-04-18 12:16:38 +02:00
ismail simsek
635d85db7a
InfluxDB: Fix interpolation for floating point number values (#86396)
return number as it is
2024-04-18 11:21:41 +02:00
Ivana Huckova
f3fd2de9dd
Loki: Remove tracking grafana_loki_query_executed and add grafana_explore_loki_query_executed (#86484)
* Loki: Remove  and add

* Update public/app/plugins/datasource/loki/tracking.ts

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-04-18 10:57:18 +02:00
Torkel Ödegaard
1d513f66b8
DashboardScene: Fixes checkbox orienation in save forms (#86408) 2024-04-18 10:15:06 +02:00
Kristina Durivage
4e0e12bb07 add cleanup 2024-04-18 09:04:53 +01:00
Kristina Durivage
bf897c1255 Add clarifying comments/docs 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
ab605e37df Remove unnecessary server.listen() 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
ef5c4b69f3 Remove unused msw import 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
de4510cc70 Reuse setupMswServer for alerting tests 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
76c6e029a5 Fix incidental console error spy that was unneeded 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
6557f5a00e Add whatwg-fetch and fixes to Playlist tests that break when polyfill is added 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
2ab13071fb Add whatwg-fetch and fixes to dashboard tests that break when polyfill is added 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
2674043cef Add whatwg-fetch and fixes to alerting tests that break when polyfill is added 2024-04-18 09:04:53 +01:00
Joey
80d920500b
Tempo: Tidy up types in resultTransformer (#86025)
* Tidy up types

* Ternary
2024-04-18 08:53:06 +01:00
Joey
306cea7350
Tempo: Group by template vars (#86022)
* Add template variables to group by field

* Add test for interpolation

* Add test to allow selecting template vars

* Show custom value
2024-04-18 08:52:51 +01:00
Konrad Lalik
9614126cb7
Alerting: Fix instances link when served from subpath (#86432)
Fix instances link when served from subpath
2024-04-18 08:56:30 +02:00
Torkel Ödegaard
1327bdf575
DashboardScene: Fixes issue saving new dashboard from panel edit (#86477) 2024-04-18 08:46:24 +02:00
Torkel Ödegaard
3870ecd2e0
RefreshPicker: Change running state to be less distracting (#86405)
RefreshPicker: Change running state to not change button variant to destructive
2024-04-18 05:46:43 +02:00
Torkel Ödegaard
a8b81e1481
DashboardScene: Fixes minor issue transitioning between dashboards (#86262)
* DashboardScene: Fixes minor issue transitioning between dashboards

* Update
2024-04-18 05:45:38 +02:00
Andreas Christou
420067a7e1
MSSQL: Add SQL_VARIANT converter and update test (#85823)
Add SQL_VARIANT converter and update test
2024-04-17 16:49:51 -05:00
Adela Almasan
38fe9fcfd1
VizTooltip: Fix heatmap mode All (#86463) 2024-04-17 23:24:13 +02:00
Nick Richmond
82dd573ea4
Expressions: Fix erroneous sorting of metrics and expressions (#86372)
chore: upgrade `dataplane/sdata`
2024-04-17 16:03:33 -04:00
Michael Mandrus
df4c8c3cbc
CloudMigrations: Move business logic out of api layer (#86406)
* move run migration to the cloudmigrationimpl layer

* add migration run list logic down a layer

* remove useless comments

* pull cms calls into their own service
2024-04-17 15:43:09 -04:00
Nick Richmond
00256d3fdd
Prometheus: Cancellable label values requests (#86403)
* feat: cancellable label values requests

* refactor: prefer more explicit `requestId`

* refactor: request options to avoid tedious test changes

* refactor: avoid `any`
2024-04-17 15:03:31 -04:00
Kristina
15ff166fb6
Explore: Mock useExplorePageTitle in every integration test (#86462)
Mock useExplorePageTitle in every integration test
2024-04-17 14:01:09 -05:00
Brendan O'Handley
61c10ed155
Prometheus: Bypass flaky E2E test (#86460)
bypass flaky test
2024-04-17 13:53:22 -05:00
Brendan O'Handley
55b2a4b0c0
Prometheus: Limit Prometheus run query event tracking to queries in Explore (#86054)
only track run query events in explore
2024-04-17 20:40:27 +02:00
Darren Janeczek
53d2714a18
Tooltips: Ensure new viz tooltips are visible within modals (#86258)
fix: ensure new viz tooltips are visible within modals
2024-04-17 13:54:10 -04:00
Kyle Brandt
46efe41e33
Prometheus: (Instrumentation) Add rawExpr (pre-interpolation) to traces (#86449) 2024-04-17 19:53:38 +02:00
Drew Slobodnjak
ed8eacbc7e
Canvas: Fix division by zero (#85443)
* Canvas: Fix division by zero

* Fix last add vertex control

* Apply fix to existing vertices

* Apply deltas to temporary paths

* Persist original source and target coorindates

* Add follow up TODO

* Update connection svg to handle originals

* Get rid of minimum constraints for deltas

* Apply persist coordinate system to vertex handlers

* Consolidate and rename selected value

* Update connection arcs to use new coordinates

* fix editor crashing with scenes

---------

Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-04-17 10:18:17 -07:00
ismail simsek
e528c79689
Chore: Don't apply adhoc filters when promQLScope is enabled (#86454)
* check promQLScope

* add tests
2024-04-17 18:54:28 +02:00
Will Browne
dceb83ab42
Plugins: Expose backendplugin for client proto interface (#86207)
* first pass

* tidy

* add err check

* remove comment

* simplify

* remove unused stuff

* add backend()

* use SDK commit

* add codeowners for go.mod

* fix go.mod

* bump SDK

* go work sync
2024-04-17 18:47:01 +02:00
Dave Henderson
4bb0b78abb
ci: remove milestone check (#86452)
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-04-17 12:06:23 -04:00
Joao Silva
1997faf617
Select: Increase size of virtualized list options (#86444) 2024-04-17 17:01:21 +01:00
Kristina
7112f1effc
Explore: Deprecate local storage singular datasource key (#86250)
* add a note?

* Let Explore own the core/history folder
2024-04-17 09:48:27 -05:00
Tobias Skarhed
1c2065af60
PanelChrome: Improve accessibility landmark markup (#85863)
* Add section and use Text component to get h2 for panel

* Remove heading when collapsible

* Make button text truncate

* Update test

* Remove labelledby as it is not needed anymore

* Use testid selectors in test

* Remove async
2024-04-17 16:44:07 +02:00
Darren Janeczek
2ed7eecf2d
fix: datatrail link to "open in explore" prefix with config.appSubUrl (#86375)
* fix: datatrail link to explore needs appSubUrl
* fix: use `appUrl` when creating URL for sharing
2024-04-17 16:40:40 +02:00
Matias Chomicki
ec43edd8a1
Loki/Prometheus Query Editor: Disabled cmd/ctrl+f keybinding within the editor (#86418)
* Prom: disable cmd f within the editor

* Loki: disable cmd f within the editor

* Update public/app/plugins/datasource/loki/components/monaco-query-field/MonacoQueryField.tsx

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* Monaco: upgrade to 0.34.1

* Loki/Prometheus: allow native search to be displayed

* Formatting

* Monaco: upgrade to 0.34.1

https://github.com/microsoft/monaco-editor/issues/102#issuecomment-1282897640

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-04-17 16:38:43 +02:00
Leonor Oliveira
9baf96dbd2
Storage: dualwriter update implementation (#85844)
* Add update methods for the dual writer

* improve errors

* [WIP] add tests for the update method

* Move example package to its own package so it can be used by the rest package. Finish tests

* Add codeowners

* Use Pod as a dummy resource

* :int

* Lint

* [REVIEW] rename var

* [REVIEW] don't rely on legacy storage at all in mode4

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* [REVIEW] improve comment

* Update pkg/apiserver/rest/dualwriter_mode1.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* [REVIEW] improve mode3

* Lint

* Move test files

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Lint

* Update pkg/apiserver/rest/dualwriter_mode4_test.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Fix error

* Lint

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Don't set the flag to true as updatedObj creates an object in case it's not found

* Lint

* Lint

* Add tests on update

* Lint

---------

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
Co-authored-by: Dan Cech <dcech@grafana.com>
2024-04-17 08:32:34 -06:00
Leon Sorokin
9682022b1d
Transforms: Fix 'Filter data by values' removing rows in unrelated frames (#86087) 2024-04-17 09:07:23 -05:00
Aaron Godin
d409d8e860
IAM - Fix error messages for resource permissions endpoints (#85773)
* IAM: fix many error messages in access-related code to provide more information

* Remove debug statement

* Refactor resourcepermissions package to use errutil

* Replace a few more errors with errutil and wrap errors found in users and teams services

* Apply diff of openAPI spec
2024-04-17 08:53:28 -05:00
Ashley Harrison
60abf01526
remove stray console.log (#86440) 2024-04-17 15:43:38 +02:00
Ieva
33e8292386
Docs: Clarify the docs for viewers_can_edit and editors_can_admin (#86422)
* clarify the docs for viewers_can_edit and editors_can_admin

* more changes

* more changes 2
2024-04-17 14:43:20 +01:00
Karl Persson
1a6777cb93
User: use update function for password updates (#86419)
* Update password through Update function instead

* Remove duplicated to lower

* Refactor password code
2024-04-17 15:24:36 +02:00