DashboardScene: Fixes full page reload of fullscreen view of a repeated panel (#76326)

* Progress on view panel for repeats

* Good enough

* Update
This commit is contained in:
Torkel Ödegaard
2023-10-13 16:03:38 +02:00
committed by GitHub
parent 23fe8fcf5a
commit 0d55dad075
8 changed files with 165 additions and 41 deletions

View File

@@ -576,7 +576,7 @@ func TestDashAlertPermissionMigration(t *testing.T) {
name: "should ignore fixed roles even if they would affect access",
enterprise: true,
roles: map[accesscontrol.Role][]accesscontrol.Permission{
accesscontrol.Role{Name: "fixed:dashboards:writer"}: {
{Name: "fixed:dashboards:writer"}: {
{Action: dashboards.ActionDashboardsRead, Scope: dashboards.ScopeDashboardsAll},
{Action: dashboards.ActionDashboardsWrite, Scope: dashboards.ScopeDashboardsAll},
{Action: dashboards.ActionDashboardsDelete, Scope: dashboards.ScopeDashboardsAll},
@@ -602,7 +602,7 @@ func TestDashAlertPermissionMigration(t *testing.T) {
name: "should ignore custom roles even if they would affect access",
enterprise: true,
roles: map[accesscontrol.Role][]accesscontrol.Permission{
accesscontrol.Role{Name: "custom role"}: {
{Name: "custom role"}: {
{Action: dashboards.ActionDashboardsRead, Scope: dashboards.ScopeDashboardsAll},
{Action: dashboards.ActionDashboardsWrite, Scope: dashboards.ScopeDashboardsAll},
{Action: dashboards.ActionDashboardsDelete, Scope: dashboards.ScopeDashboardsAll},