From d458292b66535520a8ff35b50ad823cc1449f47a Mon Sep 17 00:00:00 2001 From: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> Date: Tue, 16 May 2023 16:41:14 +0300 Subject: [PATCH] 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. --- pkg/services/folder/folderimpl/folder.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/folder/folderimpl/folder.go b/pkg/services/folder/folderimpl/folder.go index 279821885da..b5c1740e789 100644 --- a/pkg/services/folder/folderimpl/folder.go +++ b/pkg/services/folder/folderimpl/folder.go @@ -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 }