Skip to content
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

Conversation

damntrecky
Copy link
Contributor

  • update AmazonQ Code Transform telemetry definitions for new package update

Types of changes

  • [x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

We update the AWS Toolkit Common package and need to update the VSCode package per this PR -> aws/aws-toolkit-common#648

Checklist

  • [x ] My code follows the code style of this project
  • I have added tests to cover my changes
  • [ x] A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

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 22:02
- update AmazonQ Code Transform telemetry definitions for new package update
…thub.com:damntrecky/aws-toolkit-jetbrains into nardeck/amazonq-code-transform-telemetry-updates
@@ -0,0 +1,4 @@
{
"type" : "bugfix",
"description" : "Fix telemetry logging for new Amazon Q Code Transform telemetry updates"
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
7.2% 7.2% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@@ -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
Copy link
Contributor

@tincheng tincheng Dec 12, 2023

Choose a reason for hiding this comment

The 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

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

Choose a reason for hiding this comment

The 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 NoSupportedProjectType if project is neither Maven or Gradle. Would it be better to start using that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

@damntrecky damntrecky merged commit 79d2fdc into aws:main Dec 12, 2023
1 of 3 checks passed
@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.

5 participants