-
Notifications
You must be signed in to change notification settings - Fork 275
Fix metric for viewing Q auth webview #5061
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
Conversation
Qodana Community for JVM4 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
| import software.aws.toolkits.jetbrains.settings.CodeWhispererSettings | ||
| import software.aws.toolkits.jetbrains.utils.notifyError | ||
| import software.aws.toolkits.resources.message | ||
| import software.aws.toolkits.telemetry.AuthTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
| import software.aws.toolkits.jetbrains.settings.CodeWhispererSettings | ||
| import software.aws.toolkits.jetbrains.utils.notifyError | ||
| import software.aws.toolkits.resources.message | ||
| import software.aws.toolkits.telemetry.AuthTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
...rc/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt
Fixed
Show fixed
Hide fixed
...rc/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt
Fixed
Show fixed
Hide fixed
| fun recordCloseChat() { | ||
| Telemetry.amazonq.closeChat.use { it.passive(true) } | ||
| if (getQConnection() == null) { | ||
| AuthTelemetry.signInPageClosed() |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
...rc/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt
Outdated
Show resolved
Hide resolved
...rc/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt
Fixed
Show fixed
Hide fixed
...rc/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt
Fixed
Show fixed
Hide fixed
...rc/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt
Fixed
Show fixed
Hide fixed
...rc/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt
Fixed
Show fixed
Hide fixed
...rc/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt
Fixed
Show fixed
Hide fixed
| fun recordOpenChat(project: Project) { | ||
| Telemetry.amazonq.openChat.use { it.passive(true) } | ||
| if (getQConnection(project) == null) { | ||
| AuthTelemetry.signInPageOpened() |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
| Telemetry.amazonq.openChat.use { it.passive(true) } | ||
| if (getQConnection(project) == null) { | ||
| AuthTelemetry.signInPageOpened() | ||
| } |
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.
should this be
| Telemetry.amazonq.openChat.use { it.passive(true) } | |
| if (getQConnection(project) == null) { | |
| AuthTelemetry.signInPageOpened() | |
| } | |
| if (getQConnection(project) == null) { | |
| AuthTelemetry.signInPageOpened() | |
| } else { | |
| Telemetry.amazonq.openChat.use { it.passive(true) } | |
| } |
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.
it looks like vsc emits these separately. openChat is ambiguously: "When user opens CWSPR chat panel".
separating these metrics would make open/close chat a little more meaningful.
* metrics * detekt * project instance from call site * style * fix indents * detekt
Types of changes
Description
Re-implement Q auth metrics for open/close sign-in page that were removed in:
#4850
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.