-
Notifications
You must be signed in to change notification settings - Fork 65
Description
Objective: Transform isolated workspaces into a hierarchical "Group/Entity" structure where transactions and rules can be inherited or cross-linked.
Files Involved (~8):
models/Workspace.js
: Major schema rewrite for parent/child mapping.
routes/workspaces.js
: Implementation of cross-workspace data retrieval.
services/workspaceService.js
: Heavy modification of authorization and resource sharing logic.
middleware/auth.js
: Update to handle hierarchical "Collaborator" roles across entities.
services/revaluationService.js
: Refactor to support "Consolidated Currency Exposure" reports.
routes/rules.js
: Logic to permit workspace-level overrides for global rules.
services/consolidationService.js: (New) Complex logic for merging financial data across entities.
models/PermissionSet.js: (New) Granular access control for collaborative entities.
Code Volume: Very High. Juggling the auth and service layer to support nested data structures is a massive task.