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

fix(telemetry): Let environment variables override consent from .telemetry file #791

Merged
merged 7 commits into from
Aug 1, 2024
3 changes: 1 addition & 2 deletions kedro-telemetry/kedro_telemetry/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,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)
Copy link
Contributor

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

self._project_path = context.project_path

@hook_impl
Expand Down