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
[Exploratory] Workspace - Rules appears briefly in duplicated workspace after disabling rules during copy #103744
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
Go to staging.new.expensify.com
Go to Workspaces.
Click on the three dots menu of the workspace and select Duplicate.
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.
Activity
applause-bot commentedon Oct 12, 2026
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
melvin-bot commentedon Oct 21, 2026
@TaduJR — to hire @TaduJR on Upwork, add the External label so a job is created and the offer is sent automatically.
TaduJR commentedon Nov 2, 2026
This is a BE issue.
What is the expected behavior of the backend?
When a workspace is duplicated with
categories: trueandexpenses: 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?
DuplicatePolicysends the new policy withareRulesEnabled: false, then a separate merge withareRulesEnabled: true. The nextOpenPolicyProfilePagereturnsfalse, 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:2DDE05E5B449E246targetPolicyID:3ECD8B3133E03FCEparts:categories: true, everything elsefalseWhat data is the backend returning?
Entries in
onyxDataforpolicy_3ECD8B3133E03FCE, in order:What data do you think the backend should be returning?
The same response without entry 38, so
areRulesEnabledstaysfalse.cc @marcaaron
abzokhattab commentedon Nov 23, 2026
@TaduJR Can you please check if it's still reproducible? I remember it was fixed here
hungvu193 commentedon Nov 23, 2026
Yeah, this is not reproducible on latest main.
Screen.Recording.2026-11-23.at.20.30.41.mov
TaduJR commentedon Nov 23, 2026
Ohhh Ok thanks everyone for checking.
Closing then...