K8s/Folders: Fix mode 2 folder creation (#94796)

* Use user UID as identifier instead of ID
* Remove malformed error
This commit is contained in:
Arati R.
2024-10-16 10:44:09 +02:00
committed by GitHub
parent 3e9dd1239a
commit 65fc7cf004
4 changed files with 24 additions and 25 deletions
+6
View File
@@ -674,6 +674,12 @@ func (s *Service) Create(ctx context.Context, cmd *folder.CreateFolderCommand) (
}
if s.features.IsEnabled(ctx, featuremgmt.FlagKubernetesFolders) {
// #TODO is some kind of intermediate conversion required as is the case with user id where
// it gets parsed using UserIdentifier(). Also is there some kind of validation taking place as
// part of the parsing?
f.CreatedByUID = user.GetUID()
f.UpdatedByUID = user.GetUID()
if f.ParentUID == "" {
return f, nil
}