Chore: Deprecate FolderIds in Query (#77624)

Chore: Deprecate FolderID in Query
This commit is contained in:
Kat Yang
2023-11-07 09:51:44 -05:00
committed by GitHub
parent a7d08997f7
commit a5044fe6db
4 changed files with 9 additions and 8 deletions

View File

@@ -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,