You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] [P2P Distance] Split - Incorrect amount & distance behavior when changing distance on confirm page offline #47048
Version Number: v9.0.18-1 Reproducible in staging?: Y Reproducible in production?: N Email or phone of affected tester (no customers):applausetester+kh050806@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Go to staging.new.expensify.com
Go to group chat.
Click + > Split expense > Distance.
Enter waypoints > Next.
On confirmation page, go offline.
Click Distance.
Change distance by swapping position and save it.
Expected Result:
Amount field will be empty.
Distance field will change to Pending.
Split input will be 0.00.
Actual Result:
Amount, Distance and split inputs change to a very big value.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
The distance, amount, and individual split share changes to a very big value.
What is the root cause of that problem?
From the expected result, the 1st (Amount field will be empty) and 2nd problem (Distance field will change to Pending) is the same root cause as #46952 and is currently being handled in #46964.
For the 3rd problem (Split input will be 0.00), even after we fix the 1st and 2nd, the split amount still won't be 0 when the distance amount is 0 because we only update the individual split amount if the distance amount (amount) is truth (> 0).
However, I notice that when we create the split distance while offline with the pending distance, the request will always fail and also, the participant is only the current user because we don't include participants with 0 split amount.
// To exclude someone from a split, the amount can be 0. The scenario for this is when creating a split from a group chat, we have remove the option to deselect users to exclude them.
// We can input '0' next to someone we want to exclude.
if(splitAmount===0){
return;
}
I tried to always include the participant even when the amount is 0, but it still fails.
Maybe we can disable the confirmation button if the distance amount is 0.
@neil-marcellini How do I get location working? I already gave access.
That's odd, might be a separate bug. Try reloading the page, signing out and back in, etc. If you still have trouble you can start looking into the MapView and how it's loaded, how the token is fetched.
I just tried and found out that GetMapboxAccessToken is failing because we removed the token and haven't sent an action required email yet. I explained the solution here.
Activity
melvin-bot commentedon Aug 8, 2024
Triggered auto assignment to @Julesssss (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Aug 8, 2024
Triggered auto assignment to @greg-schroeder (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.IuliiaHerets commentedon Aug 8, 2024
We think that this bug might be related to #vip-split
github-actions commentedon Aug 8, 2024
👋 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:
bernhardoj commentedon Aug 8, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The distance, amount, and individual split share changes to a very big value.
What is the root cause of that problem?
From the expected result, the 1st (Amount field will be empty) and 2nd problem (Distance field will change to Pending) is the same root cause as #46952 and is currently being handled in #46964.
For the 3rd problem (Split input will be 0.00), even after we fix the 1st and 2nd, the split amount still won't be 0 when the distance amount is 0 because we only update the individual split amount if the distance amount (
amount) is truth (> 0).App/src/components/MoneyRequestConfirmationList.tsx
Lines 345 to 348 in 9c7c4a1
What changes do you think we should make in order to solve the problem?
If we want to update the individual split amount to 0 when the distance amount is 0, then we need to remove the
amountcheck here.App/src/components/MoneyRequestConfirmationList.tsx
Lines 345 to 348 in 9c7c4a1
However, I notice that when we create the split distance while offline with the pending distance, the request will always fail and also, the participant is only the current user because we don't include participants with 0 split amount.
App/src/libs/actions/IOU.ts
Line 4053 in 9c7c4a1
App/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Lines 342 to 352 in 9c7c4a1
App/src/libs/actions/IOU.ts
Lines 4062 to 4066 in 9c7c4a1
I tried to always include the participant even when the amount is 0, but it still fails.
Maybe we can disable the confirmation button if the distance amount is 0.
Julesssss commentedon Aug 8, 2024
Not treating this as a blocker. While annoying it should be rare and has an obvious workaround.
62 remaining items
neil-marcellini commentedon Sep 19, 2024
That's odd, might be a separate bug. Try reloading the page, signing out and back in, etc. If you still have trouble you can start looking into the MapView and how it's loaded, how the token is fetched.
I just tried and found out that GetMapboxAccessToken is failing because we removed the token and haven't sent an action required email yet. I explained the solution here.
melvin-bot commentedon Sep 24, 2024
@carlosmiceli, @greg-schroeder, @fedirjh Huh... This is 4 days overdue. Who can take care of this?
carlosmiceli commentedon Sep 25, 2024
Was OOO, will try to work on it this week after I deal with some backlog.
greg-schroeder commentedon Sep 27, 2024
Okay Thanks @carlosmiceli!
carlosmiceli commentedon Sep 30, 2024
Got carried away with wrapping homepage phase 2 issues, should be able to start this week 🙏
greg-schroeder commentedon Oct 1, 2024
Closing as #vip-split is now closed/archived/paused - let me know if you disagree @carlosmiceli
context: https://expensify.slack.com/archives/C05RECHFBEW/p1727723167802139