Skip to content

Conversation

@opieter-aws
Copy link
Contributor

Merge feature/flare-mega branch so the latest version is available for testing Flare preprod


  • 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.

aws-toolkit-automation and others added 3 commits May 22, 2025 21:43
## Problem
The cached/persisted Q Developer Profile selection is stored as a map of
`{connectionID: RegionProfile}`, where `connectionID` is a `randomUUID`.
When migrating to Flare auth, we move away from the concept of a
connectionID, and we do not have access to the latest ID of a user. The
result is that we cannot restore the user's last selected region
profile, and always need users who update versions to make a profile
selection.

## Solution
To handle this more gracefully, we will:
* Use regionProfile if matching auth profile name (existing logic)
* If no match, check if there is only a single RegionProfile stored in
lastUsed. If so, use that one
* If no match, and multiple RegionProfiles are stored in lastUsed cache,
make user select

Unit tests added

---

- 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.
…nections (#7363)

## Problem
Auth migration to LSP is not handled gracefully when a user downgrades
and upgrades to auth on LSP multiple times, causing users to be logged
out if they upgrade a second time

## Solution
In the auth migration script, call the LSP identity server to check if a
token is available. If the token is available, don't migrate the auth
connection. If no token is available, migrate.

Added unit tests for the case.

---

- 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.
@opieter-aws opieter-aws marked this pull request as ready for review May 23, 2025 14:05
@opieter-aws opieter-aws requested review from a team as code owners May 23, 2025 14:05
@github-actions
Copy link

  • 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 merged commit 7498ed2 into feature/flare-mega-LSP-gamma May 23, 2025
27 of 39 checks passed
@opieter-aws opieter-aws deleted the feature/flare-mega branch May 23, 2025 15:20
@opieter-aws opieter-aws restored the feature/flare-mega branch May 23, 2025 15:20
@nkomonen-amazon nkomonen-amazon deleted the feature/flare-mega branch May 23, 2025 15:36
@opieter-aws opieter-aws restored the feature/flare-mega branch May 23, 2025 17:36
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