Skip to content

Conversation

@opieter-aws
Copy link
Contributor

Problem

When ListRegionProfile call throttles for a subset of regions, we currently do not throw, but instead return the available profiles in the regions where the call succeeded. However, if that list is empty (no profiles in that region), we return an empty list. This breaks the UI, and causes a state that is not recoverable

Solution

Throw an error in the scenario where availableProfiles is empty. This triggers a retry state in the UI, making the state recoverable.


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.
  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

@opieter-aws opieter-aws marked this pull request as ready for review May 21, 2025 21:44
@opieter-aws opieter-aws requested a review from a team as a code owner May 21, 2025 21:44
@Hweinstock
Copy link
Contributor

Is this also present on prod?

@Will-ShaoHua
Copy link
Contributor

Is this also present on prod?

yea, it should.

@Hweinstock
Copy link
Contributor

yea, it should.

Should we target master then, or does that cause headaches with merge conflicts?

@opieter-aws opieter-aws changed the base branch from feature/flare-mega to master May 22, 2025 14:08
@opieter-aws opieter-aws requested review from a team as code owners May 22, 2025 14:08
@opieter-aws opieter-aws changed the base branch from master to feature/flare-mega May 22, 2025 14:08
@opieter-aws
Copy link
Contributor Author

yea, it should.

Should we target master then, or does that cause headaches with merge conflicts?

I can't update this PR (pulls in way too many commits), but I will merge this and then PR the same change to master

@opieter-aws opieter-aws merged commit 7983fc1 into aws:feature/flare-mega May 22, 2025
17 of 22 checks passed
@opieter-aws
Copy link
Contributor Author

PR to master: #7360

opieter-aws added a commit that referenced this pull request May 22, 2025
Duplicate PR of #7357 into
Flare branch

## Problem
When ListRegionProfile call throttles for a subset of regions, we
currently do not throw, but instead return the available profiles in the
regions where the call succeeded. However, if that list is empty (no
profiles in that region), we return an empty list. This breaks the UI,
and causes a state that is not recoverable

## Solution
Throw an error in the scenario where availableProfiles is empty. This
triggers a retry state in the UI, making the state recoverable.


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
tomcat323 pushed a commit to tomcat323/aws-toolkit-vscode that referenced this pull request May 30, 2025
## Problem
When ListRegionProfile call throttles for a subset of regions, we
currently do not throw, but instead return the available profiles in the
regions where the call succeeded. However, if that list is empty (no
profiles in that region), we return an empty list. This breaks the UI,
and causes a state that is not recoverable

## Solution
Throw an error in the scenario where availableProfiles is empty. This
triggers a retry state in the UI, making the state recoverable.

---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
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.

4 participants