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] Flag all properties as not unknown when saving changes #26346

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

ajcvickers
Copy link
Member

@ajcvickers ajcvickers commented Oct 14, 2021

Fixes #26330

Description

When saving changes to the database for an entity with a potentially unknown key value, that key value remained marked as unknown after saving if the property uses a value generator that does not generate temporary values.

Customer impact

Exception thrown when saving changes with the in-memory provider using owned collections, but also fails with other providers when using value generators that do not generate temporary values.

How found

Multiple customer reports on RC2.

Regression

Yes, from 5.0.

Testing

Test for this scenario added in the PR which runs for multiple providers and value generators.

Risk

Low; the fix is to clear the unknown flag when accepting saved changes into the state manager.

@ajcvickers ajcvickers requested a review from a team October 14, 2021 10:51
@ajcvickers ajcvickers added this to the 6.0.0 milestone Oct 14, 2021
@ajcvickers ajcvickers merged commit 1445aa9 into release/6.0 Oct 14, 2021
@ajcvickers ajcvickers deleted the KnowingMeKnowingYou1014 branch October 14, 2021 17:27
@ajcvickers ajcvickers removed this from the 6.0.0 milestone Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants