-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement logic to ask for telemetry consent #5501 #5503
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
// Store user's consent choice | ||
await writeJsonFile(await getTelemetryConsentFilePath(), { consent }); | ||
|
||
// TODO: this will be enabled in a following PR as soon as the function to send telemetry is implemented |
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.
Will be done in this work item. These tasks are under the same parent feature
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.
Looks good, just some minor comments
|
||
function canTelemetryBeEnabled(isHelpCommand: boolean): boolean { | ||
return ( | ||
!isHelpCommand && |
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.
This was here in v2 because telemitry wasn't done using a subprocess and it was slow. We don't need it anymore.
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.
Done in this commit
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.
Just left a few comments
Fix function doc Co-authored-by: Patricio Palladino <[email protected]>
…ure/add-telemetry-consent
…ation/hardhat into feature/add-telemetry-consent
Link to task
Add logic to ask for telemetry consent.
The consent should be registered but this feature will be implemented in this work item, not here.
There are no tests because the telemetry logic cannot be triggered in the CI