|
|
@ -4,7 +4,6 @@ import ( |
|
|
|
"context" |
|
|
|
"context" |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/grafana/grafana/pkg/apimachinery/identity" |
|
|
|
|
|
|
|
"github.com/grafana/grafana/pkg/bus" |
|
|
|
"github.com/grafana/grafana/pkg/bus" |
|
|
|
"github.com/grafana/grafana/pkg/infra/log" |
|
|
|
"github.com/grafana/grafana/pkg/infra/log" |
|
|
|
"github.com/grafana/grafana/pkg/services/accesscontrol" |
|
|
|
"github.com/grafana/grafana/pkg/services/accesscontrol" |
|
|
@ -67,11 +66,10 @@ func (du *DashboardUpdater) updateAppDashboards() { |
|
|
|
if !pluginSetting.Enabled { |
|
|
|
if !pluginSetting.Enabled { |
|
|
|
continue |
|
|
|
continue |
|
|
|
} |
|
|
|
} |
|
|
|
ctx, _ := identity.WithServiceIdentity(context.Background(), pluginSetting.OrgID) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if pluginDef, exists := du.pluginStore.Plugin(ctx, pluginSetting.PluginID); exists { |
|
|
|
if pluginDef, exists := du.pluginStore.Plugin(context.Background(), pluginSetting.PluginID); exists { |
|
|
|
if pluginDef.Info.Version != pluginSetting.PluginVersion { |
|
|
|
if pluginDef.Info.Version != pluginSetting.PluginVersion { |
|
|
|
du.syncPluginDashboards(ctx, pluginDef, pluginSetting.OrgID) |
|
|
|
du.syncPluginDashboards(context.Background(), pluginDef, pluginSetting.OrgID) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|