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 apply unchanged attributes from legacy diffs #19253

Merged
merged 2 commits into from
Nov 2, 2018

Conversation

jbardin
Copy link
Member

@jbardin jbardin commented Nov 1, 2018

If a legacy diff has equal old and new values, don't apply the diff.
These would show up in sets, because of the overall change in set key, or because the stored value can't be differentiated from nil.

Fixes #19215

Booleans in the legacy form were stored as strings, and can appear as
the incorrect type in the new type system.

Unset fields in sets also might show up erroneously in diffs, with
equal old and new values.
If a legacy diff has equal old and new values, don't apply the diff.
These would show up in sets, because of the overall change in set key.
@jbardin jbardin requested a review from a team November 1, 2018 20:20
@jbardin jbardin merged commit 63c81cc into master Nov 2, 2018
@jbardin jbardin deleted the jbardin/legacy-set-diff branch November 2, 2018 15:18
@ghost
Copy link

ghost commented Mar 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alpha1: when optional bool in set is NOT SET, error on plan
2 participants