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:
Sofia Papagiannaki
2022-12-19 10:52:04 +02:00
committed by GitHub
parent 0743c4eb87
commit b1ef5ab320
15 changed files with 181 additions and 88 deletions

View File

@@ -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