Skip to content

Rules - "Merchant" rule created on workspace, is applied on track expense on Self DM. #81135

Closed

Description

@jponikarchuk

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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: #80853
Email or phone of affected tester (no customers): ibellicotest+2250@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Motorola MotoG60 / Android 12 (Hybrid app) - Windows 11 / Chrome
App Component: Money Requests

Action Performed:

Prerequisite: Account has at least one workspace.
Prerequisite 2: Rules enabled.
Prerequisite 3: Account has Self DM.

  1. Open the staging.new.expensify.com website,
  2. Navigate to "Workspaces" and open workspace editor.
  3. Click on "Rules" > "Add merchant rule"
  4. On "For expenses with", add any merchant name.
  5. On "Apply these updates", add any category and any description.
  6. Save the created rule.
  7. Create a manual expense with the merchant name used for the rule and submit it to Self DM.
  8. Open the just created expense.
  9. Note that rule is applied for the expense, despite not being submitted to the workspace where rule was created,

Expected Result:

Merchant rules should only be applied on expenses submitted to the workspace where rule was created.

Actual Result:

Merchant rules created on specific workspace are also applied on track expenses submitted to Self DM.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @luacmartins

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    DeployBlockerIndicates it should block deploying the API
    on Feb 2, 2026
  2. melvin-bot commented on Feb 2, 2026

    @melvin-bot

    Triggered auto assignment to @joekaufmanexpensify (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.

  3. luacmartins commented on Feb 2, 2026

    @luacmartins
    Contributor

    Feature is not available in prod. NAB. I'm working on this

  4. luacmartins commented on Feb 2, 2026

    @luacmartins
    Contributor

    We're passing the active policy when tracking expenses, which causes the BE to apply the rules for the given active policy. I'm not sure why we do that, so I'll investigate that next.

  5. added
    ReviewingHas a PR in review
    and removed on Feb 2, 2026
  6. luacmartins commented on Feb 2, 2026

    @luacmartins
    Contributor

    PR in review

  7. luacmartins commented on Feb 3, 2026

    @luacmartins
    Contributor

    PR merged, we can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.ReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions