Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2905394
D25070.1737345138.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25070.1737345138.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 03:52 (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108668
Default Alt Text
D25070.1737345138.diff (1 KB)
Attached To
Mode
D25070: Fix "Undefined index: icon" when visiting Search Servers using MySQL
Attached
Detach File
Event Timeline
Log In to Comment