Unistore: Skip label for getting full path (#102928)

This commit is contained in:
Stephanie Hingtgen
2025-03-26 15:50:53 -05:00
committed by GitHub
parent 558773ed7f
commit 0087d7bd58
7 changed files with 235 additions and 7 deletions
@@ -312,7 +312,7 @@ func (ss *FolderUnifiedStoreImpl) GetFolders(ctx context.Context, q folder.GetFo
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
opts.LabelSelector = utils.AnnoKeyFullpath + "=true"
opts.LabelSelector = utils.LabelGetFullpath + "=true"
}
out, err := ss.k8sclient.List(ctx, q.OrgID, opts)