This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
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.
[PAN-2265] Expose fast-sync options on command line #1218
[PAN-2265] Expose fast-sync options on command line #1218
Changes from 5 commits
e6849a2
32b4a59
157aa3a
4424756
1b984a4
005ef33
a5740db
a2435df
1a7338c
1e4f2b8
79a1a77
80ccf40
ae970d9
ae3febc
8ed3e8e
c6cda82
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Our parameter validation has been more just in time and directly in the configuration options rather than directly between the CLI and the config. It keeps the validations closer to where the parameters are actually stored. Validating in the CLI also provides a barrier to splitting the code apart.
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.
A custom converter to restrict the integer to a positive non null one ?
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.
None of other integers have restriction. For example metrics interval in seconds are not checked too. So what is the best practice to perform those checks ?
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.
I suggest we keep like this for this PR. We need to define a way to do this kind of checks and implement it for all options in a separate ticket imo.