-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make sure event is recorded whenever telemetry preference is changed #6842
Make sure event is recorded whenever telemetry preference is changed #6842
Conversation
This is recorded before any command is run. And it will help determine if telemetry was changed (e.g., from enabled to disabled), so that we can record the event in this case.
…bled This is done by reading the actual telemetry setting (either from env vars or the preferences file) at the moment we want to record the telemetry event. This covers cases where a command ('odo preference set ConsentTelemetry') or an environment variable ('ODO_TRACKING_CONSENT') updated the telemetry consent for example.
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Starting with an empty preference file, and executing
|
Since telemetry is not (yet?) enabled by default, I think we should not send anything until it is explicitly enabled, no? All the other commands (except |
I agree |
Flaky E2E test - tracked in #6582 /override OpenShift-Integration-tests/OpenShift-Integration-tests |
@rm3l: Overrode contexts on behalf of rm3l: OpenShift-Integration-tests/OpenShift-Integration-tests In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/override windows-integration-test/Windows-test |
@rm3l: Overrode contexts on behalf of rm3l: windows-integration-test/Windows-test In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this:
/kind bug
/area telemetry
What does this PR do / why we need it:
See #6790 for more context and reproduction steps.
Which issue(s) this PR fixes:
Fixes #6790
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: