[search] folder name lookup performance (#100154)

[search] use search for folder name lookup
This commit is contained in:
Scott Lepper
2025-02-07 17:19:23 -05:00
committed by GitHub
parent 196029f287
commit 378bb6ea3f
6 changed files with 80 additions and 31 deletions
+4
View File
@@ -88,3 +88,7 @@ func ToFolderStatusError(err error) k8sErrors.StatusError {
},
}
}
func IsForbidden(err error) bool {
return k8sErrors.IsForbidden(err) || errors.Is(err, dashboards.ErrFolderAccessDenied)
}