Skip to content

Commit

Permalink
Toggle Kibana to yellow instead of red
Browse files Browse the repository at this point in the history
Yellow is good in situations where the user doesn't need to take remedial actions to turn a plugin green. Red is good in situations where the user needs to do something to turn the plugin green.
  • Loading branch information
ycombinator committed Jun 14, 2016
1 parent 9c302e2 commit a81d759
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ export default function setupSettings(kbnServer, server, config) {
}

function userSettingsNotFound(kibanaVersion) {
server.plugins.kibana.status.red(`Could not find user-provided settings for this version of Kibana (${kibanaVersion})`);
server.plugins.kibana.status.yellow(`Could not find user-provided settings for this version of Kibana (${kibanaVersion})`);
return {};
}

function resetKibanaPluginStatusIfNecessary(user) {
const isElasticsearchPluginGreen = server.plugins.elasticsearch.status.state === 'green';
const isKibanaPluginCurrentlyRed = server.plugins.kibana.status.state === 'red';
if (isElasticsearchPluginGreen && isKibanaPluginCurrentlyRed) {
const isKibanaPluginCurrentlyYellow = server.plugins.kibana.status.state === 'yellow';
if (isElasticsearchPluginGreen && isKibanaPluginCurrentlyYellow) {
server.plugins.kibana.status.green('Ready');
}
return user;
Expand Down

0 comments on commit a81d759

Please sign in to comment.