Assign false to the POLICY_HAS_CONNECTIONS_DATA_BEEN_FETCHED Onyx key when the fetching of connections data fails#40375
Conversation
|
@ 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] |
aldo-expensify
left a comment
There was a problem hiding this comment.
If I go online without changing the page, it stays loading forever and the request OpenPolicyAccountingPage is not sent. I have to go to another setting and come back to make it work:
Screen.Recording.2024-04-17.at.3.42.47.PM.mov
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
Should we change the API to |
I don't think so, this API command doesn't do any writing. |
|
@aldo-expensify, I double-checked and it works on my end 😄 @mollfpr, could you also test on your end to see if the issue exists or not? Screen.Recording.2024-04-18.at.10.32.24.AM.mov |
hmmmm maybe I didn't wait long enough for other requests in the queue to resolve? will test again |
|
Same result as @aldo-expensify Screen.Recording.2024-04-19.at.02.18.28.mp4I think we need to manually call again the API. We already do it here. The |
|
Maybe we will need to listen to the connection status in the HOC and if we came back offline and the connection data has not been fetched, we try again? |
yes, we can do that 👍 |
|
@mollfpr, could you test this again? |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 1.4.65-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.65-5 🚀
|
Details
Fixed Issues
-> Fix the bug found in this PR
PROPOSAL: N/A
Tests / Offline tests / QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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