Clear iouReportID param in the report Onyx key after an IOU is successfully paid#16624
Conversation
|
@fedirjh @thienlnam One of you needs to 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] |
|
@fedirjh I don't think you'll be able to test this since this requires a gold/activated wallet. |
|
Friendly bump on reviews @Gonals @thienlnam 🙏🏼 |
thienlnam
left a comment
There was a problem hiding this comment.
Change looks good, but can't run through the checklist screenshots right now 😢
This is a pretty small change though so not too worried about it failing
|
I think @Gonals is going to be ooo for the rest of the week so tagging pullerbear again for review + tests 🙏🏼 |
|
@Santhosh-Sellavel @Julesssss One of you needs to 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] |
|
Gold/activated wallets aren't available for contributors so @Santhosh-Sellavel can't test this, unfortunately. |
Reviewer Checklist
Screenshots/VideosiOSAndroid |
|
@Julesssss Sorry, my simulators are broken right now - could you please test the ios / android native? I can complete the rest of the platforms |
|
Hey all, I'm sorry but I ran out of time today to test this on iOS/Android. This was one of 16 items on my 10am todo list and I didn't quite have time for everything 😞 It's still at the top of my list, but we have a 4 day bank holiday in the UK starting tomorrow. If you are happy to wait until Tuesday I can test both native Android and iOS. Hope that's not too annoying! |
|
No worries, @Julesssss! This feature is behind a beta so this bug shouldn't be affecting too many people right now. |
|
Okay, I'm back and trying to run through the steps. I get stuck here though, as I'm prompted to add additional details via Onfido as my silver wallet user. Is there a way to avoid this check? (userA has a gold wallet, userB has a silver wallet added via the cliTools add bank account script):
|
|
@Julesssss Oh, sorry, I think my instructions are a bit off, Account B should be the one with a Gold/Activated wallet 😅 I've updated the test steps to be more clear. |
There was a problem hiding this comment.
With @MariaHCD's help I was able to configure the wallet correctly. Unfortunately, the issue is still occuring for me on iOS, which is quite confusing... I can see Maria was successful, but even after a fresh install I'm seeing the error 😖
I'm also struggling to get Android to build on my new machine.
Screen.Recording.2023-04-11.at.15.25.52.mov
I have verified on all platforms except native and added the screenshots.
|
Finished configuring my Android emulator and I'm seeing the same issue. It seems odd that this only occurs on native :/ I see that Maria didn't have this problem originally... @thienlnam have you been able to configure iOS/Android in the meantime? It would be good to determine whether this is just an issue on my end or not. |
Screen.Recording.2023-04-11.at.5.27.05.PM.movSo I fixed my ios simulator.. but android is still borked. It seems to be working fine for me. I added the recording just so you can check that I'm doing it correctly |
|
I'm going to try one last time this morning after updating all repos. |
|
✋ 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/Gonals in version: 1.3.0-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.0-2 🚀
|







The IOU report ID is not cleared in Onyx after paying, so we try to add a IOU new request to the existing, closed report which results in a
400 Unique Constraints Violationon the backend. Let's clear the iouReportID in Onyx in the successData of PayMoneyRequestDetails
Fixed Issues
$ #16105
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
Prerequisites:
Account A: Account with either a silver/pending or a gold/activated wallet
Account B: Account with a gold/activated wallet
Offline tests
Requesting money when offline should create the IOU in the pending state:
QA Steps
Verify that requesting money from another account multiple times works as expected
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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-03-28.at.3.44.30.PM.mov
Mobile Web - Chrome
XRecorder_29032023_155013.mp4
Mobile Web - Safari
Screen.Recording.2023-03-29.at.3.27.20.PM.mov
Desktop
Screen.Recording.2023-03-28.at.3.53.46.PM.mov
iOS
Screen.Recording.2023-03-29.at.3.23.50.PM.mov
Android