-
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
Fix/30848: Reset hasOutstandingChildRequest to false after paying money #30918
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
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