-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix/24141: Add error handling to readFilyAsync #30832
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
Conversation
|
@robertKozik 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] |
|
@DylanDylann for iOS and Android we can test the success scenario, it's better to do this rather than leaving empty field for videos |
|
After refreshing on the user selection screen, it seems that you cannot proceed further. I've verified that this bug also exists in production. I'm wondering if it might be an easy fix that we can incorporate into this PR @DylanDylann. Screen.Recording.2023-11-05.at.21.05.59.mov |
|
@robertKozik After uploading the receipt, if we reload the page the browser will remove the uploaded file. So that we need to redirect to the upload screen after reloading page. We had a similar issue here and I think we should fix this bug on that issue |
|
@robertKozik Please help to check again. I will update android video asap |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.-.native.movAndroid: mWeb Chromeandroid.-.web.moviOS: Nativeios.-.native.moviOS: mWeb Safariios.-.web.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
@DylanDylann bump me when Android video will be ready |
|
@robertKozik I updated all video and merged lastest main |
|
@robertKozik Could you help to request review from internal team? So we can move forward this PR |
|
✋ 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/luacmartins in version: 1.3.98-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.98-5 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.99-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.99-0 🚀
|
Details
We added the ability to request money with a scanned receipt in #23770, but there's no error handling if we fail to read the file before sending the request
we can clean up the method by adding onSuccess and onFailure callback params to it and then just calling onFailure in the catch instead of resolving the promise. That also cleans up the need to have promise chaining in other files.
Fixed Issues
$ #24141
PROPOSAL: #24141 (comment)
Tests
Case Failure
Case Success
Offline tests
QA Steps
Case Failure
Case Success
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 */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)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
Web
Screen-Recording-2023-11-04-at-13.46.52.mp4
Mobile Web - Chrome
Screen-Recording-2023-11-04-at-14.17.39.mp4
Screen-Recording-2023-11-04-at-14.21.48.mp4
Mobile Web - Safari
Screen-Recording-2023-11-04-at-13.58.23.mp4
Desktop
I don't see anyway to test it
iOS
Screen-Recording-2023-11-06-at-14.14.14.mp4
Android
Screen.Recording.2023-11-06.at.19.37.39-compressed.mov