-
Notifications
You must be signed in to change notification settings - Fork 684
Feature - Update aws-toolkit-commons package #4159
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 #4159
Conversation
- update AmazonQ Code Transform telemetry definitions for new package update
@@ -93,7 +93,7 @@ export async function validateProjectSelection(project: vscode.QuickPickItem) { | |||
vscode.window.showErrorMessage(CodeWhispererConstants.noSupportedJavaProjectsFoundMessage, { modal: true }) | |||
telemetry.codeTransform_isDoubleClickedToTriggerInvalidProject.emit({ | |||
codeTransformSessionId: codeTransformTelemetryState.getSessionId(), | |||
codeTransformPreValidationError: 'No Java project found' as CodeTransformPreValidationError, |
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.
Typecast with as
is unnecessary.
@@ -125,8 +125,7 @@ export async function validateProjectSelection(project: vscode.QuickPickItem) { | |||
vscode.window.showErrorMessage(CodeWhispererConstants.noSupportedJavaProjectsFoundMessage, { modal: true }) | |||
telemetry.codeTransform_isDoubleClickedToTriggerInvalidProject.emit({ | |||
codeTransformSessionId: codeTransformTelemetryState.getSessionId(), | |||
codeTransformPreValidationError: | |||
'Project selected is not Java 8 or Java 11' as CodeTransformPreValidationError, | |||
codeTransformPreValidationError: 'UnsupportedJavaVersion', |
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.
New values DO NOT have spaces.
https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#changelog
Is that the case here? |
- update AmazonQ Code Transform telemetry definitions for new package update
…thub.com:damntrecky/aws-toolkit-vscode into nardeck/amazonq-code-transform-telemetry-updates
@@ -0,0 +1,4 @@ | |||
{ |
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 delete this since its non user facing?
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.
yeah I'd say so. Also would suggest using "telemetry" as the commit-message prefix (aka topic)
telemetry.codeTransform_isDoubleClickedToTriggerInvalidProject.emit({ | ||
codeTransformSessionId: codeTransformTelemetryState.getSessionId(), | ||
codeTransformPreValidationError: 'Only Maven projects supported' as CodeTransformPreValidationError, | ||
codeTransformPreValidationError: 'NoPom', |
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.
could save some repeated code (though I see that reason
was omitted below?)
codeTransformPreValidationError: 'NoPom', | |
codeTransformPreValidationError: buildType === 'Gradle' ? NonMavenProject : 'NoPom', |
/retryBuilds |
Problem
We update the AWS Toolkit Common package and need to update the VSCode package per this PR -> aws/aws-toolkit-common#648
Solution
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.