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

Implement checkZoneDistribution #64

Merged
merged 10 commits into from
Oct 1, 2018
Merged

Conversation

jodosha
Copy link
Contributor

@jodosha jodosha commented Oct 30, 2017

No description provided.

@jodosha jodosha added feature ready-for-review Pull requests that are ready to be reviewed by other team members. labels Oct 30, 2017
@jodosha jodosha self-assigned this Oct 30, 2017
@jodosha jodosha requested review from weppos and aeden October 30, 2017 10:12
weppos
weppos previously requested changes Dec 11, 2017
Copy link
Member

@weppos weppos left a comment

Choose a reason for hiding this comment

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

On hold until dnsimple/dnsimple-developer#153 is approved and merged.

@weppos weppos removed the ready-for-review Pull requests that are ready to be reviewed by other team members. label Dec 11, 2017
@jodosha jodosha changed the title Implement getZoneDistribution Implement checkZoneDistribution May 2, 2018
@jodosha jodosha dismissed weppos’s stale review May 2, 2018 13:47

Documentation is live. I updated code with consistent naming, and updated the fixtures.

@jodosha jodosha added the ready-for-review Pull requests that are ready to be reviewed by other team members. label May 2, 2018
@jodosha jodosha requested a review from weppos May 2, 2018 14:58
weppos
weppos previously requested changes May 4, 2018
Copy link
Member

@weppos weppos left a comment

Choose a reason for hiding this comment

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

Please have both checkZoneDistribution and checkZoneRecordDistribution in the same PR.

@jodosha jodosha dismissed weppos’s stale review July 17, 2018 10:34

I implemented both the features, as requested

@jodosha jodosha requested a review from weppos July 17, 2018 10:34
import "fmt"

// ZoneDistribution is the result of the zone distribution check.
type ZoneDistribution struct {
Copy link
Member

Choose a reason for hiding this comment

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

How do you feel about renaming this struct into DistributionResult, and having both zoneDistributionResponse and zoneRecordDistributionResponse to use the same struct?

We don't pay for structs, but I hardly see the reason ATM to use 2 different types. It may makes things harder on the consumer side (especially given they are not an interface, and Go is strictly typed).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I intentionally didn't declared an unified type because it looked like premature DRY.

On the other hand, we unify a lot of responses of the same type. Eg. registrar and domain services use domainResponse . So I think we can unify this as well.

@jodosha jodosha merged commit 8d491f9 into master Oct 1, 2018
@jodosha jodosha deleted the feature/zone-distribution branch October 1, 2018 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review Pull requests that are ready to be reviewed by other team members.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants