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

Domain info command response exposes a single status #7

Merged

Conversation

jacegu
Copy link
Contributor

@jacegu jacegu commented Sep 3, 2014

The domain info command returns zero or more statuses. Right now only the first one is exposed by the client but all of them should be returned.

This is a minor change but wouldn't be backwards compatible since response.status no longer returns a String but an Array.

An alternative approach may be adding a statuses method that returns all of them and leave the status method returning only the first one. I leave that up for discussion.

@jacegu jacegu changed the title Bugfix/info returns single domains status Domain info command response exposes a single status Sep 3, 2014
@geoffgarside
Copy link
Contributor

Not quite sure the best solution here.

  1. Keep status and bump major version, document as breaking change.
  2. Add statuses and refactor status to run statuses.first.

I'm tempted to go with option 1 though.

@jacegu
Copy link
Contributor Author

jacegu commented Sep 5, 2014

For what it's worth I'd go with 1 too.

geoffgarside added a commit that referenced this pull request Oct 16, 2014
…status

Domain info command response exposes a single status
@geoffgarside geoffgarside merged commit 7ae465b into m247:master Oct 16, 2014
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.

2 participants