Skip to content

Deduplicate AWS accounts by account ID in benchmark wizard#2121

Open
cezudas wants to merge 1 commit intomainfrom
cezudas/OPS-3839-v2
Open

Deduplicate AWS accounts by account ID in benchmark wizard#2121
cezudas wants to merge 1 commit intomainfrom
cezudas/OPS-3839-v2

Conversation

@cezudas
Copy link
Contributor

@cezudas cezudas commented Mar 13, 2026

Fixes OPS-3839.

Copilot AI review requested due to automatic review settings March 13, 2026 08:28
@linear
Copy link

linear bot commented Mar 13, 2026

@sonarqubecloud
Copy link

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes OPS-3839 by ensuring AWS accounts shown in the benchmark wizard are deduplicated by AWS account ID when resolving getConnectionAccounts.

Changes:

  • Deduplicate AWS connection roles by parsed accountId when building benchmark wizard options.
  • Add a unit test to verify duplicate account IDs only produce a single wizard option.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/server/api/src/app/benchmark/providers/aws/aws-option-resolver.ts Switches from a simple map over roles to a Map keyed by accountId to deduplicate returned account options.
packages/server/api/test/unit/benchmark/providers/aws/aws-option-resolver.test.ts Adds a unit test asserting duplicate roles for the same AWS account ID result in a single returned option.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

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