-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fixing errors display when using options '--ns' or '--ds' #382
Open
MichaelTimbert
wants to merge
9
commits into
zonemaster:develop
Choose a base branch
from
MichaelTimbert:358
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MichaelTimbert
requested review from
tgreenx,
mattias-p,
matsduf and
marc-vanderwal
August 19, 2024 11:49
MichaelTimbert
added
the
V-Minor
Versioning: The change gives an update of minor in version.
label
Aug 19, 2024
tgreenx
reviewed
Aug 20, 2024
This PR is based on develop branch before the last release. I suggest that it is rebased on latest master or develop branch. |
matsduf
reviewed
Aug 21, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes are fine. When the other other review comments are handled I can approve.
matsduf
previously requested changes
Aug 28, 2024
I have extracted CLI argument verification from 'add_fake_delegation' and 'add_fake_ds' to 'check_fake_ds' and 'check_fake_delegation'. check_* functions are called before displaying the header and only displays CLI argument errors. add_* functions are called after the header and throw errors from the Engine.
Code formatting Co-authored-by: tgreenx <96772376+tgreenx@users.noreply.github.com> Co-authored-by: Marc van der Wal <103426270+marc-vanderwal@users.noreply.github.com>
Remove unused variables Co-authored-by: tgreenx <96772376+tgreenx@users.noreply.github.com>
Improve code Co-authored-by: tgreenx <96772376+tgreenx@users.noreply.github.com>
Move --ns & --ds validation earlier in the code Co-authored-by: tgreenx <96772376+tgreenx@users.noreply.github.com>
Improve code and regex validation Co-authored-by: Marc van der Wal <marc.vanderwal@afnic.fr>
Reuse code from Zonemaster::Engine for IP validation Co-authored-by: Mats Dufberg <mats.dufberg@iis.se>
matsduf
reviewed
Aug 28, 2024
Better hint for --ds option Co-authored-by: Mats Dufberg <mats.dufberg@iis.se>
matsduf
approved these changes
Aug 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This separate CLI errors from Engine errors.
Errors on CLI argument are catch before displaying the header.
Context
Fixes #358
Changes
I have split CLI argument verification from Engine settings.
I have also add regex validation for '--ds' arguments
How to test this PR
Stress test zonemaster-cli with various '--ns' and '--ds' arguments.
Errors from command line input validation must be display before any header.
Errors from the Engine must be formatted correctly after the header.
here some example to cmd to run: