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

This commit is contained in:
Kat Yang
2023-11-16 09:57:04 -05:00
committed by GitHub
parent 48b6e894ca
commit 2d09bac2b8
4 changed files with 15 additions and 8 deletions

View File

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

View File

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

View File

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

View File

@@ -16,6 +16,7 @@ type PluginDashboard struct {
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"`