Skip to content

[5.x] Avoid printing notify object in lang selector on error#8960

Merged
Bargs merged 1 commit into5.xfrom
jasper/backport/8639/5.x
Nov 3, 2016
Merged

[5.x] Avoid printing notify object in lang selector on error#8960
Bargs merged 1 commit into5.xfrom
jasper/backport/8639/5.x

Conversation

@elastic-jasper
Copy link
Contributor

Avoid printing notify object in lang selector on error

Backports PR #8639

Commit 1:
Avoid printing notify object in lang selector on error

When ES is unavailable and we can't get the list of enabled scripting
langs we display a notification to the user. We were also accidentally
returning that notification object from the service method and
displaying its toString representation in the language select drop down.
Now we simplay return an empty array so the dropdown is rendered without
options.

Fixes #8636

Backports PR #8639

**Commit 1:**
Avoid printing notify object in lang selector on error

When ES is unavailable and we can't get the list of enabled scripting
langs we display a notification to the user. We were also accidentally
returning that notification object from the service method and
displaying its toString representation in the language select drop down.
Now we simplay return an empty array so the dropdown is rendered without
options.

Fixes #8636

* Original sha: 051c554
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-12T15:25:15Z
@elastic-jasper elastic-jasper added the backport This PR is a backport of another PR label Nov 3, 2016
@Bargs Bargs merged commit 6ddafd2 into 5.x Nov 3, 2016
@epixa epixa deleted the jasper/backport/8639/5.x branch November 15, 2016 00:41
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Backports PR elastic#8639

**Commit 1:**
Avoid printing notify object in lang selector on error

When ES is unavailable and we can't get the list of enabled scripting
langs we display a notification to the user. We were also accidentally
returning that notification object from the service method and
displaying its toString representation in the language select drop down.
Now we simplay return an empty array so the dropdown is rendered without
options.

Fixes elastic#8636

* Original sha: 051c554
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-12T15:25:15Z

Former-commit-id: 6ddafd2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants