mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Deprecate FolderIds in Query (#77624)
Chore: Deprecate FolderID in Query
This commit is contained in:
@@ -37,10 +37,11 @@ type Query struct {
|
||||
Type string
|
||||
DashboardUIDs []string
|
||||
DashboardIds []int64
|
||||
FolderIds []int64
|
||||
FolderUIDs []string
|
||||
Permission dashboards.PermissionType
|
||||
Sort string
|
||||
// Deprecated: use FolderUID instead
|
||||
FolderIds []int64
|
||||
FolderUIDs []string
|
||||
Permission dashboards.PermissionType
|
||||
Sort string
|
||||
}
|
||||
|
||||
type Service interface {
|
||||
@@ -83,7 +84,7 @@ func (s *SearchService) SearchHandler(ctx context.Context, query *Query) (model.
|
||||
DashboardUIDs: query.DashboardUIDs,
|
||||
DashboardIds: query.DashboardIds,
|
||||
Type: query.Type,
|
||||
FolderIds: query.FolderIds,
|
||||
FolderIds: query.FolderIds, // nolint:staticcheck
|
||||
FolderUIDs: query.FolderUIDs,
|
||||
Tags: query.Tags,
|
||||
Limit: query.Limit,
|
||||
|
Reference in New Issue
Block a user