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/3.1] Cherry-picking commits for for closely related detach/delete issues #19911

Merged
merged 5 commits into from
Feb 15, 2020

Conversation

ajcvickers
Copy link
Member

@ajcvickers ajcvickers commented Feb 13, 2020

Issues: #19203 #19137 #18982 #16546

Description

We made tweaks to the cascade delete behavior in 3.0 and also changed the default timing for when cascades happen. This change introduced several bugs which all result in deletion or severing of relationships instead of detaching them. This was then hit by more people due to the timing change.

Customer Impact

EF may incorrectly delete entities.

How found

Reported by multiple customers.

Test coverage

We were lacking good coverage for these detach scenarios. More coverage is included in this PR.

Regression?

Yes, from 2.x.

Risk

Low. Only impacts cases of detaching with cascades.

Also, fix is on by default, but quirk switch is present to revert back to old behavior.

Issue #16483 which is already fixed in 3.0
Issue #16546 which I thought might be fixed, but isn't
…elete issues

We made tweeks to the cascade delete behavior in 3.0 and also changed the default timing for when cascades happen.
This change introduced several bugs which all result in deletion or severing of relationships instead of detaching them.
This was then hit by more people due to the timing change.

Issues: #19203 #19137 #18982 #16546
@ajcvickers ajcvickers merged commit 79a546f into release/3.1 Feb 15, 2020
@ajcvickers ajcvickers deleted the DetachmentSyndrome0213 branch February 15, 2020 19:56
@ajcvickers ajcvickers removed this from the 3.1.3 milestone Feb 15, 2020
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