We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When ElasticSearch is running with one or more unassigned replicas the Cluster Overview page breaks with a javascript error:
Uncaught TypeError: Cannot read property 'name' of undefined
Can be reproduced using ElasticSearch 0.19.8 with the following index:
$ curl -XPUT 'http://localhost:9200/twitter/' -d '{ "settings" : { "number_of_shards" : 3, "number_of_replicas" : 2 } }'
The text was updated successfully, but these errors were encountered:
I could fix this by making the following change inside /lib/es/widget.js:
b = second.cluster.name;into: b = (typeof second.cluster !== "undefined") ? second.cluster.name : second.name;
b = (typeof second.cluster !== "undefined") ? second.cluster.name : second.name;
Sorry, something went wrong.
Or maybe it is better to guarantee to have the unassigned clusters sorted on the bottom:
if ((typeof second.cluster === "undefined")) return 0;
preferably the order would be
I'm on holiday at the moment - would appreciate a patch!
No branches or pull requests
When ElasticSearch is running with one or more unassigned replicas the Cluster Overview page breaks with a javascript error:
Can be reproduced using ElasticSearch 0.19.8 with the following index:
The text was updated successfully, but these errors were encountered: