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

Sending anonymous analytics #1204

Merged
merged 12 commits into from Apr 7, 2022
Merged

Sending anonymous analytics #1204

merged 12 commits into from Apr 7, 2022

Conversation

ItayGabbay
Copy link
Member

What does this implement/fix? Explain your changes.

Any other comments?


Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/deepchecks/deepchecks/blob/main/CONTRIBUTING.rst

@ItayGabbay ItayGabbay requested review from shir22 and a team as code owners April 6, 2022 10:41
@@ -0,0 +1,30 @@
"""Module for anonymous analytics tracking."""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add here another sentence clarifying the same as inside the documentation...
(no personal data etc. will ever be sent. only a single event upon import)

@ItayGabbay ItayGabbay added the feature Feature update or code change to the package label Apr 6, 2022
@ItayGabbay ItayGabbay self-assigned this Apr 6, 2022
@@ -90,3 +90,17 @@ Start Working with the Package
Now it's time to :doc:`check out </index>` deepchecks!


Anonymous Usage Metrics
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 the name telemetry is more common in this cases

try:
disable = os.environ.get('DEEPCHECKS_DISABLE_LATEST', 'false').lower() == 'true'
disable = os.environ.get('DISABLE_DEEPCHECKS_ANONYMOUS_TRACKING', False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is already if disabled inside the function

Suggested change
disable = os.environ.get('DISABLE_DEEPCHECKS_ANONYMOUS_TRACKING', False)
send_anonymous_import_event()

@shir22 shir22 self-requested a review April 7, 2022 15:56
@ItayGabbay ItayGabbay enabled auto-merge (squash) April 7, 2022 16:02
@ItayGabbay ItayGabbay merged commit b6824ff into main Apr 7, 2022
@delete-merged-branch delete-merged-branch bot deleted the posthog-tracking branch April 7, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature update or code change to the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants