@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.

Provide revision parent/child edges in `edge.search`, and more information in `differential.revision.search`

Summary: See PHI195. This bulks out these API methods since all the requests are pretty straightforward.

Test Plan: Ran `edge.search` and `differential.revision.search`.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D18762

+42
+14
src/applications/differential/edge/DifferentialRevisionDependedOnByRevisionEdgeType.php
··· 13 13 return true; 14 14 } 15 15 16 + public function getConduitKey() { 17 + return 'revision.child'; 18 + } 19 + 20 + public function getConduitName() { 21 + return pht('Revision Has Child'); 22 + } 23 + 24 + public function getConduitDescription() { 25 + return pht( 26 + 'The source revision makes changes required by the destination '. 27 + 'revision.'); 28 + } 29 + 16 30 public function getTransactionAddString( 17 31 $actor, 18 32 $add_count,
+13
src/applications/differential/edge/DifferentialRevisionDependsOnRevisionEdgeType.php
··· 17 17 return true; 18 18 } 19 19 20 + public function getConduitKey() { 21 + return 'revision.parent'; 22 + } 23 + 24 + public function getConduitName() { 25 + return pht('Revision Has Parent'); 26 + } 27 + 28 + public function getConduitDescription() { 29 + return pht( 30 + 'The source revision depends on changes in the destination revision.'); 31 + } 32 + 20 33 public function getTransactionAddString( 21 34 $actor, 22 35 $add_count,
+15
src/applications/differential/storage/DifferentialRevision.php
··· 986 986 ->setKey('status') 987 987 ->setType('map<string, wild>') 988 988 ->setDescription(pht('Information about revision status.')), 989 + id(new PhabricatorConduitSearchFieldSpecification()) 990 + ->setKey('repositoryPHID') 991 + ->setType('phid?') 992 + ->setDescription(pht('Revision repository PHID.')), 993 + id(new PhabricatorConduitSearchFieldSpecification()) 994 + ->setKey('diffPHID') 995 + ->setType('phid') 996 + ->setDescription(pht('Active diff PHID.')), 997 + id(new PhabricatorConduitSearchFieldSpecification()) 998 + ->setKey('summary') 999 + ->setType('string') 1000 + ->setDescription(pht('Revision summary.')), 989 1001 ); 990 1002 } 991 1003 ··· 1002 1014 'title' => $this->getTitle(), 1003 1015 'authorPHID' => $this->getAuthorPHID(), 1004 1016 'status' => $status_info, 1017 + 'repositoryPHID' => $this->getRepositoryPHID(), 1018 + 'diffPHID' => $this->getActiveDiffPHID(), 1019 + 'summary' => $this->getSummary(), 1005 1020 ); 1006 1021 } 1007 1022