K8s: Folders: Modify GetChildren to return only Folder References (#103072)

* Return FolderReference instead of Folder on GetChildren

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>

---------

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
maicon
2025-04-02 01:30:17 -03:00
committed by GitHub
parent 654afbcfa2
commit d8c5c2d3b8
24 changed files with 107 additions and 104 deletions
-1
View File
@@ -84,7 +84,6 @@ func (hs *HTTPServer) GetFolders(c *contextmodel.ReqContext) response.Response {
UID: c.Query("parentUid"),
Permission: permission,
SignedInUser: c.SignedInUser,
RefOnly: true, // nolint:staticcheck
}
folders, err := hs.folderService.GetChildren(c.Req.Context(), q)