Skip to content

Conversation

@Randall-Jiang
Copy link
Contributor

@Randall-Jiang Randall-Jiang commented Feb 7, 2025

Description

Previously, UTG did not have telemetry to collect user feedback on generated unit tests. This PR introduces telemetry support to address that gap. Additionally, it enables users to submit comments, which will be routed to a private SIM folder.
Screenshot 2025-02-11 at 3 09 14 PMTHUMB

feedback

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • 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.

@Randall-Jiang Randall-Jiang changed the title Thumb up and down telemetry(amazonq) add feedback functionality with thumbs up/down Feb 11, 2025
@Randall-Jiang Randall-Jiang marked this pull request as ready for review February 11, 2025 23:12
@Randall-Jiang Randall-Jiang requested review from a team as code owners February 11, 2025 23:12
Copy link
Contributor

Choose a reason for hiding this comment

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

?

userComment = message.comment.orEmpty(),
reason = message.selectedOption,
type = "testgen-chat-answer-feedback",
messageId = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this messageId = "" code

sentiment = Sentiment.NEGATIVE,
comment = objectMapper.writeValueAsString(comment),
)
LOG.info { "${software.aws.toolkits.jetbrains.services.amazonqFeatureDev.FEATURE_NAME} answer feedback sent: \"Negative\"" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change the log text to something like this instead of amazonqFeatureDev

software.aws.toolkits.jetbrains.services.amazonqCodeTest.FEATURE_NAME

@JsonProperty("tabID") val tabId: String,
val selectedOption: String,
val comment: String?,
val messageId: String,
Copy link
Contributor

Choose a reason for hiding this comment

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

I do not think we need messageId

interactionType = InteractionType.Upvote,
credentialStartUrl = getStartUrl(project = context.project),
amazonqConversationId = session.startTestGenerationRequestId

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: extra line

onChatItemVoted = (tabId: string, messageId: string, vote: string): void | undefined => {
this.sendMessageToExtension({
tabID: tabId,
messageId: messageId,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need messageId here?

@Randall-Jiang Randall-Jiang force-pushed the thumb-up-and-down branch 2 times, most recently from fac3471 to f1bb12c Compare February 12, 2025 19:49
@Randall-Jiang Randall-Jiang requested a review from rli February 12, 2025 23:46
@Randall-Jiang Randall-Jiang enabled auto-merge (squash) February 14, 2025 21:37
@rli
Copy link
Contributor

rli commented Feb 17, 2025

/retryBuilds

@rli rli disabled auto-merge February 18, 2025 02:09
@rli rli merged commit b72f78b into aws:main Feb 18, 2025
9 of 14 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.

3 participants