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

metasync: use None as no-value and delete missing values on syncing #920

Merged
merged 2 commits into from
Jul 26, 2021

Conversation

WhyNotHugo
Copy link
Member

This is #871 rebased onto the current master.

Closes #871

- change the interface of Storage.get_meta() and .set_meta()
  to use '' as the empty value and None as missing value.

- When a property is missing (e.g calendar-color was removed)
  in the filesystem storage delete the 'color' file, and
  in the WebDAV storage issue propertyupdate/remove call.

- remove the property from [status]/[pair]/[collection].metadata

I have adjusted, but not run the test suite.  On the other side
I tested on real system: source is CalDAV - destination is filesystem;
and source is CalDAV, destination is CalDAV (another account)
@WhyNotHugo
Copy link
Member Author

It seems xandikos does not support deleting the property, I've reported this in jelmer/xandikos#137.

@WhyNotHugo WhyNotHugo merged commit 7b49341 into master Jul 26, 2021
@WhyNotHugo WhyNotHugo deleted the meta_delete branch July 26, 2021 11:07
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.

2 participants