-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Unsubscribe push from unsynced collections #1011
Unsubscribe push from unsynced collections #1011
Conversation
2b60d1e
to
a56b0f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we register all collections every time? We should be able to exclude already registered collections from being registered again.
Also I take it some of the code in the worker will be extracted to dav4jvm later?
Looks good otherwise 👍
The logic for re-registering before expiration is not yet implemented, so we have to re-register it every time. Also, the worker is not run regularly yet. This is also related.
I don't know whether it's necessary. We already use the POST/DELETE method from dav4jvm, and generating the message bodies is usually not done in dav4jvm. Let's have a look when it's (almost) finished. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair, sounds good to me.
Purpose
Adds functionality: when collections are
they shall be unregistered from the server.
Short description
PushRegistrationWorker
scans for collections that are registered for Push, but not selected for synchronization, and unregisters them from Push.Checklist