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
[HOLD for payment 2024-11-14] [$250] Track distance - Distance and Rate show “Pending” when tracking via Just track it route #51679
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.0.55-2 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):applausetester+kh1610015@applause.expensifail.com Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Account has no expense
Go to staging.new.expensify.com
Go to Search
Click Create expense
Go to Distance
Enter waypoints > Next
Click Just track it
Expected Result:
Distance and Rate will show the correct distance and rate when tracking via Just track it route
Actual Result:
Distance and Rate show “Pending” when tracking via Just track it route
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Standalone
Android: HybridApp
Android: mWeb Chrome
iOS: Standalone
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6649481_1730217378679.20241029_235412.mp4
@greg-schroeder 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
changed the title [-]Track distance - Distance and Rate show “Pending” when tracking via Just track it route[/-][+][$250] Track distance - Distance and Rate show “Pending” when tracking via Just track it route[/+]on Oct 29, 2024
@nkdengineer Thanks for the proposal. Your RCA makes sense. Do you know at what stage we set the comment.customUnit.customUnitRateID when using the FAB Track Expense option?
changed the title [-][$250] Track distance - Distance and Rate show “Pending” when tracking via Just track it route[/-][+][HOLD for payment 2024-11-14] [$250] Track distance - Distance and Rate show “Pending” when tracking via Just track it route[/+]on Nov 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.58-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@s77rt@greg-schroeder 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]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: n/a
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Account has no expenses
Test:
Go to Search > Expenses
Click Create expense
Choose Distance and select waypoints then click on Next
Click Just track it
Verify that all the fields display the correct values and none is "Pending"
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Oct 29, 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.lanitochka17 commentedon Oct 29, 2024
@greg-schroeder 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
nkdengineer commentedon Oct 29, 2024
Edited by proposal-police: This proposal was edited at 2024-10-29 18:55:18 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Distance and Rate show “Pending” when tracking via Just track it route
What is the root cause of that problem?
When we click on
Just track it, we don't set thecustomUnitRateIDas we do hereApp/src/pages/iou/request/step/IOURequestStepParticipants.tsx
Line 164 in 9f92c5e
Then the
mileageRatein the confirmation page here isundefinedbased on this logicWhich causes
isDistanceRequestWithPendingRouteistrueApp/src/components/MoneyRequestConfirmationList.tsx
Line 290 in 9f92c5e
and
waypointspendingField is added asaddwhich makesPending...is displayed for distance and rate fieldApp/src/components/MoneyRequestConfirmationList.tsx
Lines 664 to 678 in 9f92c5e
What changes do you think we should make in order to solve the problem?
We should update the
customUnitRateIDwhen we click onJust track itbutton here. Optionally, we can only do it if the request is distance request.App/src/pages/iou/request/step/IOURequestStepParticipants.tsx
Line 164 in 9f92c5e
OPTIONAL: We can also update the
reportIDof the draft transaction toselfDMReportIDWhat alternative solutions did you explore? (Optional)
We can do this logic inside
setMoneyRequestParticipantsFromReportfunction[-]Track distance - Distance and Rate show “Pending” when tracking via Just track it route[/-][+][$250] Track distance - Distance and Rate show “Pending” when tracking via Just track it route[/+]melvin-bot commentedon Oct 29, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021851378732093417344
melvin-bot commentedon Oct 29, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (
External)s77rt commentedon Oct 30, 2024
@nkdengineer Thanks for the proposal. Your RCA makes sense. Do you know at what stage we set the
comment.customUnit.customUnitRateIDwhen using the FAB Track Expense option?nkdengineer commentedon Oct 30, 2024
@s77rt When using FAB Track expense the
customUnitRateIDis updated here.App/src/libs/actions/IOU.ts
Lines 352 to 354 in a4c8de6
s77rt commentedon Oct 30, 2024
@nkdengineer Got it! Thanks! The proposed solution looks good to me.
🎀 👀 🎀 C+ reviewed
Link to proposal
16 remaining items
[-][$250] Track distance - Distance and Rate show “Pending” when tracking via Just track it route[/-][+][HOLD for payment 2024-11-14] [$250] Track distance - Distance and Rate show “Pending” when tracking via Just track it route[/+]melvin-bot commentedon Nov 7, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.58-2 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-11-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Nov 7, 2024
@s77rt @greg-schroeder 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]
s77rt commentedon Nov 10, 2024
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: [A/B Testing - Create Expense] Implement Create Expense Flow under hidden Beta #49007 (comment)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: n/a
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
greg-schroeder commentedon Nov 11, 2024
Thanks @s77rt! Looks like we're set to go for 11/14
s77rt commentedon Nov 11, 2024
@greg-schroeder I think you still need to create a GH issue for the testrail test
greg-schroeder commentedon Nov 12, 2024
Yeah of course. I'll file it after I pay this on 11/14
greg-schroeder commentedon Nov 15, 2024
Payment summary:
Contributor: @nkdengineer - $250 - Upwork
C+: @s77rt - $250 - NewDot manual request
JmillsExpensify commentedon Nov 18, 2024
$250 approved for @s77rt