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

Revert fields to original types #138

Open
wants to merge 3 commits into
base: 3.x
Choose a base branch
from
Open

Revert fields to original types #138

wants to merge 3 commits into from

Conversation

muzzwood
Copy link
Contributor

Still testing...

The new fields might be better off as a combined properties field. 🤔

There are some issues reverting properties fields. We can't just decode or deserialize all properties when reverting because some may be intended to be that way.

This PR adds a way to keep track of what the value type was before it was added to the delta field. This way we can serialize an array when creating a delta, and then we know that it needs to be unserialized when reverting.
It also will allow an integer to be recreated as an integer etc.

This also fixes a bug with a blank array key being created when splitting property fields recursively.

…ything as a string. This solves not knowing if a properties field should be decoded or not.
@muzzwood muzzwood marked this pull request as draft October 25, 2024 11:19
@muzzwood muzzwood marked this pull request as ready for review November 1, 2024 07:15
@muzzwood muzzwood linked an issue Nov 1, 2024 that may be closed by this pull request
@muzzwood muzzwood requested a review from Mark-H December 12, 2024 03:42
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.

Undo appears to be breaking Fred
1 participant