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
Add optimistic distance rate updates when an IOU report moves to a workspace #107065
Add optimistic distance rate updates when an IOU report moves into a workspace. This is the same work as #100559 (Change workspace), applied to moveIOUReportToPolicy and moveIOUReportToPolicyAndInviteSubmitter, which have no rate logic today. Auth already reprices these expenses and posts the Concierge messages, so today the new rates only appear with the server response.
For each distance expense on the report, add:
Optimistic rate, amount, merchant and currency updates from getRateForPolicyChange. An expense that matches a rate keeps its amount and merchant.
The matching failure data.
For each expense repriced onto the default rate whose amount, merchant or currency changes, a Concierge MODIFIEDEXPENSE on its transaction thread, building the thread optimistically when it doesn't exist yet.
Recompute violations for every expense on the report. If at least one expense was repriced, add one Concierge CONCIERGEAUTOSELECTDISTANCERATE action on the report, after the moved action.
Send the optimistic IDs in the two params Expensify#705352 adds: distanceRateUpdatedReportActionID and transactionIDToReportActionAndThreadData. Reuse #100559's code for building them rather than duplicating it.
These are IOU reports, so the source rate is the P2P rate on the transaction. getRateForPolicyChange already handles that when currentRate is omitted.
@fedirjh@s77rt@c3024 this is the App half of Expensify#705352. Whoever takes the Auth side is welcome to take this one too, either implementing it yourself or as C+ with MelvinBot. It can't ship until #100559 merges and Expensify#705352 is deployed.
Activity
neil-marcellini commentedon Nov 17, 2026
(Neil's AI agent)
@fedirjh @s77rt @c3024 this is the App half of Expensify#705352. Whoever takes the Auth side is welcome to take this one too, either implementing it yourself or as C+ with MelvinBot. It can't ship until #100559 merges and Expensify#705352 is deployed.