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-07-22] [HOLD for payment 2024-07-17] [$250] Optimistic map missing when tracking distance expense #41653
Choose distance, enter waypoints, Next, Track Expense
Expected Result:
Expense appears optimistically showing a map, the amount, and the merchant with distance info. After the response the same thing should be shown, although the map is expected to be slightly different.
Actual Result:
Expense appears optimistically showing the amount and the merchant with distance info only, no map. After the response it displays correctly.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Please re-state the problem that we are trying to solve in this issue.
Report preview doesn't show distance merchant for tracked workspace expense
What is the root cause of that problem?
The description/merchant is only shown when numberOfRequests is 1 and buildOptimisticReportPreview returns 1 for childMoneyRequestCount, but when we get data from backend the childMoneyRequestCount is again set to 0.
The map shouldn't be shown optimistically instead ReceiptGeneric should be shown. This is also what we do when we create submit expense distance request but the ReceiptGeneric also isn't shown because we haven't included in optimistic transaction.
What changes do you think we should make in order to solve the problem?
We can check for number of transaction(allTransactions.length) instead of numberOfRequests (money request) to show/hide the merchant/description and for the receipt we need to pass optimisticReceipt instead of receiptObject when isDistanceRequest is true.
changed the title [-]Report preview doesn't show distance merchant for tracked workspace expense[/-][+][$250] Report preview doesn't show distance merchant for tracked workspace expense[/+]on May 6, 2024
changed the title [-][HOLD for payment 2024-07-17] [$250] Optimistic map missing when tracking distance expense[/-][+][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Optimistic map missing when tracking distance expense[/+]on Jul 15, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@neil-marcellini] The PR that introduced the bug has been identified. Link to the PR:
[@neil-marcellini] 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:
[@neil-marcellini] A discussion in #expensify-bugs 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:
[@neil-marcellini] Determine if we should create a regression test for this bug.
[@neil-marcellini] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@JmillsExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
Activity
melvin-bot commentedon May 5, 2024
Triggered auto assignment to @JmillsExpensify (
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 May 5, 2024
Current assignee @JmillsExpensify is eligible for the Bug assigner, not assigning anyone new.
Krishna2323 commentedon May 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Report preview doesn't show distance merchant for tracked workspace expense
What is the root cause of that problem?
The description/merchant is only shown when
numberOfRequestsis 1 andbuildOptimisticReportPreviewreturns 1 forchildMoneyRequestCount, but when we get data from backend thechildMoneyRequestCountis again set to 0.App/src/libs/ReportUtils.ts
Line 4074 in ab1e924
App/src/components/ReportActionItem/ReportPreview.tsx
Line 123 in ab1e924
App/src/components/ReportActionItem/ReportPreview.tsx
Line 142 in ab1e924
The map shouldn't be shown optimistically instead
ReceiptGenericshould be shown. This is also what we do when we create submit expense distance request but theReceiptGenericalso isn't shown because we haven't included in optimistic transaction.App/src/libs/actions/IOU.ts
Lines 2027 to 2044 in ab1e924
What changes do you think we should make in order to solve the problem?
We can check for number of transaction(
allTransactions.length) instead ofnumberOfRequests(money request) to show/hide the merchant/description and for the receipt we need to passoptimisticReceiptinstead ofreceiptObjectwhenisDistanceRequestis true.What alternative solutions did you explore? (Optional)
Result
report_preview_track_expense.mp4
[-]Report preview doesn't show distance merchant for tracked workspace expense[/-][+][$250] Report preview doesn't show distance merchant for tracked workspace expense[/+]melvin-bot commentedon May 6, 2024
Job added to Upwork: https://www.upwork.com/jobs/~017f6ca9bb1a7123b8
80 remaining items
[-][HOLD for payment 2024-07-17] [$250] Optimistic map missing when tracking distance expense[/-][+][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Optimistic map missing when tracking distance expense[/+]melvin-bot commentedon Jul 15, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-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-07-22. 🎊
melvin-bot commentedon Jul 15, 2024
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:
melvin-bot commentedon Jul 22, 2024
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
melvin-bot commentedon Jul 23, 2024
@JmillsExpensify, @neil-marcellini 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
melvin-bot commentedon Jul 30, 2024
@JmillsExpensify, @neil-marcellini 12 days overdue now... This issue's end is nigh!
melvin-bot commentedon Aug 1, 2024
This issue has not been updated in over 14 days. @JmillsExpensify, @neil-marcellini eroding to Weekly issue.
JmillsExpensify commentedon Aug 7, 2024
It looks like the PR was never C+ reviewed so I don't believe that any payment is due. Closing.