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-11-06][$500] Web - Split bill - Enter key in Edit amount page directly creates split bill #29051
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
changed the title [-]Web - Split bill - Enter key in Edit amount page directly creates split bill[/-][+][$500] Web - Split bill - Enter key in Edit amount page directly creates split bill[/+]on Oct 7, 2023
I'm trying to reproduce the issue but I can't, it seems like when I get to the split bill action we have an exception in where we try to parse the participant login but is undefined
Please re-state the problem that we are trying to solve in this issue.
Pressing enter on the edit amount view when focused on the amount text field creates the split bills instead of going back to the confirmation page
What is the root cause of that problem?
The footer button on <MoneyRequestAmountForm> bubbles the enter event, causing a double action enter action, subsequently creating the bill when landing on the confirmation view.
By removing the allowBubble from the button we will prevent the event to happen twice
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.92-4 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-11-06. 🎊
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
For reference, here are some details about the assignees on this issue:
@eVoloshchakdoes not require payment (Eligible for Manual Requests)
@parasharrajatdoes not require payment (Eligible for Manual Requests)
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:
[@eVoloshchak / @parasharrajat] 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:
[@eVoloshchak / @parasharrajat] 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:
[@eVoloshchak / @parasharrajat] 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.
[@mallenexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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:
[@parasharrajat] 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: NA
[@parasharrajat] Determine if we should create a regression test for this bug. Yes
[@parasharrajat] 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.
Regression Test Steps
Web | Desktop
Open the app.
Click request money from FAB menu.
Select Manual Tab and enter some amount.
Press Enter key on keyboard, page should move to participant selection page.
Select a participant and continue.
Click on Amount section on the confirm page.
Change amount and press Enter on keyboard.
Observe that you are navigated back to Confirm page.
Press Enter and observe that the request is submitted.
changed the title [-][HOLD for payment 2023-11-06] [HOLD Possible regression #28022][$500] Web - Split bill - Enter key in Edit amount page directly creates split bill[/-][+][HOLD for payment 2023-11-06][$500] Web - Split bill - Enter key in Edit amount page directly creates split bill[/+]on Oct 30, 2023
K, thanks! Closing (since I'm assuming, since this is a regression, any regression tests would be created as part of the original issue, comment if ya disagree).
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]Web - Split bill - Enter key in Edit amount page directly creates split bill[/-][+][$500] Web - Split bill - Enter key in Edit amount page directly creates split bill[/+]melvin-bot commentedon Oct 7, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01f4cfb0b4e5279620
melvin-bot commentedon Oct 7, 2023
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 7, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Oct 7, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (
External)zzarcon commentedon Oct 7, 2023
I'm trying to reproduce the issue but I can't, it seems like when I get to the split bill action we have an exception in where we try to parse the participant login but is undefined
split_bill.mov
I believe we need to first fix this issue?
paultsimura commentedon Oct 7, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
When editing the amount on the request confirmation page, hitting
Entersubmits the request instead of just updating the amount.What is the root cause of that problem?
The reason for this is that when we are editing the amount, we have 2 buttons with
pressOnEnter:App/src/pages/iou/steps/MoneyRequestAmountForm.js
Lines 284 to 292 in e448a7e
App/src/components/MoneyRequestConfirmationList.js
Lines 436 to 443 in dd46584
Since we explicitly allow bubbling on the button in
MoneyRequestAmountForm, these 2 buttons are pressed on hittingEnterat once.What changes do you think we should make in order to solve the problem?
We need to make the
allowBubbleconditional and disable it when in editing mode:<Button success - allowBubble + allowBubble={!isEditing} pressOnEnter medium={isExtraSmallScreenHeight} style={[styles.w100, canUseTouchScreen ? styles.mt5 : styles.mt2]} onPress={submitAndNavigateToNextPage} text={buttonText} />Result:
split-editing-web.mov
What alternative solutions did you explore? (Optional)
zzarcon commentedon Oct 7, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Pressing enter on the edit amount view when focused on the amount text field creates the split bills instead of going back to the confirmation page
What is the root cause of that problem?
The footer button on
<MoneyRequestAmountForm>bubbles the enter event, causing a double action enter action, subsequently creating the bill when landing on the confirmation view.By removing the
allowBubblefrom the button we will prevent the event to happen twicemaxconnectAbhi commentedon Oct 7, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Pressing enter on the edit amount view when focused on the amount text field creates the split bills instead of going back to the confirmation page
What is the root cause of that problem?
The footer button on
<MoneyRequestAmountForm>bubbles the enter event, causing a double action on enter action.App/src/pages/iou/steps/MoneyRequestAmountForm.js
Lines 284 to 292 in e448a7e
What changes do you think we should make in order to solve the problem?
We need to remove the allowBubble from the button.
What alternative solutions did you explore? (Optional)
NA
40 remaining items
melvin-bot commentedon Oct 30, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.92-4 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-11-06. 🎊
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.
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 30, 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:
parasharrajat commentedon Oct 30, 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:
Regression Test Steps
Web | Desktop
Do you agree 👍 or 👎 ?
parasharrajat commentedon Oct 30, 2023
@mallenexpensify Please remove [HOLD Possible regression https://github.com//issues/28022] from the title.
[-][HOLD for payment 2023-11-06] [HOLD Possible regression #28022][$500] Web - Split bill - Enter key in Edit amount page directly creates split bill[/-][+][HOLD for payment 2023-11-06][$500] Web - Split bill - Enter key in Edit amount page directly creates split bill[/+]mallenexpensify commentedon Nov 8, 2023
Is compensation due here? Wasn't sure because it looks like this was related to a regression.
parasharrajat commentedon Nov 8, 2023
Yeah, No compensation on this.
mallenexpensify commentedon Nov 8, 2023
And... lastly(?) @eVoloshchak, are you owed any compensation?
eVoloshchak commentedon Nov 8, 2023
No compensation for me either, this issue is just a regression from another PR
mallenexpensify commentedon Nov 9, 2023
K, thanks! Closing (since I'm assuming, since this is a regression, any regression tests would be created as part of the original issue, comment if ya disagree).