1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Add an explicit "uri" to the "harbormaster.buildable.search" results

Summary: Ref T13546. This makes some "arc" tasks a little easier, and will make them more correct if "arc" ever switches to using SSH.

Test Plan: Ran "harbormaster.buildable.search" from the web UI, saw URIs in the result set.

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13546

Differential Revision: https://secure.phabricator.com/D21346
This commit is contained in:
epriestley 2020-06-10 10:11:01 -07:00
parent 36075f6ce5
commit 5b1dd96e40

View file

@ -366,6 +366,10 @@ final class HarbormasterBuildable
->setKey('isManual')
->setType('bool')
->setDescription(pht('True if this is a manual buildable.')),
id(new PhabricatorConduitSearchFieldSpecification())
->setKey('uri')
->setType('uri')
->setDescription(pht('View URI for the buildable.')),
);
}
@ -377,6 +381,7 @@ final class HarbormasterBuildable
'value' => $this->getBuildableStatus(),
),
'isManual' => (bool)$this->getIsManualBuildable(),
'uri' => PhabricatorEnv::getURI($this->getURI()),
);
}