mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
Allow parent and child revisions to be modified via Conduit
Summary: See PHI1048. We have similar transactions elsewhere already (particularly, on tasks) and these edges don't have any special properties (like "Closes Txx As Wontfix" edges do) so this doesn't create any sort of peril. Test Plan: {F6170556} Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D20075
This commit is contained in:
parent
b33333ab8e
commit
bc61d09f55
1 changed files with 26 additions and 0 deletions
|
@ -235,6 +235,32 @@ final class DifferentialRevisionEditEngine
|
|||
->setConduitTypeDescription(pht('List of tasks.'))
|
||||
->setValue(array());
|
||||
|
||||
$fields[] = id(new PhabricatorHandlesEditField())
|
||||
->setKey('parents')
|
||||
->setUseEdgeTransactions(true)
|
||||
->setIsFormField(false)
|
||||
->setTransactionType(PhabricatorTransactions::TYPE_EDGE)
|
||||
->setMetadataValue(
|
||||
'edge:type',
|
||||
DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST)
|
||||
->setDescription(pht('Parent revisions of this revision.'))
|
||||
->setConduitDescription(pht('Change associated parent revisions.'))
|
||||
->setConduitTypeDescription(pht('List of revisions.'))
|
||||
->setValue(array());
|
||||
|
||||
$fields[] = id(new PhabricatorHandlesEditField())
|
||||
->setKey('children')
|
||||
->setUseEdgeTransactions(true)
|
||||
->setIsFormField(false)
|
||||
->setTransactionType(PhabricatorTransactions::TYPE_EDGE)
|
||||
->setMetadataValue(
|
||||
'edge:type',
|
||||
DifferentialRevisionDependedOnByRevisionEdgeType::EDGECONST)
|
||||
->setDescription(pht('Child revisions of this revision.'))
|
||||
->setConduitDescription(pht('Change associated child revisions.'))
|
||||
->setConduitTypeDescription(pht('List of revisions.'))
|
||||
->setValue(array());
|
||||
|
||||
$actions = DifferentialRevisionActionTransaction::loadAllActions();
|
||||
$actions = msortv($actions, 'getRevisionActionOrderVector');
|
||||
|
||||
|
|
Loading…
Reference in a new issue