Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,14 @@
<PackageReference Include="DotNet.ReproducibleBuilds" PrivateAssets="All" />
</ItemGroup>

<!-- Critter Stack 2026 dedupe pillar (jasperfx#214): centralized global-using
aliases mapping the old Marten names to the lifted JasperFx / Weasel.Core
types. Linked as a shared compile (not via MSBuild <Using>, since
ImplicitUsings is off repo-wide) into every JasperFx-referencing project.
F# projects (.fsproj), netstandard2.0 (the source generator), and any
project setting IncludeMartenDedupeAliases=false are excluded. -->
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj' and '$(IncludeMartenDedupeAliases)' != 'false' and '$(TargetFramework)' != 'netstandard2.0'">
<Compile Include="$(MSBuildThisFileDirectory)src/Shared/DedupeAliases.cs" Link="Shared/DedupeAliases.cs" />
</ItemGroup>

</Project>
12 changes: 6 additions & 6 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="FSharp.Core" Version="9.0.100" />
<PackageVersion Include="FSharp.SystemTextJson" Version="1.3.13" />
<PackageVersion Include="JasperFx" Version="2.0.0-alpha.20" />
<PackageVersion Include="JasperFx.Events" Version="2.0.0-alpha.21" />
<PackageVersion Include="JasperFx.Events.SourceGenerator" Version="2.0.0-alpha.13">
<PackageVersion Include="JasperFx" Version="2.0.0-rc.2" />
<PackageVersion Include="JasperFx.Events" Version="2.0.0-rc.2" />
<PackageVersion Include="JasperFx.Events.SourceGenerator" Version="2.0.0-rc.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="JasperFx.SourceGeneration" Version="2.0.0-alpha.9" />
<PackageVersion Include="JasperFx.SourceGeneration" Version="2.0.0-rc.2" />
<PackageVersion Include="Jil" Version="3.0.0-alpha2" />
<PackageVersion Include="Lamar" Version="7.1.1" />
<PackageVersion Include="Lamar.Microsoft.DependencyInjection" Version="15.0.0" />
Expand Down Expand Up @@ -66,8 +66,8 @@
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageVersion Include="System.IO.Hashing" Version="10.0.3" />
<PackageVersion Include="Vogen" Version="7.0.0" />
<PackageVersion Include="Weasel.EntityFrameworkCore" Version="9.0.0-alpha.7" />
<PackageVersion Include="Weasel.Postgresql" Version="9.0.0-alpha.7" />
<PackageVersion Include="Weasel.EntityFrameworkCore" Version="9.0.0-alpha.8" />
<PackageVersion Include="Weasel.Postgresql" Version="9.0.0-alpha.8" />
<PackageVersion Include="WolverineFx.Marten" Version="4.2.0" />
<PackageVersion Include="xunit" Version="2.9.3" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public async Task can_create_schema_with_archived_partitioning_conjoined_tenancy
StoreOptions(opts =>
{
opts.Events.UseArchivedStreamPartitioning = true;
opts.Events.TenancyStyle = Marten.Storage.TenancyStyle.Conjoined;
opts.Events.TenancyStyle = TenancyStyle.Conjoined;
opts.Events.RegisterTagType<EntityId>("entity");
});

Expand Down
2 changes: 0 additions & 2 deletions src/CoreTests/GlobalUsings.cs

This file was deleted.

4 changes: 0 additions & 4 deletions src/CoreTests/retry_mechanism.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
using Npgsql;
using Shouldly;
using Weasel.Postgresql;
// OperationRole moved to Weasel.Core per the dedup audit (#4350 / pillar #214).
// Use a file-local alias to avoid pulling in Weasel.Core wholesale (which
// would collide with Marten.Internal.Operations.IStorageOperation).
using OperationRole = Weasel.Core.OperationRole;
using Xunit;

namespace CoreTests;
Expand Down
2 changes: 0 additions & 2 deletions src/DaemonTests/GlobalUsings.cs

This file was deleted.

2 changes: 0 additions & 2 deletions src/DocumentDbTests/SessionMechanics/UnitOfWorkExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using Marten.Linq.SqlGeneration;
using Marten.Testing.Documents;
using Shouldly;
// OperationRole moved to Weasel.Core per the dedup audit (#4350 / pillar #214).
using OperationRole = Weasel.Core.OperationRole;

namespace DocumentDbTests.SessionMechanics;

Expand Down
5 changes: 0 additions & 5 deletions src/EventSourcingTests/GlobalUsings.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task updateonly_event_for_custom_view_projection_should_not_create_
StoreOptions(opts =>
{
opts.AutoCreateSchemaObjects = AutoCreate.All;
opts.Events.TenancyStyle = Marten.Storage.TenancyStyle.Conjoined;
opts.Events.TenancyStyle = TenancyStyle.Conjoined;
opts.Schema.For<NewsletterSubscription>().MultiTenanted();
opts.Projections.Add(new NewsletterSubscriptionProjection(), ProjectionLifecycle.Inline);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ await Should.ThrowAsync<ExistingStreamIdCollisionException>(async () =>
[Fact]
public async Task does_not_throw_exception_if_start_stream_is_called_on_existing_stream_with_the_same_tenant_and_tenancy_style_conjoined()
{
StoreOptions(_ => _.Events.TenancyStyle = Marten.Storage.TenancyStyle.Conjoined);
StoreOptions(_ => _.Events.TenancyStyle = TenancyStyle.Conjoined);

var stream = Guid.NewGuid();
const string tenantName = "Tenant";
Expand All @@ -82,7 +82,7 @@ await Should.ThrowAsync<ExistingStreamIdCollisionException>(async () =>
[Fact]
public async Task does_not_throw_exception_if_start_stream_is_called_on_existing_stream_with_different_tenant_and_tenancy_style_conjoined()
{
StoreOptions(_ => _.Events.TenancyStyle = Marten.Storage.TenancyStyle.Conjoined);
StoreOptions(_ => _.Events.TenancyStyle = TenancyStyle.Conjoined);

var stream = Guid.NewGuid();

Expand Down
2 changes: 0 additions & 2 deletions src/IssueService/GlobalUsings.cs

This file was deleted.

3 changes: 3 additions & 0 deletions src/LinqTestsTypes/LinqTestsTypes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<!-- References only the base JasperFx package (no Marten / Weasel / JasperFx.Events),
so the shared dedupe-alias file would not resolve. Opt out. -->
<IncludeMartenDedupeAliases>false</IncludeMartenDedupeAliases>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Marten/DocumentStore.EventStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ IEventLoader IEventStore<IDocumentOperations, IQuerySession>.BuildEventLoader(IE
{
var filters = buildEventLoaderFilters(filtering).ToArray();
var inner = new EventLoader(this, (MartenDatabase)database, shardOptions, filters);
return new ResilientEventLoader(Options.ResiliencePipeline, inner);
return new ResilientEventLoader(Options.ResiliencePipeline, inner, database);
}

private IEnumerable<ISqlFragment> buildEventLoaderFilters(EventFilterable filterable)
Expand Down
35 changes: 0 additions & 35 deletions src/Marten/Events/Daemon/HighWater/SkippedEventsCountObserver.cs

This file was deleted.

18 changes: 0 additions & 18 deletions src/Marten/Events/Daemon/Internals/EventLoaderException.cs

This file was deleted.

58 changes: 0 additions & 58 deletions src/Marten/Events/Daemon/Internals/ResilientEventLoader.cs

This file was deleted.

22 changes: 0 additions & 22 deletions src/Marten/Events/Dcb/DcbConcurrencyException.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Marten/Events/EventStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void AssignTagWhere(Expression<Func<IEvent, bool>> expression, object tag
_ => CompoundWhereFragment.And(holder.Fragments)
};

var isConjoined = _store.Events.TenancyStyle == Storage.TenancyStyle.Conjoined;
var isConjoined = _store.Events.TenancyStyle == TenancyStyle.Conjoined;

if (_store.Events.DcbStorageMode == DcbStorageMode.HStore)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Marten/Events/Fetching/FetchNaturalKeyPlan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public FetchNaturalKeyPlan(EventGraph events, NaturalKeyDefinition naturalKey,
_naturalKeyTableName =
$"{events.DatabaseSchemaName}.mt_natural_key_{naturalKey.AggregateType.Name.ToLowerInvariant()}";
_streamIdColumn = events.StreamIdentity == StreamIdentity.AsGuid ? "stream_id" : "stream_key";
_isConjoined = events.TenancyStyle == Storage.TenancyStyle.Conjoined;
_isConjoined = events.TenancyStyle == TenancyStyle.Conjoined;
_isGlobal = events.GlobalAggregates.Contains(typeof(TDoc));
}

Expand Down
2 changes: 1 addition & 1 deletion src/Marten/Events/Querying/StreamStateSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Marten.Events.Querying;
/// <summary>
/// Internal base class for generated stream state query handling. Only the
/// <c>ConfigureCommand</c> step (which varies by <see cref="JasperFx.Events.StreamIdentity"/>
/// and <see cref="Marten.Storage.TenancyStyle"/>) is codegen'd; the row read is delegated
/// and <see cref="JasperFx.MultiTenancy.TenancyStyle"/>) is codegen'd; the row read is delegated
/// to <see cref="IEventStorage"/>'s <see cref="ISelector{StreamState}"/> implementation so
/// <see cref="DocumentStore"/>'s <c>FetchStreamStateAsync</c> shares the same reader as
/// any other call site (e.g. the <c>IEventStore</c> explorer) that needs a
Expand Down
8 changes: 0 additions & 8 deletions src/Marten/GlobalUsings.cs

This file was deleted.

70 changes: 0 additions & 70 deletions src/Marten/IDocumentSchemaResolver.cs

This file was deleted.

Loading
Loading