LoadStreamHeaders does not load soft deleted headers
See original GitHub issueI am planning to use LoadStreamHeaders method for loading streams having changes since a certain time. The load is done scheduled: For example I first load headers having changes since 1.1.2021. and then load streams that are on different version to my read repository.
When an aggregate is set to deleted state, I also soft delete it’s stream. With this procedure I was expecting to be able to figure from the stream header, when the stream is having new events, or when the stream is deleted and reflect that to my read repo but it seems the method doesn’t return soft deleted headers:
await callback(page.Where(x => x.DocumentType == DocumentType.Header).Where(x => !x.Deleted).Select(x => new StreamHeader(x.StreamId, x.Version, this.Serializer.DeserializeObject(x.MetadataType, x.Metadata))).ToList());
I would appreciate if this could be modified to suit my needs.
- Ari
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
Yes, of course, I totally missed that!
On Fri, 22 Jan 2021, 12:14 AriKuorikoski, notifications@github.com wrote:
Hello Ari, that is a reasonable request. I’ll try to implement it and push the new version out in a few hours.
On Fri, 15 Jan 2021, 07:43 AriKuorikoski, notifications@github.com wrote: