Chore: Deprecate FolderIDs only used by Swagger (#78219)

pull/77450/head
Kat Yang 2 years ago committed by GitHub
parent 48b6e894ca
commit 2d09bac2b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/api/alerting.go
  2. 2
      pkg/api/folder.go
  3. 2
      pkg/api/search.go
  4. 17
      pkg/services/plugindashboards/plugindashboards.go

@ -921,6 +921,8 @@ type GetAlertsParams struct {
// required:false
// type array
// collectionFormat: multi
//
// Deprecated: use FolderUID instead
FolderID []string `json:"folderId"`
// Limit response to alerts having a dashboard name like this value./ Limit response to alerts having a dashboard name like this value.
// in:query

@ -514,6 +514,8 @@ type UpdateFolderParams struct {
type GetFolderByIDParams struct {
// in:path
// required:true
//
// Deprecated: use FolderUID instead
FolderID int64 `json:"folder_id"`
}

@ -157,6 +157,8 @@ type SearchParams struct {
// in:query
// required: false
// deprecated: true
//
// Deprecated: use FolderUIDs instead
FolderIds []int64 `json:"folderIds"`
// List of folder UID’s to search in for dashboards
// If it's an empty string then it will query for the top level folders

@ -8,14 +8,15 @@ import (
// PluginDashboard plugin dashboard model..
type PluginDashboard struct {
UID string `json:"uid"`
PluginId string `json:"pluginId"`
Title string `json:"title"`
Imported bool `json:"imported"`
ImportedUri string `json:"importedUri"`
ImportedUrl string `json:"importedUrl"`
Slug string `json:"slug"`
DashboardId int64 `json:"dashboardId"`
UID string `json:"uid"`
PluginId string `json:"pluginId"`
Title string `json:"title"`
Imported bool `json:"imported"`
ImportedUri string `json:"importedUri"`
ImportedUrl string `json:"importedUrl"`
Slug string `json:"slug"`
DashboardId int64 `json:"dashboardId"`
// Deprecated: use FolderUID instead
FolderId int64 `json:"folderId"`
ImportedRevision int64 `json:"importedRevision"`
Revision int64 `json:"revision"`

Loading…
Cancel
Save