-
Notifications
You must be signed in to change notification settings - Fork 90
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
fix(telemetry): Let environment variables override consent from .telemetry file #791
Conversation
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
Signed-off-by: L. R. Couto <57910428+lrcouto@users.noreply.github.com>
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
@@ -205,8 +205,7 @@ def after_command_run(self): | |||
def after_context_created(self, context): | |||
"""Hook implementation to send project statistics data to Heap""" | |||
|
|||
if self._consent is None: | |||
self._consent = _check_for_telemetry_consent(context.project_path) | |||
self._consent = _check_for_telemetry_consent(context.project_path) |
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 I'm alright with this fix
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.
Thanks, @lrcouto ! I agree, this will cover core problem described in the issue.
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 for the fix!
…metry file (kedro-org#791) * Always set self._consent Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Lint Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Fix merge conflict Signed-off-by: Laura Couto <laurarccouto@gmail.com> --------- Signed-off-by: Laura Couto <laurarccouto@gmail.com> Signed-off-by: L. R. Couto <57910428+lrcouto@users.noreply.github.com> Co-authored-by: ElenaKhaustova <157851531+ElenaKhaustova@users.noreply.github.com> Co-authored-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com> Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com>
Description
Addresses #785.
Development notes
Checklist
RELEASE.md
file