You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-09-29] [HOLD for payment 2023-09-27] IOU - RHP does not disappear after sending a request money #27724
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
On Requesting Money the page is navigating back to Manual Request page instead of report page.
What is the root cause of that problem?
Here in MoneyRequestConfirmPage.js the conditions
_.isEmpty(props.iou.participants)
props.iou.amount === 0 && !props.iou.receiptPath && !isDistanceRequest
are getting true which in turn is calling goBack() function which is navigating back to Manual Request page instead of report page.
changed the title [-] IOU - RHP does not disappear after sending a request money[/-][+][HOLD for payment 2023-09-27] IOU - RHP does not disappear after sending a request money[/+]on Sep 20, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-09-27. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@AndrewGable] The PR that introduced the bug has been identified. Link to the PR:
[@AndrewGable] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@AndrewGable] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@AndrewGable] Determine if we should create a regression test for this bug.
[@AndrewGable] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@laurenreidexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
changed the title [-][HOLD for payment 2023-09-27] IOU - RHP does not disappear after sending a request money[/-][+][HOLD for payment 2023-09-29] [HOLD for payment 2023-09-27] IOU - RHP does not disappear after sending a request money[/+]on Sep 22, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-09-29. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@AndrewGable] The PR that introduced the bug has been identified. Link to the PR:
[@AndrewGable] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@AndrewGable] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@AndrewGable] Determine if we should create a regression test for this bug.
[@AndrewGable] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@laurenreidexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Sep 18, 2023
Triggered auto assignment to @laurenreidexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 18, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)OSBotify commentedon Sep 18, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Sep 18, 2023
Auto-assign attempt failed, all eligible assignees are OOO.
jeet-dhandha commentedon Sep 19, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
_.isEmpty(props.iou.participants)props.iou.amount === 0 && !props.iou.receiptPath && !isDistanceRequestare getting true which in turn is calling goBack() function which is navigating back to Manual Request page instead of report page.
App/src/pages/iou/steps/MoneyRequestConfirmPage.js
Lines 105 to 107 in e23c181
What changes do you think we should make in order to solve the problem?
navigatingBackand set it true when we callrequestMoneyfunction.App/src/pages/iou/steps/MoneyRequestConfirmPage.js
Line 129 in e23c181
What alternative solutions did you explore? (Optional)
DylanDylann commentedon Sep 19, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
RHP does not disappear after sending a request money
What is the root cause of that problem?
Let's see here
App/src/libs/actions/IOU.js
Lines 650 to 652 in 5150f86
When requesting money, we clear the field on ONYX before dismissing the modal.
And in here
App/src/pages/iou/steps/MoneyRequestConfirmPage.js
Line 105 in 5150f86
Because we clear the field before dismissing the modal, this logic will be triggered. It causes wrong navigation.
What changes do you think we should make in order to solve the problem?
App/src/libs/actions/IOU.js
Lines 650 to 652 in 5150f86
In here, we should dismiss modal before clear iou field
App/src/pages/iou/steps/MoneyRequestConfirmPage.js
Line 105 in 5150f86
And in here we should check if modal.isVisible === false we will return that useEffect like that
What alternative solutions did you explore? (Optional)
DylanDylann commentedon Sep 19, 2023
@laurenreidexpensify This issue is blocking other issues that relate to IOU. Could you prioritize taking a look at this?
15 remaining items
AndrewGable commentedon Sep 20, 2023
The regression was introduced in #26854 and this was fixed by @aimane-chnaif in #27793
[-] IOU - RHP does not disappear after sending a request money[/-][+][HOLD for payment 2023-09-27] IOU - RHP does not disappear after sending a request money[/+]melvin-bot commentedon Sep 20, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Sep 20, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-09-27. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Sep 20, 2023
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[-][HOLD for payment 2023-09-27] IOU - RHP does not disappear after sending a request money[/-][+][HOLD for payment 2023-09-29] [HOLD for payment 2023-09-27] IOU - RHP does not disappear after sending a request money[/+]melvin-bot commentedon Sep 22, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-09-29. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Sep 22, 2023
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed: