Page MenuHomePhabricator

D7459.id.diff
No OneTemporary

D7459.id.diff

Index: src/applications/repository/controller/PhabricatorRepositoryController.php
===================================================================
--- src/applications/repository/controller/PhabricatorRepositoryController.php
+++ 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;
- }
-
}
Index: src/applications/repository/controller/PhabricatorRepositoryListController.php
===================================================================
--- src/applications/repository/controller/PhabricatorRepositoryListController.php
+++ src/applications/repository/controller/PhabricatorRepositoryListController.php
@@ -143,7 +143,6 @@
return $this->buildStandardPageResponse(
array(
- $this->renderDaemonNotice(),
$panel,
$project_panel,
),

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 22, 8:14 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6717800
Default Alt Text
D7459.id.diff (2 KB)

Event Timeline