Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F77317
D7459.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D7459.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7459: Remove "daemons not running" code from Repositories
Attached
Detach File
Event Timeline
Log In to Comment