mirror of
https://codeberg.org/secana/Forji.git
synced 2026-06-16 05:13:55 -07:00
## Summary This changes the multi-instance fallback map to key bootstrapped connections by account instead of server URL only. Previously, `connect(instances:)` built a dictionary keyed only by `instance.serverURL`. If two accounts used the same Forgejo instance, `Dictionary(uniqueKeysWithValues:)` could trap on duplicate keys, and fallback lookup could also reuse the wrong account for a failed restore. ## Changes - Add an account key based on normalized server URL + username. - Use that key for bootstrapped connection fallback in `MultiInstanceManager`. - Add a regression test covering two token-auth accounts on the same server URL. ## Verification - `git diff --check` passes. - I could not run `xcodebuild` locally because the available Xcode install has not accepted the license on this machine (`xcodebuild` exits before build/test execution). Co-authored-by: Piotr Durlej <pdurlej@users.noreply.github.com> Reviewed-on: https://codeberg.org/secana/Forji/pulls/29 Reviewed-by: secana <secana@noreply.codeberg.org> |
||
|---|---|---|
| .. | ||
| Forji | ||
| Forji.xcodeproj | ||
| ForjiTests | ||
| ForjiUITests | ||
| Info.plist | ||
| PrivacyInfo.xcprivacy | ||