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

Add datacenter to catalog node API #2917

Merged
merged 4 commits into from
Apr 18, 2017

Conversation

magiconair
Copy link
Contributor

This patch stores the datacenter of a node in the memdb
and exposes it via the API in all places where a Node
structure is returned.

  • /catalog/nodes
  • /catalog/node/:node
  • /catalog/service/:service

Fixes #2713

This patch stores the datacenter of a node in the memdb
and exposes it via the API in all places where a Node
structure is returned.

 * /catalog/nodes
 * /catalog/node/:node
 * /catalog/service/:service

Fixes #2713
@slackpad
Copy link
Contributor

slackpad commented Apr 17, 2017

The datacenter will also show up in the /v1/health and /v1/query/<>/execute APIs - can you update the docs and the api client for those as well? It embeds the same node structure.

Copy link
Contributor

@slackpad slackpad left a comment

Choose a reason for hiding this comment

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

This same node structure gets sent back in the health and prepared query endpoints, so we should update the API client and docs there too. Otherwise, LGTM!

@magiconair
Copy link
Contributor Author

@slackpad I'll do that and add the tests for that as well then.

Copy link
Contributor

@slackpad slackpad left a comment

Choose a reason for hiding this comment

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

LGTM - if CI looks good it's ready for merge. After that please update the CHANGELOG in a separate commit (you can commit that directly). Looks great!

@magiconair magiconair merged commit c40621a into master Apr 18, 2017
@magiconair magiconair deleted the fms-issue-2713-add-dc-to-node-api branch April 18, 2017 12:03
@magiconair
Copy link
Contributor Author

Squashed and merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants