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

[5.0.1] Use topological sort to detect identifying relationship cycles. #23320

Merged
merged 2 commits into from
Nov 17, 2020

Conversation

AndriySvyryd
Copy link
Member

Fixes #23289

Description

EF Core 5.0 adds validation that detects identifying relationship cycles to prevent infinite recursion. However the algorithm used returned false positive for multiple paths.

Customer Impact

Users who have identifying relationships with multiple paths in their model are unable to use them.

How found

User-reported for 5.0.0

Test coverage

Added in this PR.

Regression?

Yes, the affected scenario worked correctly in 3.1

Risk

Low. The topological sort implementation has been in use since 1.0 and is thoroughly tested.

@AndriySvyryd AndriySvyryd requested a review from a team November 13, 2020 19:43
@ajcvickers
Copy link
Member

Approved by Tactics for 5.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants