mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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.
This commit is contained in:
committed by
GitHub
parent
5aefe4e030
commit
d458292b66
@@ -155,6 +155,7 @@ func (s *Service) Get(ctx context.Context, cmd *folder.GetFolderQuery) (*folder.
|
|||||||
|
|
||||||
// always expose the dashboard store sequential ID
|
// always expose the dashboard store sequential ID
|
||||||
f.ID = dashFolder.ID
|
f.ID = dashFolder.ID
|
||||||
|
f.Version = dashFolder.Version
|
||||||
|
|
||||||
return f, err
|
return f, err
|
||||||
}
|
}
|
||||||
@@ -351,6 +352,7 @@ func (s *Service) Update(ctx context.Context, cmd *folder.UpdateFolderCommand) (
|
|||||||
|
|
||||||
// always expose the dashboard store sequential ID
|
// always expose the dashboard store sequential ID
|
||||||
foldr.ID = dashFolder.ID
|
foldr.ID = dashFolder.ID
|
||||||
|
foldr.Version = dashFolder.Version
|
||||||
|
|
||||||
return foldr, nil
|
return foldr, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user