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

[release/7.0] Avoid infinite loop during foreign key discovery #29850

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

AndriySvyryd
Copy link
Member

This is a port of #29849
Fixes #29826

Description

When there are already two foreign keys using a property the convention erroneously tries to reconfigure another foreign key to use the same property, fails and repeats.

Customer impact

An app with an affected model will hang in an infinite loop. There is no workaround other than removing this convention.

How found

Customer reported on 7.0

Regression

Yes.

Testing

Added a test for this scenario

Risk

Low; the fix has limited scope and a quirk mode was added.

@wtgodbe wtgodbe merged commit 289f097 into release/7.0 Jan 4, 2023
@wtgodbe wtgodbe deleted the Issue29826_7.0 branch January 4, 2023 18:33
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