Skip to content

Make OAuth Import use the same build name as Import by Account Name - #10570

Open
AdamZ-8113 wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AdamZ-8113:fix/oauth-import-save-name
Open

AdamZ-8113 wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AdamZ-8113:fix/oauth-import-save-name

Conversation

@AdamZ-8113

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

When importing a character through OAuth, saving a new build doesn't suggest the account and character name like importing by account name does.

The existing naming function gets the account name from the account-name import field. That field may be empty or contain a different account during an OAuth import, so this change gets the authenticated account name from the OAuth profile first. Both import methods then use the same function to format the suggested name.

Steps taken to verify a working solution:

  • Ran the import and OAuth authentication test suites after the changes: 19 tests passed.
  • Checked token refresh, cached account names, logout, stale responses, malformed profiles, and account-name imports.
  • Ran the full test suite on the initial patch: 928 tests passed.
  • Manually verified that the import and save behavior works and is consistent between import types

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.

1 participant