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

Conversation

lrcouto
Copy link
Contributor

@lrcouto lrcouto commented Jul 30, 2024

Description

Addresses #785.

Development notes

Checklist

  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added a description of this change in the relevant RELEASE.md file
  • Added tests to cover my changes

Signed-off-by: Laura Couto <laurarccouto@gmail.com>
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
lrcouto and others added 3 commits July 31, 2024 12:02
Signed-off-by: L. R. Couto <57910428+lrcouto@users.noreply.github.com>
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
@lrcouto lrcouto marked this pull request as ready for review July 31, 2024 16:37
@@ -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)
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

Copy link
Contributor

@DimedS DimedS left a 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.

Copy link
Contributor

@ElenaKhaustova ElenaKhaustova left a 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!

@lrcouto lrcouto merged commit c2ef4c5 into main Aug 1, 2024
10 checks passed
@lrcouto lrcouto deleted the fix-telemetry-consent-env-var-override branch August 1, 2024 13:05
merelcht pushed a commit to galenseilis/kedro-plugins that referenced this pull request Aug 27, 2024
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants