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

Use current value in update pipeline when original value is not being tracked #32480

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

ajcvickers
Copy link
Member

Fixes #32168

The issue here is that when using changed/changing notifications, we don't store original values for non-key/index properties. However, in one path, the update pipeline is assuming that asking for original values is always safe since if there isn't one, then a current value is returned. However, this doesn't work if original values are never saved for a given property. In that case, we need to explicitly ask for a current value instead.

@ajcvickers ajcvickers requested a review from a team December 1, 2023 13:14
… tracked

Fixes #32168

The issue here is that when using changed/changing notifications, we don't store original values for non-key/index properties. However, in one path, the update pipeline is assuming that asking for original values is always safe since if there isn't one, then a current value is returned. However, this doesn't work if original values are _never_ saved for a given property. In that case, we need to explicitly ask for a current value instead.
@ajcvickers ajcvickers merged commit 32c6133 into main Dec 2, 2023
7 checks passed
@ajcvickers ajcvickers deleted the 231201_WayTooOriginal branch December 2, 2023 00:10
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.

Borked Owned Entities for PropertyChangingAndChanged
2 participants