Closed Bug 785212 Opened 12 years ago Closed 12 years ago

Method for getting all children of a page

Categories

(developer.mozilla.org Graveyard :: Editing, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jbennett, Assigned: jbennett)

References

Details

(Whiteboard: s=2012-09-05 p=2)

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.
Assignee: nobody → jbennett
Depends on: 785214
Blocks: 785216
Version: Kuma → unspecified
Component: Docs Platform → Editing
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: 12 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.