@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+26
+26
src/applications/differential/editor/DifferentialRevisionEditEngine.php
··· 235 235 ->setConduitTypeDescription(pht('List of tasks.')) 236 236 ->setValue(array()); 237 237 238 + $fields[] = id(new PhabricatorHandlesEditField()) 239 + ->setKey('parents') 240 + ->setUseEdgeTransactions(true) 241 + ->setIsFormField(false) 242 + ->setTransactionType(PhabricatorTransactions::TYPE_EDGE) 243 + ->setMetadataValue( 244 + 'edge:type', 245 + DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST) 246 + ->setDescription(pht('Parent revisions of this revision.')) 247 + ->setConduitDescription(pht('Change associated parent revisions.')) 248 + ->setConduitTypeDescription(pht('List of revisions.')) 249 + ->setValue(array()); 250 + 251 + $fields[] = id(new PhabricatorHandlesEditField()) 252 + ->setKey('children') 253 + ->setUseEdgeTransactions(true) 254 + ->setIsFormField(false) 255 + ->setTransactionType(PhabricatorTransactions::TYPE_EDGE) 256 + ->setMetadataValue( 257 + 'edge:type', 258 + DifferentialRevisionDependedOnByRevisionEdgeType::EDGECONST) 259 + ->setDescription(pht('Child revisions of this revision.')) 260 + ->setConduitDescription(pht('Change associated child revisions.')) 261 + ->setConduitTypeDescription(pht('List of revisions.')) 262 + ->setValue(array()); 263 + 238 264 $actions = DifferentialRevisionActionTransaction::loadAllActions(); 239 265 $actions = msortv($actions, 'getRevisionActionOrderVector'); 240 266