grafana/pkg/services/dashboards
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
..
database Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
service Start of dashboard query API (#49547) 2022-06-13 15:23:56 -08: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