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
Expense - Amount and distance value are magnified by 1000 times in track distance expense #69256
👋 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.
From watching the video above, it appears like the problem is from the backend. The amounts are correct initially when viewing the transaction, but after a second, they update to be the wrong amounts.
I'm currently trying to reproduce the issue locally.
I cannot reproduce this locally, but I can reproduce it on staging. The amounts are not 1000 times off, it's something different... For example, with this request:
The API parameter for amount was 2107
The API response returned the transaction amount of -3391188
Oh, actually, from looking at the logs, it probably is front-end. It's not a problem with the amount, it's a problem with the distance. The distance between the two points I added was only maybe 15 miles, but the distance sent in the request was 48K miles.
Activity
melvin-bot commentedon Aug 26, 2025
Triggered auto assignment to @alexpensify (
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.melvin-bot commentedon Aug 26, 2025
Triggered auto assignment to @tgolen (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Aug 26, 2025
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Aug 26, 2025
👋 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:
tgolen commentedon Aug 26, 2025
@neil-marcellini @dominictb This seems very related to the PR for the manual distance functionality. Can you confirm if it is? #68402
tgolen commentedon Aug 26, 2025
From watching the video above, it appears like the problem is from the backend. The amounts are correct initially when viewing the transaction, but after a second, they update to be the wrong amounts.
I'm currently trying to reproduce the issue locally.
tgolen commentedon Aug 26, 2025
I cannot reproduce this locally, but I can reproduce it on staging. The amounts are not 1000 times off, it's something different... For example, with this request:
2107-3391188dominictb commentedon Aug 26, 2025
I knew the issue. Will raise PR ASAP.
tgolen commentedon Aug 26, 2025
Oh, actually, from looking at the logs, it probably is front-end. It's not a problem with the amount, it's a problem with the distance. The distance between the two points I added was only maybe 15 miles, but the distance sent in the request was 48K miles.
tgolen commentedon Aug 26, 2025
Thanks @dominictb !
dominictb commentedon Aug 26, 2025
Yeah that's correct. It's the
distanceparam. It should not be there for map distance requests.dominictb commentedon Aug 26, 2025
Fix is #69268 cc @tgolen @allroundexperts
melvin-bot commentedon Aug 26, 2025
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
melvin-bot commentedon Aug 26, 2025
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
tgolen commentedon Sep 2, 2025
Since the original PR that lead to this was reverted, I'm going to close this out.