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

Enhancement: Add support to list zones #14

Merged
merged 2 commits into from
Oct 21, 2019

Conversation

jackdpeterson
Copy link
Contributor

@jackdpeterson jackdpeterson commented Oct 8, 2019

Feature enhancement: list domains to support bulk operations.
new method:

$powerdns->listZones: Zone[];

Once working with Zone[], knowing what zone is being returned is helpful for consuming code.

$zone->getCanonicalName(): string;

@jackdpeterson jackdpeterson force-pushed the add_list_zones branch 4 times, most recently from a908140 to fed0eb4 Compare October 8, 2019 19:09
@trizz trizz self-assigned this Oct 9, 2019
@trizz trizz added the enhancement Enhancement of the code, not introducing new features. label Oct 9, 2019
Copy link
Member

@trizz trizz left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! I've tested your code and it seems to work fine. I've just a few comments, mostly about our code conventions. If those are fixed, I'll merge your PR.

src/AbstractZone.php Show resolved Hide resolved
src/AbstractZone.php Outdated Show resolved Hide resolved
src/Powerdns.php Show resolved Hide resolved
tests/ZoneTest.php Outdated Show resolved Hide resolved
@jackdpeterson
Copy link
Contributor Author

jackdpeterson commented Oct 14, 2019

Thanks for the review! I just implemented those docblock changes and modified the behavior of getCanoncalName to return the $this->zone. I rebased these two commits down into one to keep your merge history clean as well.

This change helps facilitate bulks actions like managing ACME from a client-side app.

After one calls $powerDns->listZones();
knowing what zone is being returned is extremely helpful.
`$zone->getCanonicalName(): string;`

PR changes requested by repo owner

PHPCS cleanup
@jackdpeterson jackdpeterson requested a review from trizz October 14, 2019 17:34
@trizz trizz merged commit 10120b0 into exonet:master Oct 21, 2019
@robbinjanssen
Copy link
Member

Released as v1.1.0 🎉

@jackdpeterson jackdpeterson deleted the add_list_zones branch October 21, 2019 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of the code, not introducing new features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants