mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
[search] handle folderids query param (#100223)
handle folderids query param
This commit is contained in:
parent
0bd4e3bda2
commit
7c9f47ac67
@ -1686,6 +1686,17 @@ func (dr *DashboardServiceImpl) searchDashboardsThroughK8sRaw(ctx context.Contex
|
||||
Values: query.FolderUIDs,
|
||||
}}
|
||||
request.Options.Fields = append(request.Options.Fields, req...)
|
||||
} else if len(query.FolderIds) > 0 { // nolint:staticcheck
|
||||
values := make([]string, len(query.FolderIds)) // nolint:staticcheck
|
||||
for i, id := range query.FolderIds { // nolint:staticcheck
|
||||
values[i] = strconv.FormatInt(id, 10)
|
||||
}
|
||||
|
||||
request.Options.Labels = append(request.Options.Labels, &resource.Requirement{
|
||||
Key: utils.LabelKeyDeprecatedInternalID, // nolint:staticcheck
|
||||
Operator: string(selection.In),
|
||||
Values: values,
|
||||
})
|
||||
}
|
||||
|
||||
if query.ProvisionedRepo != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user