Skip to content

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

Conversation

damntrecky
Copy link
Contributor

  • update AmazonQ Code Transform telemetry definitions for new package update

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.

- update AmazonQ Code Transform telemetry definitions for new package update
@damntrecky damntrecky requested review from a team as code owners December 11, 2023 21:41
@@ -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,
Copy link
Contributor Author

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',
Copy link
Contributor Author

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.

@justinmk3
Copy link
Contributor

https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#changelog

Pull requests that change customer-facing behavior (in any describable way) should include a changelog item(s).

Is that the case here?

Nick Ardecky added 3 commits December 11, 2023 15:28
- 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 @@
{
Copy link
Contributor Author

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?

Copy link
Contributor

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',
Copy link
Contributor

@justinmk3 justinmk3 Dec 12, 2023

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?)

Suggested change
codeTransformPreValidationError: 'NoPom',
codeTransformPreValidationError: buildType === 'Gradle' ? NonMavenProject : 'NoPom',

@nkomonen-amazon
Copy link
Contributor

/retryBuilds

@nkomonen-amazon nkomonen-amazon merged commit d25bc44 into aws:master Dec 12, 2023
@damntrecky damntrecky deleted the nardeck/amazonq-code-transform-telemetry-updates branch December 12, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants