chore: add cleanup task for duplicated provisioned dashboards (#115103)

* chore: add cleanup task for duplicated provisioned dashboards
This commit is contained in:
Renato Costa
2025-12-12 13:56:47 -05:00
committed by GitHub
parent a37ebf609e
commit c73cab8eef
8 changed files with 561 additions and 21 deletions
@@ -202,6 +202,11 @@ func (s *Service) searchFoldersFromApiServer(ctx context.Context, query folder.S
if query.Title != "" {
// allow wildcard search
request.Query = "*" + strings.ToLower(query.Title) + "*"
// or perform exact match if requested
if query.TitleExactMatch {
request.Query = query.Title
}
// if using query, you need to specify the fields you want
request.Fields = dashboardsearch.IncludeFields
}