-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: move migration validation out of onPersistComplete #13158
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
91727f1
to
0bd3016
Compare
|
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
The issue now seems to be that onPersistComplete is not only called after migrations run, they are called even for new users so we are seeing errors logged to sentry that do not pertain to existing users.
In this PR I hope to only run the migration validation after after we have completed all the migrations. This should only happen when a user updates the app.
Related issues
Fixes: #13144
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist