Page MenuHomePhabricator

D20228.diff
No OneTemporary

D20228.diff

diff --git a/src/applications/harbormaster/storage/configuration/HarbormasterBuildPlan.php b/src/applications/harbormaster/storage/configuration/HarbormasterBuildPlan.php
--- a/src/applications/harbormaster/storage/configuration/HarbormasterBuildPlan.php
+++ b/src/applications/harbormaster/storage/configuration/HarbormasterBuildPlan.php
@@ -233,15 +233,31 @@
->setKey('status')
->setType('map<string, wild>')
->setDescription(pht('The current status of this build plan.')),
+ id(new PhabricatorConduitSearchFieldSpecification())
+ ->setKey('behaviors')
+ ->setType('map<string, string>')
+ ->setDescription(pht('Behavior configuration for the build plan.')),
);
}
public function getFieldValuesForConduit() {
+ $behavior_map = array();
+
+ $behaviors = HarbormasterBuildPlanBehavior::newPlanBehaviors();
+ foreach ($behaviors as $behavior) {
+ $option = $behavior->getPlanOption($this);
+
+ $behavior_map[$behavior->getKey()] = array(
+ 'value' => $option->getKey(),
+ );
+ }
+
return array(
'name' => $this->getName(),
'status' => array(
'value' => $this->getPlanStatus(),
),
+ 'behaviors' => $behavior_map,
);
}

File Metadata

Mime Type
text/plain
Expires
May 9 2024, 8:17 PM (5 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6275495
Default Alt Text
D20228.diff (1 KB)

Event Timeline