-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add depth limiter optional parameter when loading nested trees …
…using TreeRepository's findTrees() and findDescendantsTree() (#7926) Modified TreeRepository's findTrees() and findDescendantsTree() public methods to now accept an optional object with config options. For now, said object contains a depth parameter that, if set, will limit how far down the tree those methods will crawl and retrieve nested entities. BREAKING CHANGE: TreeRepository's protected method buildChildrenEntityTree() now requires a 4th argument. Anyone affected by this break should also review and update their implementation, otherwise this feature will not work. Closes: #3909
- Loading branch information
Showing
7 changed files
with
1,212 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Special options passed to TreeRepository#findTrees | ||
*/ | ||
export interface FindTreesOptions { | ||
|
||
/** | ||
* When loading a tree from a TreeRepository, limits the depth of the descendents loaded | ||
*/ | ||
depth?: number; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.