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

Don't fixup to deleted entities #29133

Merged
merged 1 commit into from
Sep 19, 2022
Merged

Conversation

ajcvickers
Copy link
Member

@ajcvickers ajcvickers commented Sep 18, 2022

The new nested entity was being fixed up to the deleted double-nested entities.

Fixes #29085

Description

When a nested owned entity that itself has a nested owned entity is replaced and a navigation to the double-nested entity is set to null, then new nested entity is fixed up to the deleted double-nested entity.

Customer impact

The double-nested entity is not deleted when it should be, leading to incorrect data in the database.

How found

Customer reported.

Regression

No; same behavior in 6.0. We will consider porting to 6.0.

Testing

Significant testing added around double-nested owned entities.

Risk

Low; bug fix for double-nested entities.

The new nested entity was being fixed up to the deleted double-nested entities.

Fixes #29085
@ajcvickers ajcvickers requested a review from a team September 18, 2022 11:18
@ajcvickers ajcvickers added this to the 7.0.0-rc2 milestone Sep 18, 2022
@ajcvickers
Copy link
Member Author

ajcvickers commented Sep 19, 2022

@roji If you are around, could I get a review of this? It has been approved by Tactics for RC2.

@ajcvickers ajcvickers merged commit 84d617f into release/7.0 Sep 19, 2022
@ajcvickers ajcvickers deleted the NotSoEmptyNesters0917 branch September 19, 2022 09:29
ajcvickers added a commit that referenced this pull request Sep 19, 2022
@ajcvickers ajcvickers removed this from the 7.0.0-rc2 milestone Sep 19, 2022
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.

2 participants