grafana/pkg/services/dashboards
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
..
database Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
service Public Dashboards: Pubdash panels get data from pubdash api (#50556) 2022-06-13 18:03:43 -06:00
accesscontrol_test.go RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00
accesscontrol.go RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00
dashboard_provisioning_mock.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
dashboard_service_mock.go Start of dashboard query API (#49547) 2022-06-13 15:23:56 -08:00
dashboard.go Start of dashboard query API (#49547) 2022-06-13 15:23:56 -08:00
folder_service_mock.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
folder_store_mock.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
folder.go Dashboards: Refactor service to make it injectable by wire (#44588) 2022-02-16 14:15:44 +01:00
models.go public dashboards: insert default public dashboard config into database on save (#49131) 2022-06-02 18:27:23 -08:00
store_mock.go RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00