grafana/pkg/api
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
..
apierrors chore/backend: move dashboard errors to dashboard service (#51593) 2022-06-30 09:31:54 -04:00
avatar
datasource backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
docs backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
dtos Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
frontendlogging Frontend Logging: Integrate grafana javascript agent (#50801) 2022-06-28 03:25:30 -04:00
navlinks Chore: Remove `newNavigation` feature toggle and old navbar code (#50872) 2022-06-16 10:48:38 +01:00
pluginproxy backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
response Errors: Introduce error type with Grafana specific metadata (#47504) 2022-06-14 10:50:11 +02:00
routing
static
accesscontrol.go Service accounts: Add service account to teams (#51536) 2022-07-06 05:34:36 -04:00
admin.go
admin_encryption.go Encryption: Add support for multiple data keys per day (#47765) 2022-05-23 13:13:55 +02:00
admin_provisioning.go
admin_provisioning_test.go RBAC: Refactor GetUserPermissions to use []accesscontrol.Permission (#50683) 2022-06-14 10:17:48 +02:00
admin_test.go RBAC: Refactor GetUserPermissions to use []accesscontrol.Permission (#50683) 2022-06-14 10:17:48 +02:00
admin_users.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
admin_users_test.go
alerting.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
alerting_test.go sqlstore split: dashboard permissions (#49962) 2022-06-01 14:16:26 -04:00
annotations.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
annotations_test.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
api.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
apikey.go
app_routes.go
basic_auth.go
basic_auth_test.go
comments.go
common_test.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
dashboard.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
dashboard_permission.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
dashboard_permission_test.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
dashboard_public.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
dashboard_public_test.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
dashboard_snapshot.go chore/backend: move dashboard errors to dashboard service (#51593) 2022-06-30 09:31:54 -04:00
dashboard_snapshot_test.go backend/dashboardsnapshot service: move models (#50898) 2022-06-17 09:09:01 -04:00
dashboard_test.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
dataproxy.go
datasources.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
datasources_test.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
fakes.go Plugins: Register management endpoints only when external managed is also false (#51802) 2022-07-06 16:22:59 +02:00
folder.go RBAC: Add access control metadata to folder dtos (#51158) 2022-06-22 10:29:26 +02:00
folder_permission.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
folder_permission_test.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
folder_test.go chore/backend: move dashboard errors to dashboard service (#51593) 2022-06-30 09:31:54 -04:00
frontend_logging.go Frontend Logging: Integrate grafana javascript agent (#50801) 2022-06-28 03:25:30 -04:00
frontend_logging_test.go Frontend Logging: Integrate grafana javascript agent (#50801) 2022-06-28 03:25:30 -04:00
frontend_metrics.go
frontendsettings.go Plugins: Show that Secrets Manager Plugin is active in the UI (#50953) 2022-06-29 08:48:23 -04:00
frontendsettings_test.go Plugins: Show that Secrets Manager Plugin is active in the UI (#50953) 2022-06-29 08:48:23 -04:00
grafana_com_proxy.go
health.go
health_test.go
http_server.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
http_server_test.go
index.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
ldap_debug.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
ldap_debug_test.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
login.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
login_oauth.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
login_oauth_test.go OAuth: Redirect to login if no oauth module is found or if module is not configured (#50661) 2022-06-13 16:59:15 +02:00
login_test.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
metrics.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
metrics_test.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
org.go
org_invite.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
org_test.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
org_users.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
org_users_test.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
password.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
playlist.go backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
playlist_play.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
plugin_dashboards.go
plugin_dashboards_test.go
plugin_metrics.go
plugin_metrics_test.go
plugin_resource.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
plugins.go Plugins: Separate manager read/write components (#50313) 2022-06-07 17:51:00 +02:00
plugins_test.go Plugins: Register management endpoints only when external managed is also false (#51802) 2022-07-06 16:22:59 +02:00
preferences.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
preferences_test.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
quota.go
quota_test.go RBAC: Refactor GetUserPermissions to use []accesscontrol.Permission (#50683) 2022-06-14 10:17:48 +02:00
render.go
search.go Search (SQL): support dashboardUID query parameter (#50121) 2022-06-02 12:56:01 -07:00
search_test.go RBAC: Refactor GetUserPermissions to use []accesscontrol.Permission (#50683) 2022-06-14 10:17:48 +02:00
short_url.go ShortURL: Use new Error type (#50859) 2022-06-15 15:11:36 +02:00
short_url_test.go
signup.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
stars.go Public Dashboards: Query Caching (#51403) 2022-07-06 12:42:39 -06:00
swagger.go
team.go
team_members.go
team_members_test.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
team_test.go RBAC: Refactor GetUserPermissions to use []accesscontrol.Permission (#50683) 2022-06-14 10:17:48 +02:00
user.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
user_test.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
user_token.go Auth: Add option for case insensitive login (#49262) 2022-06-24 16:59:45 +02:00
user_token_test.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
utils.go