-
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
[HOLD for payment 2025-02-05] [$250] Web - Distance - Create a distance to a user display an error message #55258
Comments
Triggered auto assignment to @mallenexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When creating a distance and submit to an individual user it displays an error message What is the root cause of that problem?We have CONST.IOU.AMOUNT_MAX_LENGTH = 8 With long distances and small currency values the amount here will have more than 8 digits and we get an error App/src/components/MoneyRequestConfirmationList.tsx Lines 790 to 793 in 7b9e55e
App/src/libs/MoneyRequestUtils.ts Line 47 in 7b9e55e
What changes do you think we should make in order to solve the problem?We should pass amount max length for case isDistanceRequest is 10
App/src/components/MoneyRequestConfirmationList.tsx Lines 790 to 793 in 7b9e55e
We have this PR to fix changing amount max length from 10 to 8 because with amount having more than 10 digits, manual request will fail in BE side. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)NA Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
|
@nkdengineer could you elaborate if the bump of mapbox caused this issue? |
this does not seem related but maybe they just found it as they tested the flow more. This is is not marked as deploy blocker so probably not |
It was linked in my PR: #55220, that's why I'm asking. Thanks for info! |
@WoLewicki It seems unrelated to your PR, this issue is about us setting |
Job added to Upwork: https://www.upwork.com/jobs/~021879503209059502176 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
@mallenexpensify, @mountiny, @c3024 Eep! 4 days overdue now. Issues have feelings too... |
@nkdengineer 's proposal LGTM!. Backend does not seem to throw any error for any number of digits for the amount for distance requests. We can match the limit existing on backend on frontend too. If there is no limit on backend we can omit validating for the number of digits on frontend too for distance requests. 🎀 👀 🎀 C+ reviewed! |
Current assignee @mountiny is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.90-6 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 2025-02-05. 🎊 For reference, here are some details about the assignees on this issue:
|
@c3024 @mallenexpensify @c3024 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:
Do we agree 👍 or 👎 |
Contributor: @nkdengineer paid $250 via Upwork Test case created Thx! |
$250 approved for @c3024 |
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: v9.0.85-4
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: #55220
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 11 / Chrome
App Component: Chat Report View
Action Performed:
Expected Result:
The web should allow the user to create the distance expense normally
Actual Result:
When creating a distance and submit to an individual user it displays an error message
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6714487_1736919221563.Invalid_amount_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @mallenexpensifyThe text was updated successfully, but these errors were encountered: