grafana/public/app/features/dashboard/services
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
..
DashboardLoaderSrv.ts Owensmallwood/pubdash get public dashboard definition (#50269) 2022-06-06 16:19:34 -06:00
DashboardSrv.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
PublicDashboardDataSource.ts Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
TimeSrv.test.ts TimeSrv: Don't modify refresh interval when editing panel (#51718) 2022-07-05 05:25:07 -04:00
TimeSrv.ts TimeSrv: Don't modify refresh interval when editing panel (#51718) 2022-07-05 05:25:07 -04:00