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
[$250] WS settings - Enabling People must categorize expenses in OD disables Categories in ND #67928
changed the title [-]WS settings - Enabling People must categorize expenses in OD disables Categories in ND[/-][+][$250] WS settings - Enabling People must categorize expenses in OD disables Categories in ND[/+]on Aug 7, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-08-07 23:03:18 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
In ND, the Categories feature appears disabled after enabling “People must categorize expenses” in OD.
What is the root cause of that problem?
Root cause is OD is not async as ND. Let me explain the flow you performed:
You disable Categories from More features page which makes areCategoriesEnabled disabled for ND in backend
You navigate to OD, and refresh the page with areCategoriesEnabled: false
You enable all categories from checkbox which makes areCategoriesEnabled: true on BACKEND (thus, ND front is updated thanks to socket). But post request to update "People must categorize..." is NOT UPDATED, i.e, areCategoriesEnabled leaves false
You disable "People must categorize..." and it gives the the false areCategoriesEnabled in return which makes Categories on ND disabled.
What changes do you think we should make in order to solve the problem?
Activity
melvin-bot commentedon Aug 5, 2025
Triggered auto assignment to @abekkala (
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.[-]WS settings - Enabling People must categorize expenses in OD disables Categories in ND[/-][+][$250] WS settings - Enabling People must categorize expenses in OD disables Categories in ND[/+]melvin-bot commentedon Aug 7, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021953484130624407223
melvin-bot commentedon Aug 7, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (
External)mukhrr commentedon Aug 7, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-08-07 23:03:18 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
In ND, the Categories feature appears disabled after enabling “People must categorize expenses” in OD.
What is the root cause of that problem?
Root cause is OD is not async as ND. Let me explain the flow you performed:
areCategoriesEnableddisabled for ND in backendareCategoriesEnabled: falseareCategoriesEnabled: trueon BACKEND (thus, ND front is updated thanks to socket). But post request to update "People must categorize..." is NOT UPDATED, i.e,areCategoriesEnabledleavesfalseWhat changes do you think we should make in order to solve the problem?
So I guess, backend fix will be more straightforward, but we can fix the issue on front itself by taking into enabled categories account in src/pages/workspace/WorkspaceMoreFeaturesPage.tsx.
L109
L129
And we need to make sure to update all instances where areCategoriesEnabled comes
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
Backend sets
areCategoriesEnabled = truewhenrequiresCategory = true.melvin-bot commentedon Aug 12, 2025
@c3024 Eep! 4 days overdue now. Issues have feelings too...
31 remaining items
mukhrr commentedon Sep 15, 2025
I believe it's for checking if we have any enabled WS category rather than options in "More Features" OR to check any enabled tag.
App/src/libs/OptionsListUtils/index.ts
Lines 1049 to 1054 in 2a1cebd
So that means, if we have at least one enabled category from OD, Categories should be enabled. This is 100% promising?! cc @c3024
Let me share more examples from latest main:
App/src/components/MoneyRequestConfirmationList.tsx
Lines 319 to 321 in 79fc314
App/src/components/ReportActionItem/MoneyRequestView.tsx
Lines 265 to 269 in 79fc314
And yes, BE also should fix this
melvin-bot commentedon Sep 18, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Sep 22, 2025
@c3024 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
abekkala commentedon Sep 23, 2025
changed the labels as this requires an internal back-end fix.
melvin-bot commentedon Sep 24, 2025
@c3024 Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!