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
[High] [$250] Travel - Trip preview display 0 amount until open trip expenses #55754
Version Number: v9.0.89-5 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:#55264 Email or phone of affected tester (no customers): - Issue reported by: Applause Internal Team Device used: Windows 11 / Chrome App Component: Chat Report View
Action Performed:
Precondition: trip is created (any type: flight/car rent/hotel)
Open workspace chat
Click Trip preview
Pay elsewhere trip expense
Go to Settings > Troubleshoot
Clear cache and restart
Open workspace chat
Expected Result:
Trip expense preview displays correct amount
Actual Result:
Trip expense preview displays 0 amount
NOTE: user has to click View Trip, open paid expenses and go back to parent ws chat to see correct amount.
changed the title [-]Travel - Trip preview display 0 amount until open trip expenses[/-][+][$250] Travel - Trip preview display 0 amount until open trip expenses[/+]on Jan 27, 2025
Ok, this is an interesting one! Here's what I found:
When we load reportActions for a report, Auth also returns the transactions of the linked report of each REPORTPREVIEW action so that the App can build the UI for report preview
For the TRIPPREVIEW, Auth should also return the transactions of all expense reports linked to that trip room since the reservation information is stored in the transaction receipt
So, I think that loading all linked reports with their transactions for each TRIPPREVIEW action might be an overkill and we need to think about a more performant solution. One rough idea would be to add the tripID to the receipt with the reservationList and to the TRIPPREVIEW actions and match by that instead of loading all the linked reports 🤷♂
I'll do more investigation tomorrow with a fresh brain.
One rough idea would be to add the tripID to the receipt with the reservationList and to the TRIPPREVIEW actions and match by that instead of loading all the linked reports 🤷♂
@stitesExpensify, do you know whether the tripID might change for a receipt/transaction? If it can change, then I think it might be a pain in the ass to keep it up to date in all clients with Onyx updates 🤔
I chatted with @rlinoz about this issue and we think it is not an overkill to load the linked reports together with the transactions for the TRIPPREVIEW actions because:
we already load all transactions for REPORTPREVIEW actions which at first glance might also seem an overkill
we load the reportActions paginated in chunks of 50
@stitesExpensify, do you know whether the tripID might change for a receipt/transaction? If it can change, then I think it might be a pain in the ass to keep it up to date in all clients with Onyx updates 🤔
I don't see anything in the UI, maybe support agents can do that though?
changed the title [-][$250] Travel - Trip preview display 0 amount until open trip expenses[/-][+][High] [$250] Travel - Trip preview display 0 amount until open trip expenses[/+]on Jan 30, 2025
Activity
melvin-bot commentedon Jan 24, 2025
Triggered auto assignment to @isabelastisser (
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.shubham1206agra commentedon Jan 24, 2025
@cristipaval Pinging you here since last time you fixed this issue.
[-]Travel - Trip preview display 0 amount until open trip expenses[/-][+][$250] Travel - Trip preview display 0 amount until open trip expenses[/+]melvin-bot commentedon Jan 27, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021883933166442762799
melvin-bot commentedon Jan 27, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (
External)3 remaining items
cristipaval commentedon Jan 29, 2025
Ok, this is an interesting one! Here's what I found:
REPORTPREVIEWaction so that the App can build the UI for report previewTRIPPREVIEW, Auth should also return the transactions of all expense reports linked to that trip room since the reservation information is stored in the transaction receiptTRIPPREVIEW.So, I think that loading all linked reports with their transactions for each
TRIPPREVIEWaction might be an overkill and we need to think about a more performant solution. One rough idea would be to add thetripIDto the receipt with thereservationListand to theTRIPPREVIEWactions and match by that instead of loading all the linked reports 🤷♂I'll do more investigation tomorrow with a fresh brain.
cristipaval commentedon Jan 29, 2025
@stitesExpensify, do you know whether the
tripIDmight change for a receipt/transaction? If it can change, then I think it might be a pain in the ass to keep it up to date in all clients with Onyx updates 🤔cristipaval commentedon Jan 30, 2025
I chatted with @rlinoz about this issue and we think it is not an overkill to load the linked reports together with the transactions for the
TRIPPREVIEWactions because:REPORTPREVIEWactions which at first glance might also seem an overkillstitesExpensify commentedon Jan 30, 2025
I don't see anything in the UI, maybe support agents can do that though?
cristipaval commentedon Jan 30, 2025
@stitesExpensify , I added this issue to the Travel project board. Feel free to remove/change the priority if what I set is wrong
[-][$250] Travel - Trip preview display 0 amount until open trip expenses[/-][+][High] [$250] Travel - Trip preview display 0 amount until open trip expenses[/+]cristipaval commentedon Feb 12, 2025
This is in prod