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
Rules - "Apply to existing unsubmitted expenses" does not apply rules to existing expenses #81091
Version Number: 9.3.11-17 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:#80851 Email or phone of affected tester (no customers):dojnsijsonijdisjnsj@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.1 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Rules are enabled.
Go to staging.new.expensify.com
Go to workspace chat.
Create an expense with Apple as merchant.
Go to workspace settings > Rules.
Click Add merchant rule.
Click Merchant in "For expenses with:" > enter Apple > click Save.
Click Merchant in "Apply these updates:" > enter Banana.
Enable "Apply to existing unsubmitted expenses"
Click Add merchant rule.
Open the expense created in Step 3.
Expected Result:
Merchant will change to Banana as "Apply to existing unsubmitted expenses" is enabled in Step 8.
Actual Result:
Merchant does not change to Banana after enabling "Apply to existing unsubmitted expenses" in Step 8.
👋 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: Backend bug Causing PR: #80851 - "Allow admins to apply rule changes to existing unsubmitted expenses" by @luacmartins (High confidence) Related Issues: #80525
Recommendation: NEEDS INVESTIGATION (Backend)
The frontend implementation is correct and properly sends the shouldUpdateMatchingTransactions parameter to the API. However, the backend is not processing this parameter to actually update matching transactions. This requires investigation and a fix in the backend repository (Web-Expensify).
Labels: Removing DeployBlockerCash and keeping DeployBlocker since this is a backend issue that requires a backend fix.
📋 Detailed Analysis
Evidence
PR #80851 added the "Apply to existing unsubmitted expenses" toggle to the merchant rule form. The PR was merged on 2026-01-29 and is included in the current staging deploy (9.3.11-17).
The issue is reproducible on staging but not in production (N/A - new feature). This confirms the bug was introduced by this PR.
Verification
Frontend Implementation (Correct):
src/pages/workspace/rules/MerchantRules/MerchantRulePageBase.tsx - Implements the toggle UI (lines 368-375)
The toggle state (shouldUpdateMatchingTransactions) is correctly passed to setPolicyCodingRule() function (line 196)
src/libs/actions/Policy/Rules.ts - The setPolicyCodingRule() function correctly passes the parameter to the API (line 213)
src/libs/API/parameters/SetPolicyCodingRuleParams.ts - Parameter is properly defined in the API types
Backend Implementation (Incorrect):
The API command SetPolicyCodingRule receives the shouldUpdateMatchingTransactions parameter but does not apply the rule to existing unsubmitted expenses.
Root Cause
The frontend sends the correct parameter to the backend API:
Activity
melvin-bot commentedon Jan 31, 2026
@JS00001 recently merged #80851, but they are OOO right now, so I'll auto-assign someone else.
melvin-bot commentedon Jan 31, 2026
Triggered auto assignment to @brianlee-expensify (
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 Jan 31, 2026
Triggered auto assignment to @stitesExpensify (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Jan 31, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jan 31, 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 Jan 31, 2026
🔍 Investigation Summary
Classification: Backend bug
Causing PR: #80851 - "Allow admins to apply rule changes to existing unsubmitted expenses" by @luacmartins (High confidence)
Related Issues: #80525
Recommendation: NEEDS INVESTIGATION (Backend)
The frontend implementation is correct and properly sends the
shouldUpdateMatchingTransactionsparameter to the API. However, the backend is not processing this parameter to actually update matching transactions. This requires investigation and a fix in the backend repository (Web-Expensify).Labels: Removing
DeployBlockerCashand keepingDeployBlockersince this is a backend issue that requires a backend fix.📋 Detailed Analysis
Evidence
PR #80851 added the "Apply to existing unsubmitted expenses" toggle to the merchant rule form. The PR was merged on 2026-01-29 and is included in the current staging deploy (9.3.11-17).
The issue is reproducible on staging but not in production (N/A - new feature). This confirms the bug was introduced by this PR.
Verification
Frontend Implementation (Correct):
src/pages/workspace/rules/MerchantRules/MerchantRulePageBase.tsx- Implements the toggle UI (lines 368-375)shouldUpdateMatchingTransactions) is correctly passed tosetPolicyCodingRule()function (line 196)src/libs/actions/Policy/Rules.ts- ThesetPolicyCodingRule()function correctly passes the parameter to the API (line 213)src/libs/API/parameters/SetPolicyCodingRuleParams.ts- Parameter is properly defined in the API typesBackend Implementation (Incorrect):
The API command
SetPolicyCodingRulereceives theshouldUpdateMatchingTransactionsparameter but does not apply the rule to existing unsubmitted expenses.Root Cause
The frontend sends the correct parameter to the backend API:
However, the backend
SetPolicyCodingRuleAPI command is not implementing the logic to:This is purely a backend implementation gap. The App repository code is working as designed.
cc @luacmartins @brianlee-expensify @stitesExpensify
JS00001 commentedon Feb 2, 2026
Feature is on a beta, and the BE is not deployed for this feature yet