Reintroduce receipt recovery skipping distance requests#32562
Conversation
|
@0xmiroslav 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] |
|
Hey @0xmiroslav if you haven't got the capacity to review this, can you please speak up so we can find another volunteer? Thanks! |
|
I can do quick review if needed |
|
@situchan go ahead. thanks |
|
Perfect, assigned you @situchan. Thanks! |
|
@Gonals please merge main as 1.7k commits are behind |
Done |
|
@situchan bump! |
|
It's strange. |
Maybe just some backend downtime? 🤷 |
No, it already happened optimistically (before api call) |
Huh. Weird. |
|
@situchan, bump! |
|
I am trying to reproduce #31834 in the case of split distance request which is not handled in this PR. But the error doesn't come from backend so not able to test. split.distance.mov |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb ChromeiOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb-manual.movweb-scan.movweb-split-manual.movweb-split-scan.movMacOS: Desktopdesktop.mov |
situchan
left a comment
There was a problem hiding this comment.
Approving in case above issues are out of scope
|
@NikkiWines 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] |
Yep. I don't think they are related |
|
✋ 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/NikkiWines in version: 1.4.22-0 🚀
|
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 1.4.22-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.22-6 🚀
|



Details
Fixed Issues
$ #28884
PROPOSAL:
Tests
Open a chat in NewDot and click
+->Request Money->Scanand upload a file that will fail in the backend. This corrupt file works:CORRUPT.pdf
Open the Money Request report chat. After a second or two, the request should fail and you should see this message:
Click on it and confirm you can download the file (Note that. refreshing or closing the app will make the file unavailable)
Go offline.
Create a Distance Money request through > + > Request money > Distance.
Enter vague addresses - SF for Start and LA for Finish point.
Create the Distance expense.
Go online.
Confirm the error is not the receipt-related one:
Offline tests
No changes
QA Steps
Same as tests
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)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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