Commit Graph

35755 Commits

Author SHA1 Message Date
Serge Zaitsev
0b55c41d05
Chore: Remove global bus variable (#50765)
* Chore: Remove global bus variable

* fix bus in tests
2022-06-14 16:07:41 +02:00
Agnès Toulet
99c8ce5ab9
GrafanaData: Fix week start for non-English browsers (#50582)
* grafana-data: Fix start week for non-English browsers

* apply review suggestion
2022-06-14 15:12:52 +02:00
Levente Balogh
b184280cb3
fix: set base-path manually (#50773)
In case we didn't set a `basePath`, `<AppPluginLoader>` would always use the current path as a `basePath`.
This can get problematic in case the Cloud Onboarding app tries to handle it's own sub-routes.
2022-06-14 14:29:55 +02:00
Alexander Emelin
c581f6d945
rm debug log when publishing live message (#50774) 2022-06-14 15:15:57 +03:00
Josh Hunt
3cebd87bbb
I18n: Add locale to user preference (#49425)
* Add __debug_bin file to gitignore

* Add locale user preference

* undo defaulting to existing JSONData in preferences save
2022-06-14 12:53:51 +01:00
renovate[bot]
b4c8b6d672
Update dependency rc-cascader to v3.6.0 (#50728)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-14 12:52:02 +01:00
renovate[bot]
97f7966c2d
Update dependency core-js to v3.23.0 (#50732)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-14 12:01:45 +01:00
renovate[bot]
60316d1ddb
Update dependency immutable to v4.1.0 (#50699)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-14 11:53:22 +01:00
renovate[bot]
b7f832b7c0
Update dependency react-custom-scrollbars-2 to v4.5.0 (#50735)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-14 11:43:31 +01:00
Sofia Papagiannaki
7418a80264
API: Make Swagger specification more consistent (#50576)
* Fix swagger generation targer using mac

Validate using the swagger binarry instead of the docker container

* API: Make swagger specification more consistent

Fix operation parameter ordering
2022-06-14 12:35:22 +02:00
Joey Tawadrous
f87927c82e
Traces: Add absolute time to span details (#50685)
* Show absolute time

* Add test
2022-06-14 11:13:33 +01:00
Gábor Farkas
a97f022612
Loki: Handle invalid query type values (#50755)
* loki: more robust query-type handling

* better comment

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-06-14 11:48:49 +02:00
Dimitris Sotirakis
7566f800e6
Include public/app/plugins/**/plugin.json in the BE test paths (#50756) 2022-06-14 12:22:52 +03:00
Levente Balogh
2a72dff356
Data Connections: make sub-routes work (#50754)
* fix(Data Connections): make sub-routes work

* test(Data Connections): add basic tests for sub-urls
2022-06-14 11:10:20 +02:00
Emil Tullstedt
929fcd5910
Preferences: Use inmemory structure for testing (#50491) 2022-06-14 10:54:19 +02:00
Emil Tullstedt
264c2a9d1e
Errors: Introduce error type with Grafana specific metadata (#47504) 2022-06-14 10:50:11 +02:00
Sergey Kostrukov
2d3cc26aa8
Prometheus: Remove Azure code from datasource service (#50737)
Ref #35857
2022-06-14 10:47:06 +02:00
Alex Khomenko
701edcdc46
UserListPage: Convert tests to RTL (#50717) 2022-06-14 11:39:43 +03:00
Karl Persson
44ffbfd6aa
RBAC: Refactor GetUserPermissions to use []accesscontrol.Permission (#50683)
* Return slice of permissions instead of slice of pointers for permissions
2022-06-14 10:17:48 +02:00
Kevin Lewin
5aab95885f
Alertmanager: Adding SigV4 Authentication to Alertmanager Datasource (#49718)
* adding sigv4 alertmanager

* adding sigv4 alertmanager

* ConfigEditor: Adding Render Prop
2022-06-14 10:15:21 +02:00
Joan López de la Franca Beltran
fcf6b29987
Docs: Add envelope encryption as breaking change (#50716)
* Docs: Add envelope encryption as breaking change

* Minor improvements

* Apply suggestions from code review

Co-authored-by: Tania <yalyna.ts@gmail.com>
2022-06-14 10:04:21 +02:00
Ryan McKinley
c5547fde59
Open Heatmap: update plugin snapshot testdata (#50747) 2022-06-14 00:35:20 -07:00
Zoltán Bedi
262ee5219e
Chore: Update yarn sdks (#50726) 2022-06-14 08:42:59 +02:00
Gábor Farkas
b6a590e535
do not update react-redux (#50700) 2022-06-14 08:39:21 +02:00
Carl Bergquist
b8b6d0e1a1
Instrumentation: Define handlers for requests that are not handled with named handlers (#50613)
Signed-off-by: bergquist <carl.bergquist@gmail.com>

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2022-06-14 07:58:20 +02:00
Ryan McKinley
b75cc7a86c
Heatmap: Remove alpha flag from new heatmap panel (#50733) 2022-06-14 07:18:54 +02:00
Ryan McKinley
4e4686001b
Timeseries: Improve cursor Y sync behavior (#50740) 2022-06-14 07:16:49 +02:00
owensmallwood
1bb2d2599c
Public Dashboards: Pubdash panels get data from pubdash api (#50556)
* Public dashboard query API

* Create new API on service for building metric request

* Flesh out testing, implement BuildPublicDashboardMetricRequest

* Test for errors and missing panels

* WIP: Test for multiple datasources

* Refactor tests, add supporting code for multiple datasources

* Gets the panel data from the pubdash query api

* Adds tests to make sure we get the correct api url from retrieving panel data

* Public dashboard query API

* Create new API on service for building metric request

* Flesh out testing, implement BuildPublicDashboardMetricRequest

* Test for errors and missing panels

* WIP: Test for multiple datasources

* Refactor tests, add supporting code for multiple datasources

* Handle queries from multiple datasources

* Replace dashboard time range with pubdash time range settings

* Fix comments from review, build failure

* removes changes to DataSourceWithBackend.ts regarding getting the pubdash panel query url. Going to do this in a new class, PublicDashboardDataSource.ts

* Include pubdash Uid in dashboard meta

* Creates new PublicDashboardDataSource.ts and adds test

* Passes pubdash uid down to PanelQueryRunner.ts to a PublicDashboardDatasource can be chosen when were looking at a public dashboard

* removes comment

* checks for error when unmarshalling json

* Only replace dashboard time settings with pubdash time settings when pubdash time settings exist

* formatting and added comment

Co-authored-by: Jesse Weaver <jesse.weaver@grafana.com>
Co-authored-by: Jeff Levin <jeff@levinology.com>
2022-06-13 18:03:43 -06:00
Jesse Weaver
0371884cdd
Start of dashboard query API (#49547)
This PR adds endpoints for public dashboards to retrieve data from the backend (trusted) query engine. It works by executing queries defined on the backend without any user input and does not support template variables.

* Public dashboard query API
* Create new API on service for building metric request
* Flesh out testing, implement BuildPublicDashboardMetricRequest
* Test for errors and missing panels
* Refactor tests, add supporting code for multiple datasources
* Handle queries from multiple datasources
* Explicitly pass no user for querying public dashboard

Co-authored-by: Jeff Levin <jeff@levinology.com>
2022-06-13 15:23:56 -08:00
Drew Slobodnjak
07aa2bbbba
GeomapPanel: Add base types to data layer options (#50053)
* GeomapPanel: Add base types to data layer options

Removed isBaseMap check from data layer filter, which used to remove
base layer types from data layer options. For layer editor, slider to
control opacity is added.

* GeomapPanel: Reorder data layer options

For data layer selection, present user with data layer types first,
before base map layer types. Refactored to consolidate layer options
into a single exported function in registry with a base map boolean.

* GeomapPanel: Add descriptions to base map types

* GeomapPanel: add hideOpacity and apply to markers

* GeomapPanel: update descriptions for map types

Closes #47812
2022-06-13 14:07:20 -07:00
renovate[bot]
904b70cfe2
Update dependency eslint-plugin-jest to v26.5.3 (#50690)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 19:16:09 +00:00
renovate[bot]
246099c52d
Update dependency @swc/helpers to v0.4.0 (#50730)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 19:14:40 +00:00
renovate[bot]
41e654d7f4
Update dependency moveable to v0.30.0 (#50723)
* Update dependency moveable to v0.30.0

* Update react-movable as well

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-06-13 21:00:46 +02:00
renovate[bot]
fb417d80a7
Update dependency @types/d3 to v7.4.0 (#50682)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 18:06:24 +00:00
Alexander Weaver
17e76b06ff
Alerting: Fix rendering issues in OpenAPI docs (#50630)
* Clean up status codes

* Missing consumes tag

* Regenerate

* Fix incorrect documented responses and missing UI elements

* Fix response docs

* Fix wrong response copy paste

* Regenerate

* Temporarily revert
2022-06-13 12:51:07 -05:00
Artur Wierzbicki
9779f684d1
Storage: refactor - decouple the Upload method from HTTP concepts (#50378)
* add `IsPathValidationError` util to fs api

* refactor storage.Upload method

* remove unused struct

* extract `RootUpload` constant

* move file validation outside of the service

* Make UploadErrorToStatusCode exported

* refactor pathValidationError check

* if -> switch

Co-authored-by: Tania B <yalyna.ts@gmail.com>
2022-06-13 21:21:50 +04:00
renovate[bot]
3b9d8da296
Update dependency @react-types/shared to v3.13.0 (#50679)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 17:17:50 +00:00
Dimitris Sotirakis
2dfa3270ef
Fix docs - add *.md checks (#50720) 2022-06-13 19:05:08 +02:00
Yuriy Tseretyan
c314ce48c7
Alerting: Support for optimistic locking for alert rules (#50274)
* add support for optimistic locking for alert_rule table
* return 409 in the case of opitimistic lock
2022-06-13 12:15:28 -04:00
Ryan McKinley
402b5ce4c6
SearchV2: support keyboard navigation (#49650)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2022-06-13 09:10:19 -07:00
Jean-Philippe Quéméner
1ed7280363
Alerting: add right provenance when creating mute timings (#50707) 2022-06-13 18:05:41 +02:00
Ashley Harrison
759e3ec4fa
Never set gridPos to null (#50400) 2022-06-13 16:43:42 +01:00
bob454522
bd818be36f
Too many tick chars on line 75 (#50708)
there are 4x ticks on line 75,  when there should be 3x.
this is causing all of the 9.0beta2 changelog notes to be commented out and not visible to the public on the changelog.
changing the 4x ticks to 3x ticks fixes this (on line 75).

(LOVE GRAFANA!)
2022-06-13 17:40:46 +02:00
Joan López de la Franca Beltran
97baa6911d
Metrics: Expose functions to initialize counters at zero (#50122) 2022-06-13 17:35:10 +02:00
Jean-Philippe Quéméner
ed6a887737
Alerting: remove unused function in alert rule store (#50696) 2022-06-13 11:24:29 -04:00
Gábor Farkas
d872aa993d
logs: better hasLogsVolumeSupport check (#50676) 2022-06-13 17:20:57 +02:00
Ryan McKinley
1902357693
Heatmap: consolidate naming conventions (#50272) 2022-06-13 08:08:33 -07:00
Sven Grossmann
d8d3a9c561
added opensearch annotations to not use default ui (#50655) 2022-06-13 17:07:38 +02:00
Agnès Toulet
3e5e86d926
Drone: remove flag from main downstream step (#50681) 2022-06-13 17:06:11 +02:00
Karl Persson
95a4c4a4d6
OAuth: Redirect to login if no oauth module is found or if module is not configured (#50661)
* OAuth: Redirect to login if no oauth module is found or if module is not
configured

* OAuth: Update test to check for location header
2022-06-13 16:59:15 +02:00