-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Rec-IM] participant matches #1051
Conversation
Co-authored-by: Evan Platzer <evan.platzer@gmail.com>
.Include(mt => mt.Match) | ||
.ThenInclude(m => m.MatchTeam) | ||
.ThenInclude(mt => mt.Match) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this not a circular include? Aren't you including MatchTeam.Match.MatchTeam.Match
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not EXACTLY, the reason I need any of these includes is because of the implicit operators on the viewmodels. Unless specified, they do not actually hold any of their perceived connections.
The logic flow unfortunately right now is as follows:
MatchTeam(1) is connected via a participant's current team list,
I then get the Match from that MatchTeam(1)
I then need ALL MatchTeam(1->x) connected to the Match
The implicit operator is used on the MatchTeam(1->x) which actually loses its connection to Match and thus loses its properties.
So yes, it's "circular" but not really?
…rdon-cs/gordon-360-api into s24-recim-participant-matches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
API route for displaying a participant's matches (future and past). Handles the API side of https://github.com/gordon-cs/RecIM-Docs/issues/104