Skip to content

refactor(amazonq): stateless Q client #5481

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

Merged
merged 16 commits into from
Mar 20, 2025
Merged

Conversation

Will-ShaoHua
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua commented Mar 18, 2025

#5383

Description

There is no need to store a client as a state within this class, AwsClientManager already handle the connection change

resolve comments #5290 (comment)

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.

@Will-ShaoHua Will-ShaoHua changed the title Revert Revert #5383 Mar 18, 2025
@Will-ShaoHua Will-ShaoHua changed the title Revert #5383 refactor(amazonq): stateless Q client Mar 18, 2025
@@ -114,7 +114,6 @@ class CodeWhispererSettingsTest : CodeWhispererTestBase() {
} ?: fail("CodeWhisperer status bar widget not found")

runInEdtAndWait {
assertThat(problemsWindow.contentManager.contentCount).isEqualTo(0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

seems to be flaky, sometimes it will be 1 with code scan sometimes not.

@Will-ShaoHua Will-ShaoHua marked this pull request as ready for review March 19, 2025 10:28
@Will-ShaoHua Will-ShaoHua requested a review from a team as a code owner March 19, 2025 10:28
@Will-ShaoHua
Copy link
Contributor Author

/retryBuilds

@Will-ShaoHua Will-ShaoHua requested a review from rli March 19, 2025 19:40
@Will-ShaoHua Will-ShaoHua enabled auto-merge (squash) March 20, 2025 23:00
@Will-ShaoHua Will-ShaoHua merged commit 48b30c0 into aws:main Mar 20, 2025
11 of 14 checks passed
@Will-ShaoHua Will-ShaoHua deleted the revert branch March 20, 2025 23:19
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