Skip to content

Commit

Permalink
Merge pull request #7428 from ycombinator/gh-7424
Browse files Browse the repository at this point in the history
Don't turn Kibana plugin red if Kibana index is not yet ready
  • Loading branch information
ycombinator authored Jun 10, 2016
2 parents 60d3374 + 3425818 commit 5cf440c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ export default function setupSettings(kbnServer, server, config) {
}

function userSettingsNotFound(kibanaVersion) {
const message = 'Could not find user-provided settings for this version of Kibana (' + kibanaVersion + ')';
server.plugins.kibana.status.red(message);
if (server.plugins.elasticsearch.status.state === 'green') {
server.plugins.kibana.status.red(`Could not find user-provided settings for this version of Kibana (${kibanaVersion})`);
} else {
server.log(['warning', 'settings'], 'User-provided settings were requested before the Kibana index was ready');
}
return {};
}

Expand Down

0 comments on commit 5cf440c

Please sign in to comment.