Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14382490
D7459.id16810.diff
No One
Temporary
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.id16810.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 6:14 AM (18 h, 21 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6917126
Default Alt Text
D7459.id16810.diff (2 KB)
Attached To
Mode
D7459: Remove "daemons not running" code from Repositories
Attached
Detach File
Event Timeline
Log In to Comment