aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
730 stars 197 forks source link

Fix duplicated IdC failure metrics #4632

Open wularr opened 4 days ago

wularr commented 4 days ago

Types of changes

Description

Currently, attempting to sign in through the Q by clicking "Use with Pro License" then cancelling results in duplicate browser login and addConnection metrics. This is because we are submitting metrics in the IdC-specific login function and in the general login function (the IdC-specific login function calls the general one).

This change will move all metrics decisions to the IdC-specific login function. The general login function does the actual submission through a hook.

Checklist

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

sonarcloud[bot] commented 1 day ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud