From 71fda4fa420c71b39ee1dcde8cc5ede3e3f7aee8 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Thu, 18 Dec 2025 10:47:07 +0300 Subject: [PATCH] do not actually write the value --- pkg/storage/unified/apistore/prepare.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/storage/unified/apistore/prepare.go b/pkg/storage/unified/apistore/prepare.go index 43cfed7115d..af4187a3769 100644 --- a/pkg/storage/unified/apistore/prepare.go +++ b/pkg/storage/unified/apistore/prepare.go @@ -21,7 +21,6 @@ import ( common "github.com/grafana/grafana/pkg/apimachinery/apis/common/v0alpha1" "github.com/grafana/grafana/pkg/apimachinery/utils" secrets "github.com/grafana/grafana/pkg/registry/apis/secret/contracts" - "github.com/grafana/grafana/pkg/services/folder" "github.com/grafana/grafana/pkg/storage/unified/resourcepb" ) @@ -82,7 +81,7 @@ func (s *Storage) verifyFolder(obj utils.GrafanaMetaAccessor) error { if obj.GetFolder() == "" { // return apierrors.NewBadRequest("missing folder annotation") // TODO?: should this be optionally be done in a mutation webhook? - obj.SetFolder(folder.GeneralFolderUID) // always enter something + // ???? obj.SetFolder(folder.GeneralFolderUID) // always enter something return nil } } else if obj.GetFolder() != "" {