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

The extension for VS Code ignores the modern telemetry flag #1463

Closed
kergian opened this issue Jul 18, 2023 · 7 comments · Fixed by #1465
Closed

The extension for VS Code ignores the modern telemetry flag #1463

kergian opened this issue Jul 18, 2023 · 7 comments · Fixed by #1465
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/schema Issue for team Schema.
Milestone

Comments

@kergian
Copy link

kergian commented Jul 18, 2023

Bug description

The extension for VS Code ignores the telemetry flag of modern versions of the editor.

The documentation for the extension says: to disable telemetry, specify telemetry.enableTelemetry": false in the settings.
The problem is that this flag was used in past versions of VS Code and has long been declared deprecated in favor of telemetry.telemetryLevel.

The official VS Code documentation has a description of the new settings and how they work: Telemetry

So if someone uses a modern version of VS Code with the new telemetry setting flag, the extension ignores it and still goes to checkpoint.prisma.io.

How to reproduce

  1. Use a modern version of VS Code
  2. Set the telemetry flag to any position, the most restricted is off
  3. Use any software to track/monitor network connections
  4. Watch VS Code go to checkpoint.prisma.io
  5. NOTE: If you set the telemetry.enableTelemetry: false flag, even though modern versions of VS Code have declared it deprecated, the extension takes it into account and does not send the request to its server

Expected behavior

The new flag should be taken into account and no request should be sent to the server

Environment & setup

  • OS: macOS Ventura 13.4.1
  • Editor: Visual Studio Code - Insiders
  • Editor version: 1.81.0
  • Extension version: 5.0.0
@janpio
Copy link
Member

janpio commented Jul 18, 2023

Thanks for the issue, that is definitely an oversight on our side.
We should not send any telemetry data on any level besides all - agree @kergian?

For context, this is where the deprecation was announced: https://code.visualstudio.com/updates/v1_61#_telemetry-settings

@janpio janpio added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. labels Jul 18, 2023
@kergian
Copy link
Author

kergian commented Jul 18, 2023

@janpio that's right. If the flag of the telemetry.telemetryLevel value is set to off, then any telemetry should be disabled. For other values like crash, or error there may be options.

In my estimation of what you have in your documentation, you can send a request to the server if the user specifically states in the telemetry settings that they agree to everything (setting = all), because you collect information not only on error logs but also on usage of the functionality.

For context, this is where the deprecation was announced: https://code.visualstudio.com/updates/v1_61#_telemetry-settings

Damn, literally ages ago😅

@janpio
Copy link
Member

janpio commented Jul 18, 2023

Raised internally and will try to get this fixed asap.
(Maybe even as a patch for the VS Code extension only, we wanted to test our patch release functionality anyway 😆)

@Jolg42
Copy link
Member

Jolg42 commented Jul 19, 2023

Thanks for opening this issue, I thought this was already implemented since a long time ago (#526)
So I'll double check this!

@Jolg42 Jolg42 added the team/schema Issue for team Schema. label Jul 19, 2023
@Jolg42 Jolg42 self-assigned this Jul 19, 2023
@Jolg42 Jolg42 added this to the 5.1.0 milestone Jul 19, 2023
@Jolg42 Jolg42 added bug/2-confirmed Bug has been reproduced and confirmed. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. labels Jul 19, 2023
@Jolg42
Copy link
Member

Jolg42 commented Jul 19, 2023

I opened a PR to fix this and react to telemetryLevel #1465

@Jolg42
Copy link
Member

Jolg42 commented Jul 20, 2023

@kergian Thanks a lot for reporting this!
We took this as an opportunity to do a patch release of the extension, it is now available as 5.0.63 (it's a weird version patch, but it's the right one!)
Now available on the marketplace

Let me know if it works as expected, I added a log in the DevTools to easily figure what's the state:
Screenshot 2023-07-20 at 17 19 04

@kergian
Copy link
Author

kergian commented Jul 20, 2023

@Jolg42 Joël - tested it and it works! Telemetry is no longer being sent. Thanks guys! 🤩 Issue can be safely closed🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/schema Issue for team Schema.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants