mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Nested Folders: Support listing nested folder children (#58566)
* Nested Folders: Support listing nested folder children * Filter out subfolders with no permissions * Apply suggestion from code review
This commit is contained in:
committed by
GitHub
parent
0743c4eb87
commit
b1ef5ab320
@@ -124,10 +124,10 @@ type GetParentsQuery struct {
|
||||
OrgID int64 `xorm:"org_id"`
|
||||
}
|
||||
|
||||
// GetTreeCommand captures the information required by the folder service to
|
||||
// GetChildrenQuery captures the information required by the folder service to
|
||||
// return a list of child folders of the given folder.
|
||||
|
||||
type GetTreeQuery struct {
|
||||
type GetChildrenQuery struct {
|
||||
UID string `xorm:"uid"`
|
||||
OrgID int64 `xorm:"org_id"`
|
||||
Depth int64
|
||||
@@ -135,6 +135,8 @@ type GetTreeQuery struct {
|
||||
// Pagination options
|
||||
Limit int64
|
||||
Page int64
|
||||
|
||||
SignedInUser *user.SignedInUser `json:"-"`
|
||||
}
|
||||
|
||||
// ToLegacyModel is temporary until the two folder services are merged
|
||||
|
||||
Reference in New Issue
Block a user