Skip to content

[Due for payment 2026-11-02] Rules - Disabled vendor is shown in vendor list when creating rule #104891

Open

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.20-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: #103549
Email or phone of affected tester (no customers): sjodinjoisdjoisjio@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Workspace Settings

Action Performed:

Precondition:

  • Connect to Sage Intacct.
  • Enable Rules.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Vendors.
  3. Disable any vendor.
  4. Go to workspace settings > Rules.
  5. Click Add rule.
  6. Click Apply expense defaults > Merchant.
  7. Click Vendor.

Expected Result:

The disabled vendor will not appear in vendor list when creating rule (similar to disabled category and tag).

Actual Result:

The disabled vendor is shown in vendor list when creating rule (similar to disabled category and tag).

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7294615_1792776164819.6.1.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7294615

Issue OwnerCurrent Issue Owner: @Pujan92

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 23, 2026
  2. applause-bot commented on Oct 23, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/96185fef512f3900f16b42a4aa05748b3369335f0223a1f1341b7cbe9a0fd481

  3. melvin-bot commented on Oct 23, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #103549

  4. melvin-bot commented on Oct 23, 2026

    @melvin-bot

    @Beamanator @Pujan92 you have been assigned to this deploy blocker because you reviewed the offending PR: #103549

  5. melvin-bot commented on Oct 23, 2026

    @melvin-bot

    @ShridharGoel you have been assigned to this deploy blocker because you authored the offending PR: #103549

  6. melvin-bot commented on Oct 23, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  7. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  8. MelvinBot commented on Oct 23, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Cause: Add imported vendor enable and disable controls added a per-vendor enabled flag. It updated the expense vendor picker to hide disabled vendors, but not the vendor picker in Rules. The Rules picker still lists every vendor from the accounting connection.

    Recommendation: Fix forward instead of reverting. The fix is a few lines. A revert would remove the whole vendor enable/disable feature.

    Confidence: High. This is a gap in a new feature, not a regression. Production has no way to disable a vendor.

    Investigation details

    Where the list is built

    How the other pickers handle it

    Same gap in CSV import

    Suggested fix

    1. In AddVendorPage.tsx, read policyVendors with useOnyx(\${ONYXKEYS.COLLECTION.POLICY_VENDORS}${policyID}`)`.
    2. Pass it into getVendorSelectionItems. Keep a vendor when vendor.id === form?.vendorID || policyVendors?.[vendor.id]?.enabled !== false. This matches AddTagPage and keeps the vendor already on the rule.
    3. Optionally call openPolicyVendorsPage(policyID) when policyVendors is undefined, as IOURequestStepVendor does.
    4. Apply the same filter in buildImportedVendorLookup.
    5. Update the existing unit tests for getVendorSelectionItems.

    This assumes the connection vendor id matches the externalID key in policyVendors. The offending PR relies on the same assumption in its violation check.


    Next Steps: ShridharGoel, you're assigned as the PR author. Please raise a follow-up fix. Reply with @MelvinBot implement this if you'd like me to draft the PR.


    view run

  9. Beamanator commented on Oct 26, 2026

    @Beamanator
    Contributor

    PR merged, CPing

  10. added and removed
    DeployBlockerCashThis issue or pull request should block deployment
    on Oct 26, 2026
  11. Beamanator commented on Oct 26, 2026

    @Beamanator
    Contributor

    looking nice and fixed by #104895! WIll leave this open till it gets to prod & regression period is done

  12. changed the title [-]Rules - Disabled vendor is shown in vendor list when creating rule[/-] [+][Due for payment 2026-11-02] Rules - Disabled vendor is shown in vendor list when creating rule[/+] on Oct 26, 2026
  13. melvin-bot commented on Oct 26, 2026

    @melvin-bot

    @Pujan92

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.20-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-11-02. 🎊

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

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.DailyKSv2Engineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions