Read-model topology

Operational Tenant/Membership data → DataSynchronizationService → WarehouseDbContext → AdminReportService → report controller/table. WarehouseDbFactory resolves the reporting context; it is distinct from operational tenant storage.

Stores flatten records: PersonStore, PayrollItemSummaryStore, EmployeeRequestStore, ContractorStore and PaymentScheduleItemStore. Containers pre-aggregate trends: EmployeeTrendContainer, GenderSummaryContainer, PayrollTrendContainer and TopPayrollCompaniesContainer. ProcedureExecutionContainer carries procedure results; aggregation is partly SQL-owned.

Worker and code entry points

The source loop calls company EWA synchronisation, Person/Payroll/Request/Contractor SyncBIData, contact sync, custom-payment BI sync and CleanupDataSyncTask, then delays about 30 seconds. This is eventual consistency, not an atomic cross-module snapshot. Inspect the failed source-specific path when only one report family is stale.

AdminReportService owns builder/fixed reports/templates/downloads; ReportService and WarehouseService support it. ControlAnalyticService serves privileged cross-tenant analytics, not ordinary tenant dashboards.

Access and implementation boundaries

Bearer identity and CompanyId scope must survive warehouse queries, preview, templates and downloads. Class authorization alone does not prove every report/column is permitted. Test cross-company IDs and exports separately. Frontend EnhancedReportTable consumes Paginator-style output; the richer schema/rows/totals/pagination initiative was in flight, not established as deployed everywhere. Never use Control analytics as a workaround for missing tenant grants.

Source scope

Reporting, analytics & warehouse — business view · Reporting, analytics & warehouse — technical view · Reporting — configuration · Reporting — API reference · Reporting — user journeys · Reporting — runbook

Sources describe July 2026 code and a historical demo pass, not a current deployment test. Builder inner steps and report email/scheduling were not exercised with data. Sync cadence is not a freshness SLA; grants, exact DTOs, export delivery and server-driven-table rollout need verification.