chore(auth): merge old profiles - #303
Draft
Cedric / ViaDézo1er (viadezo1er) wants to merge 2 commits into
Draft
Conversation
Cedric / ViaDézo1er (viadezo1er)
force-pushed
the
cedric/merge-old-profiles-after-migration
branch
from
August 13, 2026 01:56
63acca6 to
9818217
Compare
Cedric / ViaDézo1er (viadezo1er)
force-pushed
the
cedric/merge-old-profiles-after-migration
branch
from
August 13, 2026 02:00
9818217 to
d6db3dc
Compare
Contributor
|
Latest downloadable build artifacts for this PR commit
Available artifact names
|
Join multiple `--profile` names instead of discarding them, uniquify the synthesized target, and only strand a merge when the target has no credential
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bt <= 0.15.1 often has create multiple profiles for the same OAuth login to use different orgs.
It's not the case anymore since 0.16.0
However the profiles are not merged together, and their default names are names of org, which can be confusing since profiles and orgs are decoupled now.
So first, merge the profiles that share app/api url, username and user email.
Second, rename the profiles.
When the profiles don't have the org name, they keep the specific name.
eg:
profile name/org name
a a
b b
z c
x d
If they all share api/app url and user name/email, a and b have the same names for profiles and org so their names will be dumped and the merged profile name will be z-x since the profiles z and x have a specific name.
Updating the profile names is however an issue for local
config.jsoncreated in 0.16.0, since they store the profile name.bt <= 0.15.1 does not.
Is it an issue to break the local config created in 0.16.0?
Also this migration code could probably be deleted one day when it's safe to assume (almost) everyone has migrated.