mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Deprecate FolderID from DashboardACLInfoDTO (#77652)
* Chore: Deprecate FolderID from DashboardACLInfoDTO * chore: regen specs
This commit is contained in:
@@ -45,6 +45,7 @@ func (hs *HTTPServer) GetFolderPermissionList(c *contextmodel.ReqContext) respon
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// nolint:staticcheck
|
||||||
perm.FolderID = folder.ID
|
perm.FolderID = folder.ID
|
||||||
perm.DashboardID = 0
|
perm.DashboardID = 0
|
||||||
|
|
||||||
|
|||||||
@@ -428,10 +428,11 @@ type DashboardACL struct {
|
|||||||
func (p DashboardACL) TableName() string { return "dashboard_acl" }
|
func (p DashboardACL) TableName() string { return "dashboard_acl" }
|
||||||
|
|
||||||
type DashboardACLInfoDTO struct {
|
type DashboardACLInfoDTO struct {
|
||||||
OrgID int64 `json:"-" xorm:"org_id"`
|
OrgID int64 `json:"-" xorm:"org_id"`
|
||||||
DashboardID int64 `json:"dashboardId,omitempty" xorm:"dashboard_id"`
|
DashboardID int64 `json:"dashboardId,omitempty" xorm:"dashboard_id"`
|
||||||
FolderID int64 `json:"folderId,omitempty" xorm:"folder_id"`
|
// Deprecated: use FolderUID instead
|
||||||
FolderUID string `json:"folderUid,omitempty" xorm:"folder_uid"`
|
FolderID int64 `json:"folderId,omitempty" xorm:"folder_id"`
|
||||||
|
FolderUID string `json:"folderUid,omitempty" xorm:"folder_uid"`
|
||||||
|
|
||||||
Created time.Time `json:"created"`
|
Created time.Time `json:"created"`
|
||||||
Updated time.Time `json:"updated"`
|
Updated time.Time `json:"updated"`
|
||||||
|
|||||||
@@ -13111,6 +13111,7 @@
|
|||||||
"format": "int64"
|
"format": "int64"
|
||||||
},
|
},
|
||||||
"folderId": {
|
"folderId": {
|
||||||
|
"description": "Deprecated: use FolderUID instead",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int64"
|
"format": "int64"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4184,6 +4184,7 @@
|
|||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"folderId": {
|
"folderId": {
|
||||||
|
"description": "Deprecated: use FolderUID instead",
|
||||||
"format": "int64",
|
"format": "int64",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user