-
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
[HOLD for payment 2024-11-14] [$250] Splitting 9000 with 4 users, the confirmation page incorrectly displays the participant amounts as 0. #51800
Comments
Triggered auto assignment to @sonialiap ( |
Triggered auto assignment to @marcochavezf ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Unable to edit What is the root cause of that problem?It comes from #51202 The amount regex doesn't accept commas character
App/src/libs/MoneyRequestUtils.ts Lines 43 to 47 in 7216310
What changes do you think we should make in order to solve the problem?We should update this function with another param, if
App/src/libs/MoneyRequestUtils.ts Lines 43 to 47 in 7216310
Update this line to pass
After that we can pass
What alternative solutions did you explore? (Optional) |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
Hmm this is starting to get a little bit complicated as what the user can input vs what the BE consider valid are two different things e.g.
All the above are valid numbers and can be entered by the user but only the first is accepted in the BE |
I haven't been able to reproduce it on the web; seems it's only happening on Android. So I don't think this should block the deploy, but it should be fixed.
But why is it working on other platforms? Given it's still in the regression period, can you fix it @s77rt? |
Job added to Upwork: https://www.upwork.com/jobs/~021852081957595400665 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
When we send the value to BE we will send the correct amount. In other cases, the formatted amount is only used to display. Since editing the amount with commas seems complex, when we focus on the amount input we can change the text input to the value amount and only change it to the formatted amount text after we blur the text input. |
I'm working on it. The bug does not happen on web because the regex prop only is only available in native (it was added on native to prevent some flickering) |
I spent some time on this. I can't seem to find an easy solution because the comma position for groups is not predetermined e.g. if the input is 1,90|0.00 (| is the cursor) and you press delete the value would be 1,90.00 which is not a valid amount but it's a valid intermediate state. An option to fix this is to have 2 regex but I found this will pretty much re-introduce the original bug #47875. For that reason I think it's best to revert the PR |
@mkzie2 The value is displayed 0 even before focus |
We still need to update the regex to accept commas but use the idea above to edit the amount with commas. |
@mkzie2 I think that would fix that bug but I faced another problem since now you can paste Screen.Recording.2024-11-01.at.3.58.04.PM.mov |
ahh this one is trickyy |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.58-2 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 2024-11-14. 🎊 For reference, here are some details about the assignees on this issue:
|
@rushatgabhane @sonialiap The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.56-0.
Reproducible in staging?: y
Reproducible in production?: n
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Only in stand alone, Hybrid is not updated yet
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @rayane-djouah
Slack conversation (hyperlinked to channel name): https://expensify.slack.com/archives/C049HHMV9SM/p1730291114159429
Action Performed:
Expected Result:
Should be 2250
Actual Result:
Showing as 0
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
381488319-be8b5291-471a-4fae-8a25-37aba3074166.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sonialiapThe text was updated successfully, but these errors were encountered: