-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Add the cluster name to the "/" endpoint #7524
Conversation
The root endpoint returns basic information about this node, like it's name and ES version etc. The cluster name is an important information that belongs in that list.
super(settings, client); | ||
this.version = version; | ||
controller.registerHandler(GET, "/", this); | ||
controller.registerHandler(HEAD, "/", this); | ||
this.clusterName = clusterName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unlikely to matter, but you should put this assignment above the handler registration since it hands out a reference to an incomplete object that could cause trouble.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. Pushed another commit with this changed.
LGTM, useful tiny little piece! |
The root endpoint returns basic information about this node, like it's name and ES version etc. The cluster name is an important information that belongs in that list. Closes #7524
The root endpoint returns basic information about this node, like it's name and ES version etc. The cluster name is an important information that belongs in that list. Closes #7524
The root endpoint returns basic information about this node, like it's name and ES version etc. The cluster name is an important information that belongs in that list.