[v10.0.x] Nested folders: Allow renaming a folder multiple times (#68550)

Nested folders: Allow renaming a folder multiple times (#68379)

Return folder version in response that is required for updating
the entry in the dashboard table.

(cherry picked from commit d458292b66)

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2023-05-16 14:52:54 +01:00
committed by GitHub
parent 2641637106
commit d0cf3d1b48
+2
View File
@@ -155,6 +155,7 @@ func (s *Service) Get(ctx context.Context, cmd *folder.GetFolderQuery) (*folder.
// always expose the dashboard store sequential ID
f.ID = dashFolder.ID
f.Version = dashFolder.Version
return f, err
}
@@ -351,6 +352,7 @@ func (s *Service) Update(ctx context.Context, cmd *folder.UpdateFolderCommand) (
// always expose the dashboard store sequential ID
foldr.ID = dashFolder.ID
foldr.Version = dashFolder.Version
return foldr, nil
}