When repository services are available, use them when creating a new repository
Summary: Ref T2783. When creating a new repository, test for cluster services. If cluster services are available, allocate on a random open service. Show the service that repositories are allocated on. Test Plan: Created a new repository, saw it allocate onto an available cluster service. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T2783 Differential Revision: https://secure.phabricator.com/D11003
This commit is contained in:
@@ -575,6 +575,21 @@ final class DiffusionRepositoryEditMainController
|
||||
->setUser($viewer)
|
||||
->setActionList($actions);
|
||||
|
||||
$service_phid = $repository->getAlmanacServicePHID();
|
||||
if ($service_phid) {
|
||||
$handles = $this->loadViewerHandles(array($service_phid));
|
||||
$v_service = $handles[$service_phid]->renderLink();
|
||||
} else {
|
||||
$v_service = phutil_tag(
|
||||
'em',
|
||||
array(),
|
||||
pht('Local'));
|
||||
}
|
||||
|
||||
$view->addProperty(
|
||||
pht('Storage Service'),
|
||||
$v_service);
|
||||
|
||||
$view->addProperty(
|
||||
pht('Storage Path'),
|
||||
$repository->getHumanReadableDetail('local-path'));
|
||||
|
||||
Reference in New Issue
Block a user