Repository navigation
[TESTING ONLY] Pin react-native-onyx to Onyx #881 (keep writes made during Onyx.clear) on 3.0.117 - #105110
Draft
elirangoshen wants to merge 2 commits into
Draft
[TESTING ONLY] Pin react-native-onyx to Onyx #881 (keep writes made during Onyx.clear) on 3.0.117#105110elirangoshen wants to merge 2 commits into
elirangoshen wants to merge 2 commits into
Conversation
Contributor
|
|
42 tasks done
This branch has not been deployed
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.
Explanation of Change
[TESTING ONLY, do not merge]
Some users get stuck on infinite skeletons after switching accounts in a browser that is already signed in to NewDot (Supportal, OldDot transition, or re-auth). The logging added in #104456 confirmed the cause in production: the sign-out
Onyx.clearfinishes after the new sign-in has started, and when it finishes it resetssessionand the request queue. In 32 of 34 logged cases the new login token was wiped, so every request after that got a 407; in others the queuedOpenAppwas dropped.The fix is in Onyx:
Onyx.clearno longer overwrites keys that were written while it was running. Companion Onyx PR: Expensify/react-native-onyx#881This PR only changes the Onyx version. No App code changes.
Onyx version:
react-native-onyxis pinned tocallstack-internal/react-native-onyx#b5f84a4a, which is the #881 fix applied on top of 3.0.117, the version App ships today. This way CI tests only the fix. The fix itself targets Onyx main; pinning App to it would also pull in 3.0.118 to 3.0.123, which need the asyncOnyx.getmigration (#102135) andreact-native-nitro-sqlite10. App gets the fix through the regular Onyx bump once #881 is released.Fixed Issues
$ #104458
PROPOSAL: N/A
Automated Tests
Covered in the Onyx PR by
tests/unit/onyxClearConcurrentWriteTest.ts, which writes keys while a clear is running and checks they keep their new value in subscribers, the cache and storage.Tests
[SignInRedirect] Sign-out clear finished after a new sign-in startedwithisNewSessionWiped: true.Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari