mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NestedFolders: Return full folder hierarchy in Folder response (#66835)
* Delete redundant struct * Include parent folders in DTO * Add test * Update swagger
This commit is contained in:
committed by
GitHub
parent
5c2a344ce1
commit
7dbcd5ecd0
@@ -48,12 +48,6 @@ func (f *Folder) IsGeneral() bool {
|
||||
return f.ID == GeneralFolder.ID && f.Title == GeneralFolder.Title
|
||||
}
|
||||
|
||||
type FolderDTO struct {
|
||||
Folder
|
||||
|
||||
Children []FolderDTO
|
||||
}
|
||||
|
||||
// NewFolder tales a title and returns a Folder with the Created and Updated
|
||||
// fields set to the current time.
|
||||
func NewFolder(title string, description string) *Folder {
|
||||
|
||||
Reference in New Issue
Block a user