Page MenuHomePhabricator

D13052.id31491.diff
No OneTemporary

D13052.id31491.diff

diff --git a/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php b/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
--- a/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
+++ b/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
@@ -120,7 +120,7 @@
$completed_panel = new PHUIObjectBoxView();
$completed_panel->setHeaderText(
pht('Recently Completed Tasks (Last 15m)'));
- $completed_panel->appendChild($completed_table);
+ $completed_panel->setTable($completed_table);
$daemon_table = new PhabricatorDaemonLogListView();
$daemon_table->setUser($viewer);
@@ -128,7 +128,7 @@
$daemon_panel = new PHUIObjectBoxView();
$daemon_panel->setHeaderText(pht('Active Daemons'));
- $daemon_panel->appendChild($daemon_table);
+ $daemon_panel->setObjectList($daemon_table);
$tasks = id(new PhabricatorWorkerLeaseQuery())
@@ -143,7 +143,7 @@
$leased_panel = id(new PHUIObjectBoxView())
->setHeaderText(pht('Leased Tasks'))
- ->appendChild($tasks_table);
+ ->setTable($tasks_table);
$task_table = new PhabricatorWorkerActiveTask();
$queued = queryfx_all(
@@ -175,7 +175,7 @@
$queued_panel = new PHUIObjectBoxView();
$queued_panel->setHeaderText(pht('Queued Tasks'));
- $queued_panel->appendChild($queued_table);
+ $queued_panel->setTable($queued_table);
$upcoming = id(new PhabricatorWorkerLeaseQuery())
->setLimit(10)
@@ -184,7 +184,7 @@
$upcoming_panel = id(new PHUIObjectBoxView())
->setHeaderText(pht('Next In Queue'))
- ->appendChild(
+ ->setTable(
id(new PhabricatorDaemonTasksTableView())
->setTasks($upcoming)
->setNoDataString(pht('Task queue is empty.')));
@@ -200,7 +200,7 @@
$triggers_panel = id(new PHUIObjectBoxView())
->setHeaderText(pht('Upcoming Triggers'))
- ->appendChild($triggers_table);
+ ->setTable($triggers_table);
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('Console'));
diff --git a/src/applications/daemon/view/PhabricatorDaemonLogListView.php b/src/applications/daemon/view/PhabricatorDaemonLogListView.php
--- a/src/applications/daemon/view/PhabricatorDaemonLogListView.php
+++ b/src/applications/daemon/view/PhabricatorDaemonLogListView.php
@@ -34,17 +34,17 @@
switch ($status) {
case PhabricatorDaemonLog::STATUS_RUNNING:
if ($env_hash != $log->getEnvHash()) {
- $item->setBarColor('yellow');
+ $item->setStatusIcon('fa-warning yellow');
$item->addAttribute(pht(
'This daemon is running with an out of date configuration and '.
'should be restarted.'));
} else {
- $item->setBarColor('green');
+ $item->setStatusIcon('fa-rocket green');
$item->addAttribute(pht('This daemon is running.'));
}
break;
case PhabricatorDaemonLog::STATUS_DEAD:
- $item->setBarColor('red');
+ $item->setStatusIcon('fa-warning red');
$item->addAttribute(
pht(
'This daemon is lost or exited uncleanly, and is presumed '.
@@ -61,7 +61,7 @@
$item->addIcon('fa-check grey', pht('Exited'));
break;
case PhabricatorDaemonLog::STATUS_WAIT:
- $item->setBarColor('blue');
+ $item->setStatusIcon('fa-clock-o blue');
$item->addAttribute(
pht(
'This daemon encountered an error recently and is waiting a '.
@@ -70,12 +70,12 @@
break;
case PhabricatorDaemonLog::STATUS_UNKNOWN:
default:
- $item->setBarColor('orange');
+ $item->setStatusIcon('fa-warning orange');
$item->addAttribute(
pht(
'This daemon has not reported its status recently. It may '.
'have exited uncleanly.'));
- $item->addIcon('fa-exclamation-circle', pht('Unknown'));
+ $item->addIcon('fa-warning', pht('Unknown'));
break;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 11:12 PM (12 h, 29 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6916465
Default Alt Text
D13052.id31491.diff (4 KB)

Event Timeline