Detect when a to-be-renamed page has children, and use page-move

RESOLVED FIXED

Status

RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: jbennett, Assigned: jbennett)

Tracking

Details

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

(Assignee)

Description

6 years ago
Changing a page's slug already is a "page move", implicitly, because it leaves behind a redirect. But we shouldn't be allowing that when the page has children; attempts to change slug in a way that implicitly "moves" the page should instead kick over to the tree-moving interface.
Version: Kuma → unspecified
Component: Docs Platform → Editing
Product: Mozilla Developer Network → Mozilla Developer Network

Comment 1

6 years ago
Commit pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/8e56993948de61835a958b97bfadcee7bb6bd027
Fix bug 785214 -- detect existence of children

Adds a method for detecting whether a document has at least one child
(which will eventually kick over to the tree-move interface). Also
adds a basic method for detecting potential circular trees of
documents, which has uses in this and other parts of page-moving.

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.