Page MenuHomePhorge

D25070.1737346238.diff
No OneTemporary

D25070.1737346238.diff

diff --git a/src/applications/config/controller/services/PhabricatorConfigClusterSearchController.php b/src/applications/config/controller/services/PhabricatorConfigClusterSearchController.php
--- a/src/applications/config/controller/services/PhabricatorConfigClusterSearchController.php
+++ b/src/applications/config/controller/services/PhabricatorConfigClusterSearchController.php
@@ -60,8 +60,20 @@
foreach ($service->getHosts() as $host) {
try {
+ // Default status icon
+ //
+ // At the moment the default status is shown also when
+ // you just use MySQL as search server. So, on MySQL it
+ // shows "Unknown" even if probably it should says "Active".
+ // If you have time, please improve the MySQL getConnectionStatus()
+ // to return something more useful than this default.
+ $default_status = array(
+ 'icon' => 'fa-question-circle',
+ 'color' => 'blue',
+ 'label' => pht('Unknown'),
+ );
$status = $host->getConnectionStatus();
- $status = idx($status_map, $status, array());
+ $status = idx($status_map, $status, $default_status);
} catch (Exception $ex) {
$status['icon'] = 'fa-times';
$status['label'] = pht('Connection Error');

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 04:10 (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108668
Default Alt Text
D25070.1737346238.diff (1 KB)

Event Timeline