CI: Bump golangci-lint to 2.0.2 (#103572)

This commit is contained in:
Mariell Hoversholm
2025-04-10 14:42:23 +02:00
committed by GitHub
parent b58b6e828e
commit 757be6365a
291 changed files with 1948 additions and 1835 deletions
@@ -36,7 +36,7 @@ func parseUnstructuredToLegacyFolder(item *unstructured.Unstructured) (*folder.F
url = dashboards.GetFolderURL(uid, slug)
}
created := meta.GetCreationTimestamp().Time.UTC()
created := meta.GetCreationTimestamp().UTC()
updated, _ := meta.GetUpdatedTimestamp()
if updated == nil {
updated = &created
+2 -2
View File
@@ -387,11 +387,11 @@ func (s *Service) setFullpath(ctx context.Context, f *folder.Folder, user identi
// #TODO revisit setting permissions so that we can centralise the logic for escaping slashes in titles
// Escape forward slashes in the title
escapedSlash := "\\/"
title := strings.Replace(f.Title, "/", escapedSlash, -1)
title := strings.ReplaceAll(f.Title, "/", escapedSlash)
f.Fullpath = title
f.FullpathUIDs = f.UID
for _, p := range parents {
pt := strings.Replace(p.Title, "/", escapedSlash, -1)
pt := strings.ReplaceAll(p.Title, "/", escapedSlash)
f.Fullpath = f.Fullpath + "/" + pt
f.FullpathUIDs = f.FullpathUIDs + "/" + p.UID
}