K8s: Folders: Reduce db calls with /api/folders (#103058)

This commit is contained in:
Stephanie Hingtgen
2025-03-28 18:13:08 -05:00
committed by GitHub
parent 290e5cbe83
commit b67b9e3c5e
4 changed files with 75 additions and 0 deletions
+1
View File
@@ -84,6 +84,7 @@ 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)