-
Notifications
You must be signed in to change notification settings - Fork 273
telemetry(amazonq) add feedback functionality with thumbs up/down #5336
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
91c3689 to
65fae8c
Compare
...oftware/aws/toolkits/jetbrains/services/amazonqCodeTest/controller/CodeTestChatController.kt
Fixed
Show fixed
Hide fixed
package-lock.json
Outdated
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.
?
| userComment = message.comment.orEmpty(), | ||
| reason = message.selectedOption, | ||
| type = "testgen-chat-answer-feedback", | ||
| messageId = "" |
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.
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\"" } |
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.
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, |
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.
I do not think we need messageId
b2a8559 to
fac3471
Compare
| interactionType = InteractionType.Upvote, | ||
| credentialStartUrl = getStartUrl(project = context.project), | ||
| amazonqConversationId = session.startTestGenerationRequestId | ||
|
|
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.
nit: extra line
| onChatItemVoted = (tabId: string, messageId: string, vote: string): void | undefined => { | ||
| this.sendMessageToExtension({ | ||
| tabID: tabId, | ||
| messageId: messageId, |
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.
Do we need messageId here?
...oftware/aws/toolkits/jetbrains/services/amazonqCodeTest/controller/CodeTestChatController.kt
Fixed
Show fixed
Hide fixed
...ns-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/CodeTestChatApp.kt
Fixed
Show fixed
Hide fixed
fac3471 to
f1bb12c
Compare
bd617be to
b222313
Compare
|
/retryBuilds |
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.
THUMB
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.