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

Expose Build Plan behaviors via "harbormaster.buildplan.search"

Summary: Ref T13258. This will support changing behaviors in "arc land".

Test Plan: Called "harbormaster.buildplan.search", saw behavior information in results.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13258

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

+16
+16
src/applications/harbormaster/storage/configuration/HarbormasterBuildPlan.php
··· 233 233 ->setKey('status') 234 234 ->setType('map<string, wild>') 235 235 ->setDescription(pht('The current status of this build plan.')), 236 + id(new PhabricatorConduitSearchFieldSpecification()) 237 + ->setKey('behaviors') 238 + ->setType('map<string, string>') 239 + ->setDescription(pht('Behavior configuration for the build plan.')), 236 240 ); 237 241 } 238 242 239 243 public function getFieldValuesForConduit() { 244 + $behavior_map = array(); 245 + 246 + $behaviors = HarbormasterBuildPlanBehavior::newPlanBehaviors(); 247 + foreach ($behaviors as $behavior) { 248 + $option = $behavior->getPlanOption($this); 249 + 250 + $behavior_map[$behavior->getKey()] = array( 251 + 'value' => $option->getKey(), 252 + ); 253 + } 254 + 240 255 return array( 241 256 'name' => $this->getName(), 242 257 'status' => array( 243 258 'value' => $this->getPlanStatus(), 244 259 ), 260 + 'behaviors' => $behavior_map, 245 261 ); 246 262 } 247 263