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
+1 -1
View File
@@ -112,7 +112,7 @@ func (hs *HTTPServer) GetAlerts(c *contextmodel.ReqContext) response.Response {
OrgId: c.SignedInUser.GetOrgID(),
DashboardIds: dashboardIDs,
Type: string(model.DashHitDB),
FolderIds: folderIDs,
FolderIds: folderIDs, // nolint:staticcheck
Permission: dashboards.PERMISSION_VIEW,
}
+1 -1
View File
@@ -444,7 +444,7 @@ func (hs *HTTPServer) searchFolders(c *contextmodel.ReqContext) ([]*folder.Folde
searchQuery := search.Query{
SignedInUser: c.SignedInUser,
DashboardIds: make([]int64, 0),
FolderIds: make([]int64, 0),
FolderIds: make([]int64, 0), // nolint:staticcheck
Limit: c.QueryInt64("limit"),
OrgId: c.SignedInUser.GetOrgID(),
Type: "dash-folder",
+1 -1
View File
@@ -80,7 +80,7 @@ func (hs *HTTPServer) Search(c *contextmodel.ReqContext) response.Response {
DashboardIds: dbIDs,
DashboardUIDs: dbUIDs,
Type: dashboardType,
FolderIds: folderIDs,
FolderIds: folderIDs, // nolint:staticcheck
FolderUIDs: folderUIDs,
Permission: permission,
Sort: sort,