-
Notifications
You must be signed in to change notification settings - Fork 241
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
Auto-refresh #31
Comments
requires #209 |
Let's implement #40 first. Otherwise stuff like keeping events being edited locked will be a huge pain. |
no news on this features? in 1.7.0 the autorefresh do not work |
using following workaround until this issue is fixed:
|
I would strongly advise anyone against using that workaround, because it just reloads the calendar app every 60 seconds, no matter whether you are just creating / editing an event or not. Definitely not a solution. |
correct, thanks for pointing that out, i should have mentioned that! |
Will the tasks app automatically profit from the implementation in the calendar app or should I open a separate feature request there if I would like to see automatically refreshed task lists? |
@dev-zero No, this issue is only about the calendar app. The tasks app will need to implement this separately. |
Fetch the open calendars every 20 seconds and check if they have changed since they were loaded. If a calendar changed remove all it's data from the store and thereby effectively trigger a reload. This is a fairly brute force approach as it drops all known data rather than fetching only the data that changed via the caldav sync API. However Caldav sync is yet to be implemented. (nextcloud/cdav-library#9) So this serves as a workaround for the time being. See #31. Signed-off-by: Azul <[email protected]>
* Add new calendars to the list as they show up. * Reload non-public calendars if they are updated on the server. Fixes #31. This works but it is not an optimal solution: * If a calendar changes it reloads the current view no matter wether anyting in the view changed or not. * If a calendar changes it drops all cached events even if they did not change. * If an event is added to the calendar or moved this calendar will also be reloaded because the new event changed the syncToken on the server. * If a calendar changed it will be added to the bottom of the list of calendars. I would be fine with most of these but the last one needs to be fixed. Signed-off-by: Azul <[email protected]>
We should implement this in two steps:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: