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: add plugin installed event [IDE-736] #632

Merged
merged 4 commits into from
Nov 6, 2024

Conversation

bastiandoetsch
Copy link
Collaborator

@bastiandoetsch bastiandoetsch commented Oct 25, 2024

Description

This PR adds code to send analytics to track plugin installation. It could later be extended to send more events.

Depends on CLI preview release with protocol version 17

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

@bastiandoetsch bastiandoetsch requested a review from a team as a code owner October 25, 2024 13:49
@bastiandoetsch bastiandoetsch changed the title feat: add plugin installed event feat: add plugin installed event [IDE-736] Oct 25, 2024
@bastiandoetsch bastiandoetsch marked this pull request as draft October 25, 2024 13:49
@bastiandoetsch bastiandoetsch marked this pull request as ready for review November 4, 2024 08:32
@bastiandoetsch bastiandoetsch enabled auto-merge (squash) November 4, 2024 09:04
@@ -26,7 +26,10 @@ import java.util.UUID
storages = [Storage("snyk.settings.xml", roamingType = RoamingType.DISABLED)],
)
class SnykApplicationSettingsStateService : PersistentStateComponent<SnykApplicationSettingsStateService> {
val requiredLsProtocolVersion = 16
// events
var pluginInstalledSent: Boolean = false
Copy link
Contributor

Choose a reason for hiding this comment

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

Will plugin developers working towards prod send a plugin installed event every time we start debug sessions? Will this be an issue for reporting?

Copy link
Collaborator Author

@bastiandoetsch bastiandoetsch Nov 6, 2024

Choose a reason for hiding this comment

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

Should not be an issue, as these versions would have a snapshot version of the integrationName. Any report would of cause need to filter snapshot or dev versions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The issue would only occur in our org anyways.

@bastiandoetsch bastiandoetsch force-pushed the feat/IDE-736_send-analytics branch from 6dfb39a to 40b9c02 Compare November 6, 2024 15:27
@bastiandoetsch bastiandoetsch merged commit 49e2620 into master Nov 6, 2024
9 checks passed
@bastiandoetsch bastiandoetsch deleted the feat/IDE-736_send-analytics branch November 6, 2024 15:33
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