-
Notifications
You must be signed in to change notification settings - Fork 926
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
Add implementation of telemetry consent flag for kedro run #3876
Conversation
Signed-off-by: lrcouto <[email protected]>
Signed-off-by: lrcouto <[email protected]>
Signed-off-by: lrcouto <[email protected]>
…g/kedro into add-telemetry-flag-to-kedro-run
Signed-off-by: lrcouto <[email protected]>
Signed-off-by: lrcouto <[email protected]>
Signed-off-by: lrcouto <[email protected]>
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 think this is almost there, but I left some comments. Most importantly on the public utils methods.
kedro/framework/cli/utils.py
Outdated
@@ -497,3 +497,38 @@ def _split_load_versions(ctx: click.Context, param: Any, value: str) -> dict[str | |||
load_versions_dict[load_version_list[0]] = load_version_list[1] | |||
|
|||
return load_versions_dict | |||
|
|||
|
|||
def validate_input_with_regex_pattern(pattern_name: str, input: str) -> None: |
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 think this should still be a private method as we don't want users to start using this.
kedro/framework/cli/utils.py
Outdated
sys.exit(1) | ||
|
||
|
||
def parse_yes_no_to_bool(value: str) -> Any: |
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.
Same here. And I'm actually thinking that the name is a bit misleading. If I understand correctly this parses yes
to True
, but otherwise returns None
, so maybe it should be named parse_yes_to_bool
?
Signed-off-by: lrcouto <[email protected]>
Signed-off-by: lrcouto <[email protected]>
Signed-off-by: L. R. Couto <[email protected]>
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.
LGTM! 👍
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.
Thank you, @lrcouto , LGTM! Great idea to move regex validation to utils!
…edro-org#3876)" (kedro-org#3888) This reverts commit 570f66a. Signed-off-by: bpmeek <[email protected]>
Description
Adds the
--telemetry
flag tokedro run
, similar to the one inkedro new
. Allows consent to telemetry to be granted or revoked at the same time as therun
command is called.Works together with kedro-org/kedro-plugins#681, that is required so the user will not receive the prompt to grant consent if it's given through the CLI flag.
Development notes
Developer Certificate of Origin
We need all contributions to comply with the Developer Certificate of Origin (DCO). All commits must be signed off by including a
Signed-off-by
line in the commit message. See our wiki for guidance.If your PR is blocked due to unsigned commits, then you must follow the instructions under "Rebase the branch" on the GitHub Checks page for your PR. This will retroactively add the sign-off to all unsigned commits and allow the DCO check to pass.
Checklist
RELEASE.md
file