-
Notifications
You must be signed in to change notification settings - Fork 275
fix(amazonq): fix for /test authentication check #5355
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
| import software.aws.toolkits.jetbrains.services.amazonqCodeTest.storage.ChatSessionStorage | ||
| import software.aws.toolkits.jetbrains.services.cwc.messages.ChatMessageType | ||
| import software.aws.toolkits.jetbrains.services.cwc.messages.FollowUp | ||
| import software.aws.toolkits.resources.message |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
|
|
||
| suspend fun sendChatInputEnabledMessage(isEnabled: Boolean) { | ||
| if (isInvalidSession()) return | ||
| messagePublisher.publish(ChatInputEnabledMessage(activeCodeTestTabId as String, enabled = isEnabled)) |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
| tabId = tabId, | ||
| messageId = messageId ?: UUID.randomUUID().toString(), | ||
| messageType = ChatMessageType.Answer, | ||
| message = message("amazonqFeatureDev.follow_instructions_for_authentication"), |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
...oftware/aws/toolkits/jetbrains/services/amazonqCodeTest/controller/CodeTestChatController.kt
Show resolved
Hide resolved
laileni-aws
left a comment
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.
LGTM
* Correcting auth checks for /test workflow
Types of changes
Description
Q Test Generation is seeing quite a few job failures due to unauthorized API calls to service. Q Test workflow's existing checks are for older version of Q. Updated the auth checks to re-authenticate in chat like other features.
Testing: tested with credential state set to Re-Auth to check the re-prompt to browser re-auth.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.