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

NEW FEATURE: IGNORE() (diff2 only) #2388

Merged
merged 27 commits into from
May 24, 2023
Merged

NEW FEATURE: IGNORE() (diff2 only) #2388

merged 27 commits into from
May 24, 2023

Conversation

tlimoncelli
Copy link
Contributor

The IGNORE() function is now a generalized function that replaces the need for IGNORE_NAME() and IGNORE_TARGET(). It can ignore on label, type, and target. It supports globs.

IGNORE() is backwards compatible with the old IGNORE() function that is deprecated.

IGNORE_NAME() and IGNORE_TARGET() are shortcuts for equivalent IGNORE() calls.

documentation/functions/domain/IGNORE.md Outdated Show resolved Hide resolved
a per-record basis using `IGNORE_NAME_DISABLE_SAFETY_CHECK`:

```
// THIS NO LONGER WORKS! Use DISABLE_IGNORE_SAFETY_CHECK instead.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is an great one to add on the changelog breaking chances section. This allows me, as a user, to determine the impact early on. Otherwise I update DNSControl and cannot run the commands before having to change the DNSControl domain configuration.

Having said that, what version number would you like to make this change under?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it starts with diff2. so... v4.0.0 with "--diff2=false" as the temporary work-around?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, that could be a solution.

documentation/functions/domain/IGNORE.md Outdated Show resolved Hide resolved
documentation/functions/domain/IGNORE.md Show resolved Hide resolved
documentation/functions/domain/IGNORE.md Show resolved Hide resolved
documentation/functions/domain/IGNORE.md Outdated Show resolved Hide resolved
documentation/functions/domain/IGNORE.md Outdated Show resolved Hide resolved
documentation/functions/domain/IGNORE.md Outdated Show resolved Hide resolved
{% endhint %}

* `IGNORE` is not tested with `D_EXTEND()` and may not work.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question: is this still a problem? or is this traditional diff1 problem?

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 don't know. I just haven't tested it yet

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've tested it. It works fine.

You can override this error by adding the
`IGNORE_NAME_DISABLE_SAFETY_CHECK` flag to the record.

TXT('vpn', "this thing", IGNORE_NAME_DISABLE_SAFETY_CHECK)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Style: Same as others, missing the D() and code highlighting.

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'm ok with not including D() when it isn't intended to be a complete example.

@tlimoncelli
Copy link
Contributor Author

https://docs.dnscontrol.org/~/revisions/qvGVAaUK1jFwFzCcYMsy/language-reference/domain-modifiers/ignore

Thanks for that! I've made a number of updates as a result. (It's amazing how a good preview finds typos!)

@tlimoncelli
Copy link
Contributor Author

I believe the code and docs are done. Any last comments?

@cafferata
Copy link
Collaborator

I'll go through it tomorrow. 👍

@cafferata
Copy link
Collaborator

Revisions NEo1U7TOunVqdWFpwhR8

@cafferata
Copy link
Collaborator

I believe the code and docs are done. Any last comments?

Looks good 👍 , just one minor point #2388 (comment)

@tlimoncelli
Copy link
Contributor Author

Thanks for the help!

@tlimoncelli tlimoncelli merged commit 0b7daba into master May 24, 2023
@tlimoncelli tlimoncelli deleted the tlim_ignore branch May 24, 2023 19:14
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.

3 participants