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

feat: Sending IDE+extension versions to autofix #745

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

antoine-snyk
Copy link
Contributor

@antoine-snyk antoine-snyk commented Jan 7, 2025

Description

This is sending the IDE name and version and the extension name and version to autofix requests and feedback events.
This is for analytics purposes. IDE extensions might support different features at a given point in time and knowing the extension used helps knowing what features are available to the end user.

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing
  • License file updated, if new 3rd-party dependency is introduced

@CLAassistant
Copy link

CLAassistant commented Jan 7, 2025

CLA assistant check
All committers have signed the CLA.

@bastiandoetsch
Copy link
Collaborator

Would you please add tests?

@antoine-snyk
Copy link
Contributor Author

Sure. I am adding a test for composing the request to autofix. I also replaced the map with a proper struct for the feedback.

Copy link
Collaborator

@bastiandoetsch bastiandoetsch left a comment

Choose a reason for hiding this comment

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

I'm approving this PR now, as there are only minor nitpicks/improvements left. This can be merged when you give the go-ahead.

This is for analytics purposes as different IDEs extensions might
support different features at a certain point in time.

feat: Adding test to autofixRequestBody
@antoine-snyk antoine-snyk force-pushed the feat/autofix/ide_extension_details branch from 5d52e2a to fb74b26 Compare January 10, 2025 10:02
@bastiandoetsch bastiandoetsch merged commit db40cd7 into main Jan 10, 2025
18 checks passed
@bastiandoetsch bastiandoetsch deleted the feat/autofix/ide_extension_details branch January 10, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants