-
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-08-13] [$250] Split - App allows splitting when the sum of splits is not equal to the total amount #45199
Comments
Triggered auto assignment to @adelekennedy ( |
@adelekennedy 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 |
We think that this bug might be related to #vip-split |
ProposalPlease re-state the problem that we are trying to solve in this issue.App doesn't show the invalid sum error when navigating to the description or merchant then going back What is the root cause of that problem?
Screen.Recording.2024-07-19.at.9.58.55.AM.movWhat changes do you think we should make in order to solve the problem?we can remove the alternativelywe can keep the previous |
ProposalPlease re-state the problem that we are trying to solve in this issue.Split - App allows splitting when the sum of splits is not equal to the total amount What is the root cause of that problem?
Monosnap.screencast.2024-07-19.08-40-13.mp4
What changes do you think we should make in order to solve the problem?We can't remove
What alternative solutions did you explore? (Optional)When we update the rate the distance amount is recalculated in a App/src/components/MoneyRequestConfirmationList.tsx Lines 306 to 313 in 3a7dc0c
useEffect(() => {
if (!shouldCalculateDistanceAmount) {
return;
}
const amount = DistanceRequestUtils.getDistanceRequestAmount(distance, unit ?? CONST.CUSTOM_UNITS.DISTANCE_UNIT_MILES, rate ?? 0);
IOU.setMoneyRequestAmount(transactionID, amount, currency ?? '');
const decimals = CurrencyUtils.getCurrencyDecimals(iouCurrencyCode);
if (isDistanceRequest && !isDistanceRequestWithPendingRoute && !MoneyRequestUtils.validateAmount(String(amount), decimals)) {
setFormError('common.error.invalidAmount');
return;
}
setFormError('');
}, [shouldCalculateDistanceAmount, distance, rate, unit, transactionID, currency, isDistanceRequest, iouCurrencyCode, isDistanceRequestWithPendingRoute, setFormError]); |
@adelekennedy Huh... This is 4 days overdue. Who can take care of this? |
reproduced! |
Job added to Upwork: https://www.upwork.com/jobs/~01aa3c722d2bc20e70 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
@rayane-djouah two proposals to review above! |
@rayane-djouah, FYI, the proposal here was updated after I posted my proposal. Please make sure to check the edit history before selecting a proposal. Before my proposal it stated |
Reviewing now |
Thank you for the proposals, everyone, can you please explain in your RCA why the form error is cleared when saving merchant/description? having a solid RCA will help us make the right changes |
Thanks for the review @rayane-djouah, updated my proposal with another solution. |
@rayane-djouah, proposal updated to include more detailed RCA. Added an alternative solution also. |
Proposal updatedsame solution but updated the RCA |
@adelekennedy, @rayane-djouah Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Reviewing proposals |
@Krishna2323's proposal looks good to me 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @tylerkaraszewski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@tylerkaraszewski @adelekennedy @rayane-djouah @Krishna2323 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@rayane-djouah, PR ready for review ^ |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.16-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-08-13. 🎊 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:
|
Regression Test Proposal
Do we agree 👍 or 👎 |
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: 9.0.6-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4706187
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
App will not allow splitting when the sum of splits is not equal to the total amount
Actual Result:
App allows splitting when the sum of splits is not equal to the total amount after saving merchant or description.
This issue only issues after saving merchant or description
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6538142_1720631295192.20240711_010228.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @adelekennedyThe text was updated successfully, but these errors were encountered: