Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomerIncidentsSummaryGrouper Issue in Helpdesk sample #172

Open
stavris8894 opened this issue Sep 16, 2022 · 1 comment
Open

CustomerIncidentsSummaryGrouper Issue in Helpdesk sample #172

stavris8894 opened this issue Sep 16, 2022 · 1 comment

Comments

@stavris8894
Copy link
Contributor

stavris8894 commented Sep 16, 2022

There is an issue with the CustomerIncidentsSummaryGrouper: IAggregateGrouper<Guid> class.

The code:

var filteredEvents = events .Where(ev => eventTypes.Contains(ev.GetType())) .ToList();

returns an empty list.

events:
{Marten.Events.Event<Helpdesk.Api.Incidents.IncidentResolved>}

eventTypes:
[0]: {Marten.Events.IEvent`1[Helpdesk.Api.Incidents.IncidentResolved]}
[1]: {Marten.Events.IEvent`1[Helpdesk.Api.Incidents.ResolutionAcknowledgedByCustomer]}
[2]: {Marten.Events.IEvent`1[Helpdesk.Api.Incidents.IncidentClosed]}
Seems that the Contains returns false.

@stavris8894
Copy link
Contributor Author

stavris8894 commented Sep 16, 2022

I have create a PR #173 that solve this issue

@stavris8894 stavris8894 changed the title CustomerIncidentsSummary Issue in Helpdesk sample CustomerIncidentsSummaryGrouper Issue in Helpdesk sample Sep 16, 2022
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

No branches or pull requests

1 participant