CI: Bump golangci-lint to 2.0.2 (#103572)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user