Skip to content

Enable multi-tenant composite projections#4116

Merged
jeremydmiller merged 1 commit intoJasperFx:masterfrom
erdtsieck:feature/Enable-multi-tenant-composite-projections
Feb 6, 2026
Merged

Enable multi-tenant composite projections#4116
jeremydmiller merged 1 commit intoJasperFx:masterfrom
erdtsieck:feature/Enable-multi-tenant-composite-projections

Conversation

@erdtsieck
Copy link
Contributor

Update the multi-stage projection test to support multi-tenancy by introducing a dedicated _compositeSession and tenant-aware setup. Replace usage of theSession with _compositeSession for queries/events, pass tenantId into buildProviders/buildPatients and use tenant-scoped BulkInsertAsync, and instantiate theStore.LightweightSession(tenantId). Change the test to a Theory over TenancyStyle (Single/Conjoined) and configure Marten options for conjoined tenancy (partitioning and DefaultTenantUsageDisabled). Minor cleanup: make lists private and add required using directives.

Update the multi-stage projection test to support multi-tenancy by introducing a dedicated _compositeSession and tenant-aware setup. Replace usage of theSession with _compositeSession for queries/events, pass tenantId into buildProviders/buildPatients and use tenant-scoped BulkInsertAsync, and instantiate theStore.LightweightSession(tenantId). Change the test to a Theory over TenancyStyle (Single/Conjoined) and configure Marten options for conjoined tenancy (partitioning and DefaultTenantUsageDisabled). Minor cleanup: make lists private and add required using directives.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants