-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Offline and errors pattern in Xero integration #45493
Offline and errors pattern in Xero integration #45493
Conversation
…ntegrations # Conflicts: # src/components/SelectionScreen.tsx
|
…ntegrations # Conflicts: # src/libs/PolicyUtils.ts
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, 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
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.
@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 network
inTroubleshooting
(you can setMAX_REQUEST_RETRIES
to 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 network
inTroubleshooting
(you can setMAX_REQUEST_RETRIES
to 0 to get errors faster).Settings
->Workspaces
-> your sage intacct workspace ->Accounting
.PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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