Skip to content

Commit

Permalink
Quick fix for async projection shard names. Closes GH-3165
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed May 6, 2024
1 parent 7af77cd commit ff6df64
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/documents/querying/linq/include.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,4 @@ var found = batch.Query<Issue>()
.Single();
```
<sup><a href='https://github.com/JasperFx/marten/blob/master/src/LinqTests/Includes/end_to_end_query_with_include.cs#L42-L51' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample_batch_include' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
<!-- endSnippet -->
4 changes: 2 additions & 2 deletions docs/events/projections/multi-stream-projections.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ public class LicenseFeatureToggledEventGrouper: IAggregateGrouper<Guid>

// TODO -- let's build more samples first, but see if there's a useful
// pattern for the next 3/4 operations later
var licenceIds = licenseFeatureTogglesEvents
var licenseIds = licenseFeatureTogglesEvents
.Select(e => e.Data.LicenseId)
.ToList();

var result = await session.Query<UserFeatureToggles>()
.Where(x => licenceIds.Contains(x.LicenseId))
.Where(x => licenseIds.Contains(x.LicenseId))
.Select(x => new {x.Id, x.LicenseId})
.ToListAsync();

Expand Down
2 changes: 1 addition & 1 deletion docs/events/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,4 @@ await using (var session = store.LightweightSession())
}
```
<sup><a href='https://github.com/JasperFx/marten/blob/master/src/EventSourcingTests/Examples/event_store_quickstart.cs#L93-L108' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample_events-aggregate-on-the-fly' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
<!-- endSnippet -->
2 changes: 2 additions & 0 deletions src/Marten/AdvancedOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Marten.Events;
using Marten.Events.Daemon;
using Marten.Events.Daemon.HighWater;
using Marten.Events.Projections;
using Marten.Events.TestSupport;
using Marten.Schema;
using Marten.Storage;
Expand Down Expand Up @@ -182,6 +183,7 @@ public IReadOnlyList<ShardName> AllAsyncProjectionShardNames()
.Options
.Projections
.All
.Where(x => x.Lifecycle == ProjectionLifecycle.Async)
.SelectMany(x => x.AsyncProjectionShards(_store))
.Select(x => x.Name)
.ToList();
Expand Down

0 comments on commit ff6df64

Please sign in to comment.