Offline and errors pattern in Xero integration#45493
Offline and errors pattern in Xero integration#45493yuwenmemon merged 26 commits intoExpensify:mainfrom
Conversation
…ntegrations # Conflicts: # src/components/SelectionScreen.tsx
|
|
…ntegrations # Conflicts: # src/libs/PolicyUtils.ts
filip-solecki
left a comment
There was a problem hiding this comment.
LGTM, just fix failing lint
|
@ikevin127 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] |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.mp4Android: mWeb Chromeandroid-mweb.mp4iOS: Nativeios.mp4iOS: mWeb Safariios-mweb.mp4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
@war-in Found one issue with the offline pattern while testing, in short: if options are toggled with This only happens when we Here's the video: Screen.Recording.2024-07-23.at.18.mp4Other than this it looks good, I'll move on with the checklist. Please solve the conflicts when you get a change, thank you! |
|
Note ✅ Completed PR reviewer checklist. |
|
@ikevin127 thanks for noticing! I think the issue is with how we set the errors. In the Maybe we should just set |
|
@ikevin127 I wonder if we should merge this PR on its own or wait for other PRs (qbo, sage intacct and net suite) because changes in Maybe we should copy the mentioned function (with changes), use it in changed integrations and leave Please share your thoughts 🙏 |
…ntegrations # Conflicts: # src/libs/PolicyUtils.ts
ikevin127
left a comment
There was a problem hiding this comment.
@war-in Sorry for the delayed response (Pacific timezone). I noticed by your latest commit that you went with updating the updatePolicyConnectionConfig's function pendingFields to null.
Thereby I confirm that your latest changes fixes the issue mentioned in #45493 (comment), everything else LGTM 🚀
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #45406 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
cc @yuwenmemon |
|
@ikevin127 If you could please answer this question 🙏 |
@war-in I think it's safer to simply copy and change existing function since I notice that If you have more context on the usage of current Maybe @yuwenmemon can chime in here as well before we move forward with a final decision. |
@ikevin127 It's used in |
|
@ikevin127 I copied the function and left the old one untouched 👍 @yuwenmemon It's ready for an internal review 🚀 |
|
I'm fine with reconciling later across all integration to ensure consistency 👍 |
|
✋ 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/yuwenmemon in version: 9.0.13-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.13-4 🚀
|
Details
Fixed Issues
$ #45406 - partially fixes
PROPOSAL:
Tests
Test errors:
Simulate failing networkinTroubleshooting(you can setMAX_REQUEST_RETRIESto 0 to get errors faster).Settings->Workspaces-> your sage intacct workspace ->Accounting.Offline tests
Settings->Workspaces-> your xero workspace ->Accounting.QA Steps
Test errors:
Simulate failing networkinTroubleshooting(you can setMAX_REQUEST_RETRIESto 0 to get errors faster).Settings->Workspaces-> your sage intacct workspace ->Accounting.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.-.native.mov
Android: mWeb Chrome
andorid.-.web.mov
iOS: Native
iOS: mWeb Safari
ios.-.web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov