Page MenuHomePhabricator

D7459.diff

diff --git a/src/applications/repository/controller/PhabricatorRepositoryController.php b/src/applications/repository/controller/PhabricatorRepositoryController.php
--- a/src/applications/repository/controller/PhabricatorRepositoryController.php
+++ b/src/applications/repository/controller/PhabricatorRepositoryController.php
@@ -21,46 +21,4 @@
return $response->setContent($page->render());
}
- private function isPullDaemonRunning() {
- $daemons = id(new PhabricatorDaemonLogQuery())
- ->setViewer(PhabricatorUser::getOmnipotentUser())
- ->withStatus(PhabricatorDaemonLogQuery::STATUS_ALIVE)
- ->withDaemonClasses(array('PhabricatorRepositoryPullLocalDaemon'))
- ->setLimit(1)
- ->execute();
-
- return (bool)$daemons;
- }
-
- protected function renderDaemonNotice() {
- $documentation = phutil_tag(
- 'a',
- array(
- 'href' => PhabricatorEnv::getDoclink(
- 'article/Diffusion_User_Guide.html'),
- ),
- 'Diffusion User Guide');
-
- $common = hsprintf(
- "Without this daemon, Phabricator will not be able to import or update ".
- "repositories. For instructions on starting the daemon, see %s.",
- phutil_tag('strong', array(), $documentation));
-
- $daemon_running = $this->isPullDaemonRunning();
- if ($daemon_running) {
- return null;
- }
- $title = "Repository Daemon Not Running";
- $message = hsprintf(
- "<p>The repository daemon is not running. %s</p>",
- $common);
-
- $view = new AphrontErrorView();
- $view->setSeverity(AphrontErrorView::SEVERITY_WARNING);
- $view->setTitle($title);
- $view->appendChild($message);
-
- return $view;
- }
-
}
diff --git a/src/applications/repository/controller/PhabricatorRepositoryListController.php b/src/applications/repository/controller/PhabricatorRepositoryListController.php
--- a/src/applications/repository/controller/PhabricatorRepositoryListController.php
+++ b/src/applications/repository/controller/PhabricatorRepositoryListController.php
@@ -143,7 +143,6 @@
return $this->buildStandardPageResponse(
array(
- $this->renderDaemonNotice(),
$panel,
$project_panel,
),

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/xr/pt/h6tyc63q7iyufc7h
Default Alt Text
D7459.diff (2 KB)

Event Timeline