Skip to content

Rules - Unable to apply multi level tags via command #103932

Closed

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.8-3
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: #99624
Email or phone of affected tester (no customers): [email protected]
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:

  • Create a Control workspace.
  • Enable Rules.
  • Workspace has multi level independent tags.
  • Enable describeRule beta.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Rules.
  3. Click Add rule > Apply expense defaults > Merchant.
  4. Click Describe.
  5. Enter When merchant is Apple, Region tag should be Asia.
  6. Click Next.

Expected Result:

Region (second tag) should be applied with Asia.

Actual Result:

Region (second tag) is not applied with Asia.
There is no error message on Describe modal when command is not applied.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7285550_1791911311397.18.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Svetlana Lazutkina
Bug ID: 7285550

Activity

  1. applause-bot commented on Oct 13, 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/7e0cb0887b3f5fc31194b61e79701a77e8adc4ca9ce56e7dd287b05b727cbd35

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

    @melvin-bot

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

  4. github-actions commented on Oct 13, 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.
  5. melvin-bot commented on Oct 13, 2026

    @melvin-bot

    @luacmartins @JS00001 @Krishna2323 you have been assigned to this deploy blocker because you reviewed the offending PR: #99624

  6. melvin-bot commented on Oct 13, 2026

    @melvin-bot

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

  7. melvin-bot commented on Oct 13, 2026

    @melvin-bot

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

  8. JS00001 commented on Oct 13, 2026

    @JS00001
    Contributor

    this is be hind a beta, adding to a list of blockers

  9. MelvinBot commented on Oct 13, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Investigation

    Causing PR: AI-assisted rule creation. It added the whole Describe feature. It merged 2026-10-12 and first shipped in 9.5.8-0.

    Recommendation: Demote, don't revert. The Describe button renders only when the describeRule beta is on (DescribeRuleButton.tsx:45-47), so production users can't reach it. The admin can still set the Region tag by hand before saving. Track the fix under [Rules Revamp] Release 5: AI-assisted rule creation and unsupported-request capture.

    Root cause (medium confidence): The App sends only the description. The backend works out the rule, including which tag level "Region" means. The App copies the result into the form unchanged. The Region row stays blank unless the backend returns the tag at the second level (":Asia"). The fix for the missing tag most likely belongs in the backend. This appears to be a backend/internal issue. A separate internal investigation is needed.

    Why no error appears (App): The modal shows an error only when generation fails. A rule with an unmatched tag counts as success, so the modal closes quietly.

    Investigation details

    Optional App follow-ups:

    1. Check generated tags against each tag level, as withPolicyCategory does for categories.
    2. Warn in the modal when part of the description couldn't be applied.

    I couldn't see what the backend returned for this request. That limits confidence in the backend/App split.


    view run

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

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions