grafana/pkg/services/dashboards
Jeff Levin d076bedb5e
public dashboards: finalize db schema & v1 feature complete (#50467)
This PR completes public dashboards v1 functionality and simplifies public dashboard conventions. It exists as a large PR so that we are not making constant changes to the database schema.

models.PublicDashboardConfig model replaced with models.PublicDashboard directly
dashboard_public_config table renamed to dashboard_public
models.Dashboard.IsPublic removed from the dashboard and replaced with models.PublicDashboard.isEnabled
Routing now uses a uuid v4 as an access token for viewing a public dashboard anonymously, PublicDashboard.Uid only used as database identifier
Frontend utilizes uuid for auth'd operations and access token for anonymous access
Default to time range defined on dashboard when viewing public dashboard
Add audit fields to public dashboard

Co-authored-by: Owen Smallwood <owen.smallwood@grafana.com>, Ezequiel Victorero <ezequiel.victorero@grafana.com>, Jesse Weaver <jesse.weaver@grafana.com>
2022-06-22 13:58:52 -08:00
..
database public dashboards: finalize db schema & v1 feature complete (#50467) 2022-06-22 13:58:52 -08:00
service public dashboards: finalize db schema & v1 feature complete (#50467) 2022-06-22 13:58:52 -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 public dashboards: finalize db schema & v1 feature complete (#50467) 2022-06-22 13:58:52 -08:00
dashboard.go public dashboards: finalize db schema & v1 feature complete (#50467) 2022-06-22 13:58:52 -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: finalize db schema & v1 feature complete (#50467) 2022-06-22 13:58:52 -08:00
store_mock.go public dashboards: finalize db schema & v1 feature complete (#50467) 2022-06-22 13:58:52 -08:00