@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove "daemons not running" code from Repositories

Summary: This moved into Diffusion in D7458 and is now presented in a much cleaner, more targeted way.

Test Plan: Loaded `/repository/`.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D7459

-43
-42
src/applications/repository/controller/PhabricatorRepositoryController.php
··· 21 21 return $response->setContent($page->render()); 22 22 } 23 23 24 - private function isPullDaemonRunning() { 25 - $daemons = id(new PhabricatorDaemonLogQuery()) 26 - ->setViewer(PhabricatorUser::getOmnipotentUser()) 27 - ->withStatus(PhabricatorDaemonLogQuery::STATUS_ALIVE) 28 - ->withDaemonClasses(array('PhabricatorRepositoryPullLocalDaemon')) 29 - ->setLimit(1) 30 - ->execute(); 31 - 32 - return (bool)$daemons; 33 - } 34 - 35 - protected function renderDaemonNotice() { 36 - $documentation = phutil_tag( 37 - 'a', 38 - array( 39 - 'href' => PhabricatorEnv::getDoclink( 40 - 'article/Diffusion_User_Guide.html'), 41 - ), 42 - 'Diffusion User Guide'); 43 - 44 - $common = hsprintf( 45 - "Without this daemon, Phabricator will not be able to import or update ". 46 - "repositories. For instructions on starting the daemon, see %s.", 47 - phutil_tag('strong', array(), $documentation)); 48 - 49 - $daemon_running = $this->isPullDaemonRunning(); 50 - if ($daemon_running) { 51 - return null; 52 - } 53 - $title = "Repository Daemon Not Running"; 54 - $message = hsprintf( 55 - "<p>The repository daemon is not running. %s</p>", 56 - $common); 57 - 58 - $view = new AphrontErrorView(); 59 - $view->setSeverity(AphrontErrorView::SEVERITY_WARNING); 60 - $view->setTitle($title); 61 - $view->appendChild($message); 62 - 63 - return $view; 64 - } 65 - 66 24 }
-1
src/applications/repository/controller/PhabricatorRepositoryListController.php
··· 143 143 144 144 return $this->buildStandardPageResponse( 145 145 array( 146 - $this->renderDaemonNotice(), 147 146 $panel, 148 147 $project_panel, 149 148 ),