Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[errors/multi.allow_explicit_index] move error handling to browser #14184

Merged

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Sep 26, 2017

A part of #14163, this removes the portion of the healthCheck that tries to verify that rest.action.multi.allow_explicit_index is not set to false. Instead, a ui module was created that will check errors from elasticsearch for this specific scenario, and exposes a method that will display a nicer "fatal error" screen that informs the user about what they should do, and navigates away from the now broken app.

Please, suggest as many edits as you like to the error page text. I'm horrible at this stuff.

image

To test this out run:

curl https://gist.githubusercontent.com/anonymous/fb658b98695aeea2ef00f731f4427099/raw/c5f11d1bbe5ece28a3c173b83b8bda39e301f8a7/gistfile.diff | git apply

npm run elasticsearch

A part of elastic#14163, this removes the portion of the healthCheck that tries to verify that rest.action.multi.allow_explicit_index is not set to false. Instead, a ui module was created that will check errors from elasticsearch for this specific scenario, and exposes a method that will display a nicer "fatal error" screen that informs the user about what they should do, and navigates away from the now broken app.
@spalger spalger added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc review v6.1.0 v7.0.0 labels Sep 26, 2017
@spalger spalger mentioned this pull request Sep 26, 2017
5 tasks
@epixa
Copy link
Contributor

epixa commented Oct 2, 2017

This is my favorite error message in all of Kibana. Seriously. We should update all gracefully handled errors (e.g. xpack auth issues for monitoring/security/reporting) with a page like this.

It's slightly playful but not over the top. It explains what the problem is, why it's a problem for Kibana, and how to remedy it.

cc @elastic/kibana-monitoring @elastic/kibana-sharing

spalger added a commit to spalger/kibana that referenced this pull request Oct 3, 2017
Copy link
Contributor

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

<h3>Ok, how do I fix this?</h3>
<ol>
<li>Remove <code>rest.action.multi.allow_explicit_index: false</code> from your Elasticsearch config file.</li>
<li>Restart elasticsearch.</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

elasticsearch -> Elasticsearch

@spalger spalger merged commit 2b7808b into elastic:master Oct 4, 2017
spalger added a commit that referenced this pull request Oct 4, 2017
…14184)

* [errors/multi.allow_explicit_index] move error handling to browser

A part of #14163, this removes the portion of the healthCheck that tries to verify that rest.action.multi.allow_explicit_index is not set to false. Instead, a ui module was created that will check errors from elasticsearch for this specific scenario, and exposes a method that will display a nicer "fatal error" screen that informs the user about what they should do, and navigates away from the now broken app.

* [es/healthCheck] remove old test

* fix typo

(cherry picked from commit 2b7808b)
@spalger
Copy link
Contributor Author

spalger commented Oct 4, 2017

6.x/6.1: 375d5b6

@spalger spalger deleted the refactor/move-allow-explicit-index-handler branch October 4, 2017 16:53
chrisronline pushed a commit to chrisronline/kibana that referenced this pull request Nov 20, 2017
…lastic#14184)

* [errors/multi.allow_explicit_index] move error handling to browser

A part of elastic#14163, this removes the portion of the healthCheck that tries to verify that rest.action.multi.allow_explicit_index is not set to false. Instead, a ui module was created that will check errors from elasticsearch for this specific scenario, and exposes a method that will display a nicer "fatal error" screen that informs the user about what they should do, and navigates away from the now broken app.

* [es/healthCheck] remove old test

* fix typo
chrisronline pushed a commit to chrisronline/kibana that referenced this pull request Dec 1, 2017
…lastic#14184)

* [errors/multi.allow_explicit_index] move error handling to browser

A part of elastic#14163, this removes the portion of the healthCheck that tries to verify that rest.action.multi.allow_explicit_index is not set to false. Instead, a ui module was created that will check errors from elasticsearch for this specific scenario, and exposes a method that will display a nicer "fatal error" screen that informs the user about what they should do, and navigates away from the now broken app.

* [es/healthCheck] remove old test

* fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v6.1.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants