Skip to content

[Exploratory] Workspace - Rules appears briefly in duplicated workspace after disabling rules during copy #103744

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.7-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #102930
Email or phone of affected tester (no customers): applausetester+bm890334@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Web, android
App Component: Workspace Settings

Action Performed:

Preconditions:
Rules are enabled on a workspace

  1. Go to staging.new.expensify.com
  2. Go to Workspaces.
  3. Click on the three dots menu of the workspace and select Duplicate.
  4. Click Next, uncheck Rules, and click Continue.
  5. Open the duplicated workspace.

Expected Result:

Rules should not appear at all.

Actual Result:

Rules appears briefly and then disappears.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7282603_1791585284930.bandicam_2026-10-10_01-25-37-537.1.mp4

View all open jobs on GitHub

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

Issue OwnerCurrent Issue Owner: @hungvu193

Activity

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

  2. self-assigned this
    on Oct 21, 2026
  3. melvin-bot commented on Oct 21, 2026

    @melvin-bot

    @TaduJR — to hire @TaduJR on Upwork, add the External label so a job is created and the offer is sent automatically.

  4. added
    Weekly
    and removed on Oct 21, 2026
  5. TaduJR commented on Nov 2, 2026

    @TaduJR
    Contributor

    This is a BE issue.

    What is the expected behavior of the backend?

    When a workspace is duplicated with categories: true and expenses: false, the new workspace should have Rules off, and every update in the response should agree with that.

    What is the actual behavior of the backend?

    DuplicatePolicy sends the new policy with areRulesEnabled: false, then a separate merge with areRulesEnabled: true. The next OpenPolicyProfilePage returns false, so Rules shows briefly in the workspace menu. This only happens when Categories is copied without Rules.

    What data are you passing to the backend?

    DuplicatePolicy:

    • policyID: 2DDE05E5B449E246
    • targetPolicyID: 3ECD8B3133E03FCE
    • parts: categories: true, everything else false

    What data is the backend returning?

    Entries in onyxData for policy_3ECD8B3133E03FCE, in order:

    #35 merge  full policy object, including "areRulesEnabled": false
    #38 merge  {"areRulesEnabled": true}
    

    What data do you think the backend should be returning?

    The same response without entry 38, so areRulesEnabled stays false.

    cc @marcaaron

  6. abzokhattab commented on Nov 23, 2026

    @abzokhattab
    Contributor

    @TaduJR Can you please check if it's still reproducible? I remember it was fixed here

  7. self-assigned this
    on Nov 23, 2026
  8. hungvu193 commented on Nov 23, 2026

    @hungvu193
    Contributor

    Yeah, this is not reproducible on latest main.

    Screen.Recording.2026-11-23.at.20.30.41.mov
  9. TaduJR commented on Nov 23, 2026

    @TaduJR
    Contributor

    Ohhh Ok thanks everyone for checking.

    Closing then...

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

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions