-
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
[C+ checklist needs completion] [$500] Web - User cannot edit the large amount after creating the distance #27255
Comments
Triggered auto assignment to @greg-schroeder ( |
Job added to Upwork: https://www.upwork.com/jobs/~0155a08bb4447cde17 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @johncschuster ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.User cannot edit large amounts after creating the distance. What is the root cause of that problem?There is a max length limit enforced on the input field in MoneyRequestAmountForm which prevents the ability to edit amounts greater than that limit. The current max length is 10 as defined in the app constants. Line 1059 in 2163c54
This is used in the App/src/libs/MoneyRequestUtils.js Line 61 in 2163c54
What changes do you think we should make in order to solve the problem?Solution 1 Solution 2 In this case, the maximum amount limit would be Alternatively, just use the Solution 3 What alternative solutions did you explore? (Optional)None. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - User cannot edit the large amount after creating the distance What is the root cause of that problem?We have a hard limit on the IOU request Amount which we're checking before updating. Here in this case even we're deleting the amount we're still checking limit which is causing the issue not to update the amount.
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)NA |
@greg-schroeder Are you able to find out what sort of BE validation of the amount length exists? Looks like Leaning towards @akinwale's solution 2 here, as it makes sense to me that we'd not want to allow users to create such large distance requests in the first place, unless there's a good reason for it that I'm missing! |
@jjcoffee I think restricting max amount for distance request require multiple changes. Also we have max distance limit & as well as limit on distance rate for workspace too. So I feel it's max distance is not thw way to go. |
@b4s36t4 The main issue as I see it is that we can now make bigger money requests by making a distance request vs. manual request, which is inconsistent and leads to us not being able to edit the amount. So either there's a reason for allowing that (which I can't think of!), or we haven't implemented the right validation to stop this from happening (i.e. prevent a distance request from being created if it exceeds the max amount). Feel free to make a case if you disagree though! |
@jjcoffee I am not positive - can you take that question to Slack to discuss with the greater team? |
I think yes there's a difference between the two features but as far as I understand the distance feature we can not restrict the user request based on the distance. At the same time we calculate amount based on the distance rate configured in the workspace which only a admin can do. Either way a user can request money by splitting distance but that would make the feature irrelevant. I feel at this instance we can only give the editing power to only admin if it's a distance request and it exceeded max length. Also it's not easy to restrict the distance request amount as I said it depends on two factors which might change at any instance which requires us reiterate the issue again. |
Leaning more towards this myself the more I think about it |
@greg-schroeder I've asked on Slack to feel out if there are any differences of opinion. |
@jjcoffee, @greg-schroeder Whoops! This issue is 2 days overdue. Let's get this updated quick! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.76-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 2023-10-10. 🎊 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: As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.77-7 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-10-12. 🎊 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: As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
processing |
Regression Test Proposal
Do we agree 👍 or 👎 |
@greg-schroeder Checklist complete! Also agree with @akinwale - the regression penalty isn't meant to be applied if the review checklist was completed properly (per the C+ process doc at least!). The other PR could also be argued to have caused the regression since it was merged later than our one 😄 |
@akinwale, @jjcoffee, @greg-schroeder, @aldo-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Okay I will review this either today or tomorrow |
Filed regression test |
@greg-schroeder Thanks - offer accepted! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The user should be able to edit the Amount
Actual Result:
User cannot edit the large amount after creating the distance
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.68.12
Reproducible in staging?: y
Reproducible in production?: y
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
Notes/Photos/Videos: Any additional supporting documentation
big-rate.webm
Recording.4411.mp4
Expensify/Expensify Issue URL:
Issue reported by: @hichamcc
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694207504466369
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: