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

[6.0-rc2] RevEng: Generate correct FK configuration for scaffolding #26087

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

smitpatel
Copy link
Contributor

@smitpatel smitpatel commented Sep 17, 2021

Resolves #26086

Description

Code scaffolded for many-to-many join table is configuring wrong FKs for join table.

Customer Impact

An exception is thrown for entities with different key types on either end of the relationship. This is how it was discovered. It could cause silent data corruption for the more common case where entities have the same key type.

How found

Customer reported on RC1.

Test coverage

Added regression tests for the scenario. Also manually tested scaffolding Northwind database where issue was found. We also have #25543 tracking better coverage in general for this area.

Regression?

No. This is new feature in 6.0

Risk

Low. Since the scenario was fully broken, this doesn't have potential to make it worse. Testing on Northwind database also gives us confidence that we are correcting bug here.

@smitpatel
Copy link
Contributor Author

cc: @Pilchie

@smitpatel smitpatel added this to the 6.0.0-rc2 milestone Sep 17, 2021
@ajcvickers
Copy link
Member

ajcvickers commented Sep 17, 2021

Approved by Tactics.

@ajcvickers
Copy link
Member

Wrong issue. Not approved. :-)

@ajcvickers
Copy link
Member

Really approved now.

@smitpatel smitpatel merged commit d502a2b into release/6.0-rc2 Sep 17, 2021
@smitpatel smitpatel deleted the smit/reveng branch September 17, 2021 19:48
@ajcvickers ajcvickers removed this from the 6.0.0-rc2 milestone Oct 6, 2021
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