Nested folders: Fix move (#65526)

* Nested Folders: Fix move response

Fix JSON tags to be consistent with the GET endpoint

* Add API test for moving to root folder

* Allow move to root folder

* Fix failure message

* Update OpenAPI specification
This commit is contained in:
Sofia Papagiannaki authored and GitHub committed 2023-03-30 11:46:11 +03:00
1 parent fc16fb0407
commit c65cd5833a
6 files changed
+506 -50

No files matched your search

@@ -182,6 +182,9 @@ func (ss *sqlStore) Get(ctx context.Context, q folder.GetFolderQuery) (*folder.F
}
func (ss *sqlStore) GetParents(ctx context.Context, q folder.GetParentsQuery) ([]*folder.Folder, error) {
if q.UID == "" {
return []*folder.Folder{}, nil
}
var folders []*folder.Folder
recQuery := `