Chore: Deprecate FolderID from DashboardACLInfoDTO (#77652)

* Chore: Deprecate FolderID from DashboardACLInfoDTO

* chore: regen specs
This commit is contained in:
Kat Yang 2023-11-15 10:29:20 -05:00 committed by GitHub
parent 3a2e96b0db
commit ae326eaed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -45,6 +45,7 @@ func (hs *HTTPServer) GetFolderPermissionList(c *contextmodel.ReqContext) respon
continue
}
// nolint:staticcheck
perm.FolderID = folder.ID
perm.DashboardID = 0

View File

@ -428,10 +428,11 @@ type DashboardACL struct {
func (p DashboardACL) TableName() string { return "dashboard_acl" }
type DashboardACLInfoDTO struct {
OrgID int64 `json:"-" xorm:"org_id"`
DashboardID int64 `json:"dashboardId,omitempty" xorm:"dashboard_id"`
FolderID int64 `json:"folderId,omitempty" xorm:"folder_id"`
FolderUID string `json:"folderUid,omitempty" xorm:"folder_uid"`
OrgID int64 `json:"-" xorm:"org_id"`
DashboardID int64 `json:"dashboardId,omitempty" xorm:"dashboard_id"`
// Deprecated: use FolderUID instead
FolderID int64 `json:"folderId,omitempty" xorm:"folder_id"`
FolderUID string `json:"folderUid,omitempty" xorm:"folder_uid"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`

View File

@ -13111,6 +13111,7 @@
"format": "int64"
},
"folderId": {
"description": "Deprecated: use FolderUID instead",
"type": "integer",
"format": "int64"
},

View File

@ -4184,6 +4184,7 @@
"type": "integer"
},
"folderId": {
"description": "Deprecated: use FolderUID instead",
"format": "int64",
"type": "integer"
},