Skip to content

Conversation

@laileni-aws
Copy link
Contributor

Problem

  • UTG sends plaintext instead of python for amazonq_utgGenerateTests event.
  • In code, session.fileLanguage = await this.getLanguageForFilePath(filePath) reassigned python to plaintext after test generation.

Solution

  • Removal of session.fileLanguage = await this.getLanguageForFilePath(filePath) should fix the issue.

  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.

License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@laileni-aws laileni-aws requested a review from a team as a code owner December 6, 2024 18:35
@github-actions
Copy link

github-actions bot commented Dec 6, 2024

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

generatedLinesCount: session.linesOfCodeGenerated,
acceptedLinesCount: session.linesOfCodeAccepted,
cwsprChatProgrammingLanguage: session.fileLanguage,
cwsprChatProgrammingLanguage: session.fileLanguage ?? 'plaintext',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the proper place to put this default? Will other functions also default to plaintext? If so, initialize in a common place.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chungjac is working on this.
We aim to declare the telemetry function in telemetryHelper.ts and use it here but for now fixing this here.

@laileni-aws laileni-aws merged commit 2a404c4 into aws:master Dec 6, 2024
26 checks passed
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