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

Fix assigning empty dicts/sets dirtying #32

Merged
merged 2 commits into from
May 12, 2023

Conversation

jagerman
Copy link
Member

When assigning an empty set/dict to a location that doesn't currently exist, we'd dirty the config, assign the empty dict/set, but then when we produce the update it is unchanged because empty dicts/sets get pruned.

This fixes it so that such assignment becomes an erase instead, since that what the final result will be.

When assigning an empty set/dict to a location that doesn't currently
exist, we'd dirty the config, assign the empty dict/set, but then when
we produce the update it is unchanged because empty dicts/sets get
pruned.

This fixes it so that such assignment becomes an *erase* instead, since
that what the final result will be.
@jagerman jagerman merged commit 97084c6 into oxen-io:dev May 12, 2023
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.

None yet

1 participant