FeatureFlags: Remove unused settings for admin UI (#114137)

This commit is contained in:
Ryan McKinley
2025-11-20 13:33:44 +00:00
committed by GitHub
parent f6a1d4a14e
commit c9801fc66e
10 changed files with 703 additions and 1171 deletions
@@ -170,8 +170,8 @@ func (s *Service) RestoreVersion(ctx context.Context, cmd *dashver.RestoreVersio
cmd.DashboardUID = u
}
//nolint:staticcheck // not yet migrated to OpenFeature
if s.features.IsEnabledGlobally(featuremgmt.FlagKubernetesDashboards) ||
s.features.IsEnabledGlobally(featuremgmt.FlagDashboardNewLayouts) {
if s.features.IsEnabled(ctx, featuremgmt.FlagKubernetesDashboards) ||
s.features.IsEnabled(ctx, featuremgmt.FlagDashboardNewLayouts) {
s.log.Debug("restoring dashboard version through k8s")
res, err := s.restoreVersionThroughK8s(ctx, cmd)
if err != nil {