Fix/30848: Reset hasOutstandingChildRequest to false after paying money#30918
Fix/30848: Reset hasOutstandingChildRequest to false after paying money#30918puneetlath merged 3 commits intoExpensify:mainfrom
Conversation
|
@cubuspl42 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 pay case tests well. Let's also fix delete case Screen.Recording.2023-11-06.at.8.05.24.PM.mov |
|
Ah interesting. This is the case where the creator is also the approver/payer? So they have the GBR but are also able to delete the request? |
Workspace owner request money and pays himself |
|
@DylanDylann are you able to add that in this PR? |
|
I am working on it |
|
@aimane-chnaif I updated to fix the deleted case Screen-Recording-2023-11-07-at-02.26.46.mp4 |
|
@puneetlath is this known bug? After request money, report disappears from LHN until refresh Screen.Recording.2023-11-06.at.8.34.43.PM.mov |
|
Oh weird. No that is not known as far as I know. I'll file it. |
|
Though I'm not able to reproduce it on staging so I'll test again after we merge this PR. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safariweb-pay.movweb-delete.movMacOS: DesktopThe fix is not platform dependent so web test should be enough |
|
Thanks for the thorough testing. I'll see what I can reproduce. |
Fix/30848: Reset hasOutstandingChildRequest to false after paying money (cherry picked from commit 32cd39c)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 1.3.95-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.95-9 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|

Details
We need to reset hasOutstandingChildRequest to false after paying money
Fixed Issues
$ #30848
PROPOSAL: #30848 (comment)
Tests
Offline tests
same above
QA Steps
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
Android: Native
Screen.Recording.2023-11-07.at.01.10.04-compressed.mov
Android: mWeb Chrome
Screen.Recording.2023-11-07.at.01.08.28-compressed.1.mov
iOS: Native
Screen.Recording.2023-11-07.at.01.15.31-compressed.mov
iOS: mWeb Safari
Screen.Recording.2023-11-07.at.01.13.40-compressed.mov
MacOS: Chrome / Safari
Screen-Recording-2023-11-07-at-00.24.35.mp4
MacOS: Desktop
Screen-Recording-2023-11-07-at-00.30.43.mp4