Closed Bug 785212 Opened 7 years ago Closed 7 years ago
Method for getting all children of a page
We have the reverse of this already for breadcrumbs -- we can get a list of parents through the "parent_topic" field. We need to do it the other direction, too, so we can get a list of children for moving trees of pages.
Commit pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/01c6a887723233708f2b4d15ccf60b627b150dff Fix bug 785212: Method for getting all children of a page This is a somewhat naive recursive implementation that descends through children, grandchildren, etc. to build a list of all children. It is naive in the sense that A) it does not attempt to minimize the number of DB queries involved in building the tree, and B) currently has no way at all of detecting a circular dependency.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.