Fix capitalising Folder structs (#79207)

* Fix capitalising Folder structs

* Add swagger and fix api dashboard test

* Add swagger files with bingo installed
This commit is contained in:
idafurjes
2023-12-07 13:15:58 +01:00
committed by GitHub
parent 9e71dc801d
commit 550746be71
6 changed files with 23 additions and 23 deletions
+6 -6
View File
@@ -63,8 +63,8 @@ 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, // nolint:staticcheck
Uid: f.UID,
ID: f.ID, // nolint:staticcheck
UID: f.UID,
Title: f.Title,
ParentUID: f.ParentUID,
})
@@ -360,17 +360,17 @@ func (hs *HTTPServer) newToFolderDto(c *contextmodel.ReqContext, f *folder.Folde
canView, _ := g.CanView()
if !canView {
return dtos.Folder{
Uid: REDACTED,
UID: REDACTED,
Title: REDACTED,
}, nil
}
}
return dtos.Folder{
Id: f.ID, // nolint:staticcheck
Uid: f.UID,
ID: f.ID, // nolint:staticcheck
UID: f.UID,
Title: f.Title,
Url: f.URL,
URL: f.URL,
HasACL: f.HasACL,
CanSave: canSave,
CanEdit: canEdit,