Chore: Deprecate ID from Folder (#78281)

* Chore: Deprecate ID from Folder

* chore: add more linter comments

* chore: add missing lint comment
This commit is contained in:
Kat Yang
2023-11-20 15:44:51 -05:00
committed by GitHub
parent ae164df698
commit 2f2ce3edbb
34 changed files with 128 additions and 20 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ func (hs *HTTPServer) GetFolders(c *contextmodel.ReqContext) response.Response {
result := make([]dtos.FolderSearchHit, 0)
for _, f := range folders {
result = append(result, dtos.FolderSearchHit{
Id: f.ID,
Id: f.ID, // nolint:staticcheck
Uid: f.UID,
Title: f.Title,
ParentUID: f.ParentUID,
@@ -462,7 +462,7 @@ func (hs *HTTPServer) searchFolders(c *contextmodel.ReqContext) ([]*folder.Folde
for _, hit := range hits {
folders = append(folders, &folder.Folder{
ID: hit.ID,
ID: hit.ID, // nolint:staticcheck
UID: hit.UID,
Title: hit.Title,
})