grafana/pkg/api/dtos
owensmallwood 0b4af38bfa
Public Dashboards: Query Caching (#51403)
* passes id and uid to PublicDashboardDatasource

* betterer results

* If for a public dashboard, return the PublicDashboardDataSource first or else getDatasourceSrv.get() will fail bc of no authed user.

Added some unit tests for resolving the uid from the many possible datasource types.

* updates betterer

* Exports DashboardService. Adds method to DashboardService to build anonymous user for use with public dashboards where there is no authed user. Adds method on dashboard_queries to get all dashboard uids from a dashboard.

* refactors to get unique datasource uids

* Adds tests for getting all unique datasource uids off a dashboard

* adds test for building anonymous user with read and query actions that are scoped to each datasource uid in the dashboard

* updates casing of DashboardService

* updates test case to have additional panel with a different datasource

* gives default interval to public dashboard data source
2022-07-06 12:42:39 -06:00
..
acl.go API: Extract OpenAPI specification from source code using go-swagger (#40528) 2022-02-08 13:38:43 +01:00
alerting_test.go Fix misspell issues 2018-09-21 11:54:36 +02:00
alerting.go Chore: Remove dead code (#28664) 2020-11-05 11:00:00 +01:00
annotations.go Chore : Replace dashboardid with dashboardUID in annotation API (#48481) 2022-05-02 11:35:36 +02:00
apikey.go Access control: Pass access control metadata for api keys (#48445) 2022-04-29 15:30:24 +02:00
dashboard.go public dashboards: finalize db schema & v1 feature complete (#50467) 2022-06-22 13:58:52 -08:00
datasource.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
folder.go RBAC: Add access control metadata to folder dtos (#51158) 2022-06-22 10:29:26 +02:00
index.go Navigation: Display Starred dashboards in the Navbar (#51038) 2022-06-27 15:41:00 +01:00
invite.go chore: avoid alias for models in plugins (#22483) 2020-02-28 12:51:21 +01:00
live.go Live: http publish, refactor live interfaces (#32317) 2021-03-30 13:23:29 +03:00
models_test.go Chore: Remove gotest.tools dependency (#31391) 2021-02-22 11:53:15 +01:00
models.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
org.go feat(organization): added update org address to http api and to org details settings view, closes #2672 2015-09-08 14:22:44 +02:00
playlist.go Added playlist controls to new react DashNav 2019-02-04 21:08:30 +01:00
plugins.go Plugins: Refactor plugin dashboards (#44315) 2022-01-28 10:28:33 +01:00
prefs.go I18n: Add locale to user preference (#49425) 2022-06-14 12:53:51 +01:00
short_url.go Dashboard: Allow shortlink generation (#27409) 2020-10-14 12:48:48 +02:00
user_token.go Feature: Parse user agent string in user auth token api response (#16… (#17504) 2019-06-11 14:12:52 +02:00
user.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00