-
Notifications
You must be signed in to change notification settings - Fork 240
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
Feature - Update aws-toolkit-commons package #4051
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"type" : "bugfix", | ||
"description" : "Fix telemetry logging for new Amazon Q Code Transform telemetry updates" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,7 @@ class CodeModernizerManager(private val project: Project) : PersistentStateCompo | |
false, | ||
message("codemodernizer.notification.warn.invalid_project.description.reason.remote_backend"), | ||
InvalidTelemetryReason( | ||
CodeTransformPreValidationError.ProjectRunningOnBackend | ||
CodeTransformPreValidationError.RemoteRunProject | ||
) | ||
) | ||
} | ||
|
@@ -126,7 +126,7 @@ class CodeModernizerManager(private val project: Project) : PersistentStateCompo | |
false, | ||
message("codemodernizer.notification.warn.invalid_project.description.reason.not_logged_in"), | ||
InvalidTelemetryReason( | ||
CodeTransformPreValidationError.NonSSOLogin | ||
CodeTransformPreValidationError.NonSsoLogin | ||
) | ||
) | ||
} | ||
|
@@ -136,7 +136,7 @@ class CodeModernizerManager(private val project: Project) : PersistentStateCompo | |
false, | ||
message("codemodernizer.notification.warn.invalid_project.description.reason.missing_content_roots"), | ||
InvalidTelemetryReason( | ||
CodeTransformPreValidationError.EmptyProject | ||
CodeTransformPreValidationError.NoPom | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it possible to keep the reason more generic, such as NoBuildFile? Q Transform will support other build tools like Gradle and a generic reason "missing_content_roots" is applicable to these other build tools as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right now its not clear what we are going to support. And right now specifics around maven/gradle are useful metrics to have to determine how many projects we have or do not have with our specific requirements. |
||
) | ||
) | ||
} | ||
|
@@ -147,7 +147,7 @@ class CodeModernizerManager(private val project: Project) : PersistentStateCompo | |
false, | ||
message("codemodernizer.notification.warn.invalid_project.description.reason.invalid_jdk_versions", supportedJavaMappings.keys.joinToString()), | ||
InvalidTelemetryReason( | ||
CodeTransformPreValidationError.ProjectSelectedIsNotJava8OrJava11, | ||
CodeTransformPreValidationError.UnsupportedJavaVersion, | ||
project.tryGetJdk().toString() | ||
) | ||
) | ||
|
@@ -160,7 +160,7 @@ class CodeModernizerManager(private val project: Project) : PersistentStateCompo | |
false, | ||
message("codemodernizer.notification.warn.invalid_project.description.reason.no_valid_files", supportedBuildFileNames.joinToString()), | ||
InvalidTelemetryReason( | ||
CodeTransformPreValidationError.ProjectSelectedIsNotJava8OrJava11, | ||
CodeTransformPreValidationError.NonMavenProject, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Once we started supporting other build tools like Gradle, this telemetry would likely become something more generic like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right now specifics around maven/gradle are useful metrics to have to determine how many projects we have or do not have with our specific requirements. |
||
if (isGradleProject(project)) "Gradle build" else "other build" | ||
) | ||
) | ||
|
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.
non-userfacing so does not need a changelog
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.
Thanks for letting me know. Should I delete?
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.
happy to keep, doesn't hurt