-
Notifications
You must be signed in to change notification settings - Fork 244
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
Do not send userId to registry when ODO_DEBUG_TELEMETRY_FILE is set #6031
Do not send userId to registry when ODO_DEBUG_TELEMETRY_FILE is set #6031
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
pkg/segment/integrations.go
Outdated
if GetDebugTelemetryFile() != "" { | ||
return td, nil | ||
} | ||
|
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.
To make this faster, perhaps you can put this check on L19, before checking if telemetry is enabled.
ef4390d
to
45a46a7
Compare
pkg/segment/integrations.go
Outdated
@@ -23,6 +23,10 @@ func getTelemetryForDevfileRegistry() (registryLibrary.TelemetryData, error) { | |||
return td, err | |||
} | |||
|
|||
if GetDebugTelemetryFile() != "" { |
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 meant to suggest you can move this to L19, before initializing the preference client.
45a46a7
to
c231803
Compare
@@ -17,6 +17,10 @@ func getTelemetryForDevfileRegistry() (registryLibrary.TelemetryData, error) { | |||
Client: TelemetryClient, | |||
} | |||
|
|||
if GetDebugTelemetryFile() != "" { |
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.
There's a unit test for this well which might need enhancing, can you check?
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dharmit The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/override ci/prow/v4.10-integration-e2e |
@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.10-integration-e2e 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. |
…edhat-developer#6031) * Do not send userId to registry when ODO_DEBUG_TELEMETRY_FILE is set * Unit tests
What type of PR is this:
/kind bug
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes #5937
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: