-
Notifications
You must be signed in to change notification settings - Fork 235
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
fix(amazonq): add field for builderId vs IdC #4249
Conversation
@@ -143,19 +143,13 @@ class CodeModernizerSession( | |||
LOG.warn { "Job was cancelled by user before start job was called" } | |||
CodeModernizerStartJobResult.Cancelled | |||
} else { | |||
val errorMessage = "Failed to start job" | |||
LOG.error(e) { errorMessage } |
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.
This was already being logged and emitted elsewhere
...mmunity/src/software/aws/toolkits/jetbrains/services/codemodernizer/CodeModernizerSession.kt
Show resolved
Hide resolved
...src/software/aws/toolkits/jetbrains/services/codemodernizer/CodeTransformTelemetryManager.kt
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
fun jobIsStartedFromChatPrompt() { | ||
val connection = checkBearerConnectionValidity(project, BearerTokenFeatureSet.Q) | ||
var authType: CredentialSourceId? = null | ||
if (connection.connectionType == ActiveConnectionType.IAM_IDC && connection is ActiveConnection.ValidBearer) { |
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.
nit: Can probably check connection is ActiveConnection.ValidBearer
as an outer if.
* fix(amazonq): improve telemetry * remove unused import * address comments * fix detekt issue --------- Co-authored-by: David Hasani <[email protected]>
Types of changes
Description
Need to track if users using builderId or IdC for
/transform
. Had some redundant telemetry/logging. Deleted dead code too.Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.