-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[PAID] [$250] [Violations] Distance - Incorrect error message when distance amount is changed to smaller amount #41401
Comments
Triggered auto assignment to @Julesssss ( |
Triggered auto assignment to @strepanier03 ( |
👋 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:
|
@strepanier03 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. |
We think this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect error message when distance amount is changed to smaller amount What is the root cause of that problem?The Line 2878 in 573d989
What changes do you think we should make in order to solve the problem?We will change the modifiedAmount violation to the OldDot style message: Line 2878 in 573d989
modifiedAmount: 'Expense amount differs from the calculated distance amount' we will also change |
Okay testing now, one sec. |
I'm unable to repro. Changing the amount to smaller or larger doesn't produce any error message as shown in the video. Will try a few more times to repro. |
I've lost the ability to edit the amount of the distance expense, not sure what changed but I'm stuck at the moment. I need to shift focus to some other testing so I'll circle back on this. |
Violations are still in beta and this is not breaking any functionality, I'm going to remove the blocker label. /cc @Krishna2323 @cead22, this sounds like it could potentially come from #37813 but I haven't double-checked. |
@francoisl, yes, you are correct, it's related to this PR. However, I believe this is probably a backend issue. The notice violations shouldn't be thrown when the request is of type 'distance.' @cead22 @JmillsExpensify, can you please confirm? |
I'm seeing the same. I think @Krishna2323 is right about the violation we're returning, but I haven't figured out what part of the code is wrong 🤔 |
Ok, the code is right and calculating a modifiedAmount violation for the distance expense, but
|
I can now edit the amount again but the error doesn't populate at all when making a change to the amount, whether its larger or smaller. |
This issue has not been updated in over 15 days. @cead22, @strepanier03, @sobitneupane, @Krishna2323 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Issue not reproducible during KI retests. (Third week) |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-07-24. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
Issue not reproducible during KI retests. (Fourth week) |
@Krishna2323 - I sent you an offer via Upwork, I'll keep an eye out for the acceptance notification to finish up. @sobitneupane - I'll check in later for the checklist and once it's done I'll post the payment summary. Thanks! |
Saw you accepted so I paid and closed the contract @Krishna2323, thanks! |
Payment Summary
BugZero Checklist (@strepanier03)
|
@sobitneupane - Gentle bump on the checklist when you get a chance. |
Not Required.
Not Required.
Yes.
|
Regression Test Proposal
Do we agree 👍 or 👎 |
Payment Summary
@JmillsExpensify - One payment request incoming. |
$250 approved for @sobitneupane |
Thanks all, closing now. |
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.69-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
The error message should correctly reflect the difference in the new amount.
It should follow Old Dot style where it shows "Expense amount differs from the calculated distance amount",
Actual Result:
When the distance amount is manually changed to the lower amount, the error message is "Amount greater than scanned receipt", which is generic and untrue.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6467703_1714556398274.20240501_173617.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @strepanier03The text was updated successfully, but these errors were encountered: