Skip to content

ns1: Add support for diff2#1858

Merged
tlimoncelli merged 5 commits into
DNSControl:masterfrom
costasd:enable_diff2_ns1
Dec 19, 2022
Merged

ns1: Add support for diff2#1858
tlimoncelli merged 5 commits into
DNSControl:masterfrom
costasd:enable_diff2_ns1

Conversation

@costasd
Copy link
Copy Markdown
Contributor

@costasd costasd commented Dec 15, 2022

This changeset adds proper support for conditionally enabling diff2 in the NS1 provider.

While there, some code was shuffled around:

  • diff-specific parts were moved inside the diff section
  • DNSSEC corrections were moved out of the conditional, they're independent of diff/diff2 being used.

Relates to #1854

ugly, but good enough for now
... while there, reorder code a bit
@costasd
Copy link
Copy Markdown
Contributor Author

costasd commented Dec 15, 2022

Hey @tlimoncelli, this should be all that's needed to add diff2 support to the ns1 provider :)

Copy link
Copy Markdown
Contributor

@tlimoncelli tlimoncelli left a comment

Choose a reason for hiding this comment

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

Looks good so far. One request: When we delete the "if diff2.EnabledDiff2" and legacy code, it would be nice if the remaining code didn't need to change indenting. That way "git blame" will show you as the author of these lines.

Comment thread providers/ns1/ns1Provider.go Outdated
Comment thread providers/ns1/ns1Provider.go Outdated
Remove a conditional by making diff2 the default, keeping the conditional for
the legacy diff code path.
@tlimoncelli
Copy link
Copy Markdown
Contributor

Looks great! Thanks!

@tlimoncelli tlimoncelli merged commit 7654107 into DNSControl:master Dec 19, 2022
@tlimoncelli tlimoncelli mentioned this pull request Jan 1, 2023
39 tasks
tlimoncelli added a commit that referenced this pull request Jan 11, 2023
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants