K8s: GetFolders to return default limit (#104976)

This commit is contained in:
Stephanie Hingtgen
2025-05-06 08:09:18 +03:00
committed by GitHub
parent bcb2a7e36f
commit f5fd7a15b6
@@ -321,7 +321,9 @@ func (ss *FolderUnifiedStoreImpl) GetHeight(ctx context.Context, foldrUID string
// The full path UIDs of B is "uid1/uid2".
// The full path UIDs of A is "uid1".
func (ss *FolderUnifiedStoreImpl) GetFolders(ctx context.Context, q folder.GetFoldersFromStoreQuery) ([]*folder.Folder, error) {
opts := v1.ListOptions{}
opts := v1.ListOptions{
Limit: folderSearchLimit,
}
if q.WithFullpath || q.WithFullpathUIDs {
// only supported in modes 0-2, to keep the alerting queries from causing tons of get folder requests
// to retrieve the parent for all folders in grafana