When creating a repository in Diffusion, prompt for "Create" or "Import" first
Summary: Ref T2230. This will need some more refinement, but basically it adds a "Create" vs "Import" step before we go through the paged workflow. - If you choose "Create", we skip the remote URI / auth stuff, and then set the "hosted" flag. - If you choose "Import", we do what we do now. Test Plan: Created and imported repos. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2230 Differential Revision: https://secure.phabricator.com/D7475
This commit is contained in:
@@ -52,9 +52,12 @@ final class DiffusionRepositoryEditMainController
|
||||
$policy_properties =
|
||||
$this->buildPolicyProperties($repository, $policy_actions);
|
||||
|
||||
$remote_properties = $this->buildRemoteProperties(
|
||||
$repository,
|
||||
$this->buildRemoteActions($repository));
|
||||
$remote_properties = null;
|
||||
if (!$repository->isHosted()) {
|
||||
$remote_properties = $this->buildRemoteProperties(
|
||||
$repository,
|
||||
$this->buildRemoteActions($repository));
|
||||
}
|
||||
|
||||
$encoding_actions = $this->buildEncodingActions($repository);
|
||||
$encoding_properties =
|
||||
@@ -115,8 +118,11 @@ final class DiffusionRepositoryEditMainController
|
||||
->setHeader($header)
|
||||
->addPropertyList($basic_properties)
|
||||
->addPropertyList($policy_properties)
|
||||
->addPropertyList($hosting_properties)
|
||||
->addPropertyList($remote_properties);
|
||||
->addPropertyList($hosting_properties);
|
||||
|
||||
if ($remote_properties) {
|
||||
$obj_box->addPropertyList($remote_properties);
|
||||
}
|
||||
|
||||
if ($local_properties) {
|
||||
$obj_box->addPropertyList($local_properties);
|
||||
|
||||
Reference in New Issue
Block a user