@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 status information via API all "differential.revision.search"

Summary: Ref T2543. Now that the integer status constants are banished to the internals, we can expose status information from "differential.revision.search".

Test Plan:
Searched for revisions.

{F5093873}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T2543

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

+17
+4
src/applications/differential/constants/DifferentialRevisionStatus.php
··· 32 32 return idx($this->spec, 'color.tag', 'bluegrey'); 33 33 } 34 34 35 + public function getANSIColor() { 36 + return idx($this->spec, 'color.ansi'); 37 + } 38 + 35 39 public function getDisplayName() { 36 40 return idx($this->spec, 'name'); 37 41 }
+13
src/applications/differential/storage/DifferentialRevision.php
··· 897 897 ->setKey('authorPHID') 898 898 ->setType('phid') 899 899 ->setDescription(pht('Revision author PHID.')), 900 + id(new PhabricatorConduitSearchFieldSpecification()) 901 + ->setKey('status') 902 + ->setType('map<string, wild>') 903 + ->setDescription(pht('Information about revision status.')), 900 904 ); 901 905 } 902 906 903 907 public function getFieldValuesForConduit() { 908 + $status = $this->getStatusObject(); 909 + $status_info = array( 910 + 'value' => $status->getKey(), 911 + 'name' => $status->getDisplayName(), 912 + 'closed' => $status->isClosedStatus(), 913 + 'color.ansi' => $status->getANSIColor(), 914 + ); 915 + 904 916 return array( 905 917 'title' => $this->getTitle(), 906 918 'authorPHID' => $this->getAuthorPHID(), 919 + 'status' => $status_info, 907 920 ); 908 921 } 909 922