annotations

This commit is contained in:
Ryan McKinley
2025-12-02 16:28:45 +03:00
parent ba038e2848
commit 614248c63d
4 changed files with 9 additions and 8 deletions
@@ -32,7 +32,7 @@ func convertUnstructuredToFolder(item *unstructured.Unstructured, identifiers ma
uid := meta.GetName()
url := ""
if uid != folder.RootFolder.UID {
if !folder.IsRootFolder(uid) {
slug := slugify.Slugify(title)
url = dashboards.GetFolderURL(uid, slug)
}
@@ -180,7 +180,7 @@ func (ss *FolderUnifiedStoreImpl) GetParents(ctx context.Context, q folder.GetPa
hits := []*folder.Folder{}
parentUID := q.UID
for parentUID != "" {
for !folder.IsRootFolder(parentUID) {
folder, err := ss.Get(ctx, folder.GetFolderQuery{UID: &parentUID, OrgID: q.OrgID})
if err != nil {
if apierrors.IsForbidden(err) {