Page MenuHomePhabricator

Extend move_project.php to allow moving child projects
Closed, DeclinedPublicFeature

Description

Feature Request

I need to move a child project - not a top-level project - to be the child of another project. Is it terribly difficult to adapt the move_beneath.php script to allow this?

Is there anyone with some knowledge about the Phabricator code to volunteer to do that?

Problem

Currently the script aborts here:

if ($child->getParentProjectPHID()) {
  throw new PhutilArgumentUsageException(
	pht(
	  'The selected child project is already a child of another project. '.
	  'This script can only move root-level projects beneath other projects, '.
	  'not move children within a hierarchy.'));
}

Example

I would like to move the Project A_1 below Project B.

Before

Project A
- Project A_1
- Project A_2
Project B
- Project B_1
- Project B_2
- Project B_3

After

Project A
- Project A_2
Project B
- Project A_1
- Project B_1
- Project B_2
- Project B_3

Event Timeline

Aklapper renamed this task from Feature Request: Extend move_project.php to allow moving child projects to Extend move_project.php to allow moving child projects.May 20 2020, 11:44 AM
Aklapper changed the subtype of this task from "Task" to "Feature Request".
Aklapper removed subscribers: mmodell, MGChecker, Dzahn, Peachey88.