[CP Stg] Don't skip successData or failureData even if OnyxData from server is up-to-date#34006
Conversation
|
@stitesExpensify Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
stitesExpensify
left a comment
There was a problem hiding this comment.
Code makes sense to me, looks like Reassure Performance Tests / perf-tests (pull_request) is failing though
|
Reassure has been super slow and flaky recently, going to just retry and see if it works Edit: We disabled some tests on main, so I merged main and am retrying without the disabled tests. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Stg] Don't skip successData or failureData even if OnyxData from server is up-to-date (cherry picked from commit 1752b97)
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 1.4.22-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.22-6 🚀
|
Details
#33666 appears to have caused a regression where
successDataandfailureDataare not always correctly applied. For me it was very easy to reproduce this problem by just refreshing the page, looking atisLoadingReportDatain Onyx, and seeing that it was stuck astrue, and not set tofalseas you would expect from thesuccessDataandfailureDataforReconnectApp.Fixed Issues
$ n/a – fresh issue I ran into on main during local development. It causes some bugs, such as the LHN not reordering when it should (I guess because there's some performance optimization logic to pause reordering when we're fetching new data)
Tests
isLoadingReportDatais set to true whenReconnectAppfirst processes, then is set back tofalseafter the command completes.Offline tests
n/a
QA Steps
Same as test steps. Basically just:
Application->IndexedDB->OnyxDB->keyvaluepairs, search forisLoadingReportData, and verify that it'sfalse. Hit the refresh button in the dev console if needed.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.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
MacOS: Desktop