1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

Added a 'name' field to the results for harbormaster.build.search endpoint

Summary: Fixes T11642. Added a 'name' field to the results from harbormaster.build.search.

Test Plan: Went to `/conduit/method/harbormaster.build.search/` and ran a search that would yield results (because otherwise there will be nothing there). Noted that there was, in fact, a name in the results.

Reviewers: yelirekim, #blessed_reviewers, epriestley

Reviewed By: yelirekim, #blessed_reviewers, epriestley

Subscribers: epriestley, yelirekim

Maniphest Tasks: T11642

Differential Revision: https://secure.phabricator.com/D16569
This commit is contained in:
Josh Cox 2016-09-15 20:03:18 -04:00
parent 1afd8cbe0e
commit dda06c6bdc

View file

@ -420,6 +420,10 @@ final class HarbormasterBuild extends HarbormasterDAO
->setKey('initiatorPHID') ->setKey('initiatorPHID')
->setType('phid') ->setType('phid')
->setDescription(pht('The person (or thing) that started this build.')), ->setDescription(pht('The person (or thing) that started this build.')),
id(new PhabricatorConduitSearchFieldSpecification())
->setKey('name')
->setType('string')
->setDescription(pht('The name of this build.')),
); );
} }
@ -433,6 +437,7 @@ final class HarbormasterBuild extends HarbormasterDAO
'name' => HarbormasterBuildStatus::getBuildStatusName($status), 'name' => HarbormasterBuildStatus::getBuildStatusName($status),
), ),
'initiatorPHID' => nonempty($this->getInitiatorPHID(), null), 'initiatorPHID' => nonempty($this->getInitiatorPHID(), null),
'name' => $this->getName(),
); );
} }