Skip to content

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Jun 16, 2025

In particular, if the legacy app's account list contains multiple entries with the same realm and user ID (though different emails), we'll drop all but the most-recently-used one because this app's accounts table keeps (realmUrl, userId) unique. With this change, we still drop the duplicates, but we catch the exception and proceed smoothly to the next account in the list.

Ideally these changes would be tested. We'll leave that as part of the followup issue #1593, which covers this whole file.

@gnprice gnprice added this to the M5a: Launch blockers milestone Jun 16, 2025
@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Jun 16, 2025
@chrisbobbe
Copy link
Collaborator

LGTM, thanks, please merge at will! 🚀

gnprice added 2 commits June 16, 2025 12:35
I believe the legacy app never actually leaves behind data that would
trigger this.  But if it does, avoid throwing an exception.
@gnprice gnprice merged commit 2209d03 into zulip:main Jun 16, 2025
1 check passed
@gnprice gnprice deleted the pr-legacy-db branch June 16, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants