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
[$250] Distance- Expense preview and report header show the old rate when rate is updated in settings #83972
Version Number: 9.3.28-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#74967 Email or phone of affected tester (no customers):isodjnosidjiojiojiso@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Enable Distance rates.
Go to staging.new.expensify.com
Go to self DM.
Create a manual distance expense.
Go to workspace settings > Distance rates.
Edit the distance rate used in Step 3 to another rate.
Go back to self DM.
Open the distance expense.
Expected Result:
Expense preview and report header will show the updated rate (similar to workspace distance expense).
Actual Result:
Expense preview and report header show the old rate, while Rate field shows the updated rate.
👋 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.
Classification: Frontend bug Causing PR: #74967 - "Fix - [Unreported] Add distance rate to the distance expenses tracked in selfDM" by @FitseTLT (High confidence) Related Issues: None
Recommendation: REVERT
PR #74967 introduced a regression where updated distance rates from workspace settings are not reflected in the expense preview and report header for track expenses in self DM. The PR attempted to fix rate handling for unreported track expenses but incompletely updated all the places where rates are displayed.
Labels: Will remove DeployBlockerCash label as this is reproducible in staging only (not in production), and the issue states "Reproducible in production?: N/A - new feature, doesn't exist in prod"
📋 Detailed Analysis
Evidence
PR #74967 was merged on 2026-02-28 and is included in the current staging deploy (9.3.28-0). The issue was reported on 2026-03-03 and explicitly linked to this PR by the bot. The bug only affects the new feature introduced by this PR (distance rates for track expenses in self DM).
Root Cause
The PR modified DistanceRequestUtils.getRate() to accept a new parameter policyForMovingExpenses to properly resolve rates for unreported track expenses. The PR updated MoneyRequestConfirmationList.tsx to pass this parameter:
Since policyForMovingExpenses is not passed here, when the rate is updated in workspace settings, the function cannot find the updated rate and returns undefined. This triggers the fallback logic (lines 426-428) that calculates the rate from transaction data, showing the old rate.
Verification
The affected file is src/components/ReportActionItem/MoneyRequestView.tsx (modified by the PR)
The PR changes to DistanceRequestUtils.getRate() added the policyForMovingExpenses parameter
The PR updated the confirmation screen but not the details view
The Rate field itself (IOURequestStepDistanceRate.tsx) properly shows the updated rate because it reads directly from the policy settings
@cristipaval@parasharrajat@FitseTLT@dylanexpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
Activity
melvin-bot commentedon Mar 3, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #74967
melvin-bot commentedon Mar 3, 2026
💬 A slack conversation has been started in #expensify-open-source
melvin-bot commentedon Mar 3, 2026
Triggered auto assignment to @johncschuster (
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.github-actions commentedon Mar 3, 2026
👋 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:
OSBotify commentedon Mar 3, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #74967 - "Fix - [Unreported] Add distance rate to the distance expenses tracked in selfDM" by @FitseTLT (High confidence)
Related Issues: None
Recommendation: REVERT
PR #74967 introduced a regression where updated distance rates from workspace settings are not reflected in the expense preview and report header for track expenses in self DM. The PR attempted to fix rate handling for unreported track expenses but incompletely updated all the places where rates are displayed.
Labels: Will remove DeployBlockerCash label as this is reproducible in staging only (not in production), and the issue states "Reproducible in production?: N/A - new feature, doesn't exist in prod"
📋 Detailed Analysis
Evidence
PR #74967 was merged on 2026-02-28 and is included in the current staging deploy (9.3.28-0). The issue was reported on 2026-03-03 and explicitly linked to this PR by the bot. The bug only affects the new feature introduced by this PR (distance rates for track expenses in self DM).
Root Cause
The PR modified
DistanceRequestUtils.getRate()to accept a new parameterpolicyForMovingExpensesto properly resolve rates for unreported track expenses. The PR updatedMoneyRequestConfirmationList.tsxto pass this parameter:However, the PR failed to update
MoneyRequestView.tsx(line 420), which displays the rate in the expense details view:Since
policyForMovingExpensesis not passed here, when the rate is updated in workspace settings, the function cannot find the updated rate and returnsundefined. This triggers the fallback logic (lines 426-428) that calculates the rate from transaction data, showing the old rate.Verification
src/components/ReportActionItem/MoneyRequestView.tsx(modified by the PR)DistanceRequestUtils.getRate()added thepolicyForMovingExpensesparameter34 remaining items
melvin-bot commentedon Mar 17, 2026
@cristipaval @parasharrajat @FitseTLT @dylanexpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
melvin-bot commentedon Mar 31, 2026
@cristipaval @parasharrajat @FitseTLT @dylanexpensify this issue is now 4 weeks old, please consider:
Thanks!
cristipaval commentedon Apr 1, 2026
Hmm.. I missed this one. I'll do my best to work on it this week.
melvin-bot commentedon Apr 2, 2026
This issue has not been updated in over 15 days. @cristipaval, @parasharrajat, @FitseTLT, @dylanexpensify eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
cristipaval commentedon Apr 20, 2026
This is a very rare use case, and it is fine because when the user reports it or submits it to someone, it correctly updates on the confirmation page.