mozilla/kuma — pull request #243 by darkwing (2012-06-01 02:57:51+00:00)
Title: Parent doc ui bug 753584

* Do Not Merge*

This changeset allows users to add and edit child documents. The parent document id is passed via the "New sub-page link". The slug INPUT field is restricted to only individual child page's slug, not the parent chain slug, to prevent the user from reparenting their document via the slug. If the document is a child, regardless of being new or an edit, the "long" slug is built in an automated fashion.

* What I've PR'd *
1. I'm not a python expert, so you'll have comments about how I've written the python pieces; I welcome the ideas
2. There may be something in the document flow (i.e. revision flow vs. edit flow, etc) that I'm missing
3. The *big* issue is that while the "parent_topic_id" stays correct through slug changes, if a parent document's *individual slug* (without the hierarchy, i.e. "parent") changes, child documents which include that parent's previous slug value don't change ("parent/child" -> "parent_new_slug/child" doesn't happen for children)

Any ideas, guidance, etc. would be very, very much appreciated.