-
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-06-20] [HOLD for payment 2024-06-18] [HOLD for payment 2024-06-11] [HOLD for payment 2024-06-06] Distance rates - Default rate input is 0 instead of actual amount for newly created WS #42780
Comments
Triggered auto assignment to @francoisl ( |
Triggered auto assignment to @JmillsExpensify ( |
👋 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:
|
@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
I can still reproduce on the latest version of main. I think the root cause was PR #42426, reverting it locally fixes the issue for me locally. cc @bernhardoj @ikevin127 if you're around and can think of a fix, otherwise I've got a draft revert PR above ^ |
@francoisl If this is a blocker that needs to be handled asap then I'd suggest the revert since the code changes of the PR are minimal, then @bernhardoj won't be time constrained to re-work the solution. Otherwise I'd wait for their input and possible follow-up fix. |
Sounds good, revert PR is in review. If it helps, I narrowed the issue a little more, it's now coming from App/src/libs/MoneyRequestUtils.ts Lines 48 to 50 in 02b0c5e
because for values with 3 decimals like I guess the solution is to change that regex to allow decimal values, but I'll let you guys double-check. |
Fixed in the version 77-3 Screen_Recording_20240530_034428_New.Expensify.1.mp4 |
@francoisl correctly pointed out the root cause, it's the old regex here. App/src/libs/MoneyRequestUtils.ts Lines 48 to 50 in f6aa6c2
The calculation that we did is already correct, but the regex above matches the decimal separator (.) because 0.655 is 65.5 cents which still contains a dot. The regex above is added in this PR to prevent NaN, Infinity, and number with scientific notation (1+e26). So, I updated the regex to be more specific. A new PR is here |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.78-5 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-06-11. 🎊 |
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:
|
The final fix for this was just merged. This was for a regression that was originally handled internally, and then the author and C+ from the initial PR fixed it, so I believe no payment is required. |
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-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 2024-06-18. 🎊 |
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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-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 2024-06-20. 🎊 |
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:
|
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO. |
@JmillsExpensify, @francoisl Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Checklist already completed above and no payments required, closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.77-0
Reproducible in staging?: y
Reproducible in production?: n
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: Applause internal team
Slack conversation:
Action Performed:
Expected Result:
The rate amount input will display the actual amount (production behavior).
Actual Result:
The rate amount input displays 0 instead of the actual amount.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6495253_1716998312348.20240529_235104.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: