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

Adaptive/configurable sync intervals for subscription calendars #6187

Open
Tracked by #46171
miaulalala opened this issue Jul 22, 2024 · 6 comments
Open
Tracked by #46171

Adaptive/configurable sync intervals for subscription calendars #6187

miaulalala opened this issue Jul 22, 2024 · 6 comments
Labels
1. to develop Accepted and waiting to be taken care of blocked This ticket or PR is blocked by another one enhancement New feature request

Comments

@miaulalala
Copy link
Contributor

miaulalala commented Jul 22, 2024

Is your feature request related to a problem? Please describe.

The Nextcloud server caches the subscriptions (stores data in the database) and exposes them as regular calendars. The default refresh rate for this is of one week, which is appropriate for things like public holiday calendars, but might not be for other things, for instance subscribing to a public calendar from another Nextcloud user, and expecting real-time sync.

Describe the solution you'd like

After nextcloud/server#43541 has been implemented, we should add a custom subscription option for each calendar in the settings. This interval should be configurable by the user for each calendar.

It should provide pre- set intervals: 1 day, 1 week, etc.

Only allow setting a sync rate from the user side if the calendar itself doesn't already provide one as per RFC 7986

Describe alternatives you've considered

No response

Additional context

No response

@miaulalala miaulalala added the enhancement New feature request label Jul 22, 2024
@miaulalala miaulalala added the 1. to develop Accepted and waiting to be taken care of label Jul 22, 2024
@miaulalala miaulalala self-assigned this Jul 22, 2024
@miaulalala miaulalala added the blocked This ticket or PR is blocked by another one label Jul 22, 2024
@tcitworld
Copy link
Member

It would be nice if admins could enforce a sane minimum as well.

@miaulalala
Copy link
Contributor Author

It would be nice if admins could enforce a sane minimum as well.

We would enforce sane minimums on the frontend side as we would preconfigure the sync intervals, avoiding weird sync intervals such as 1 minute. Let's start with "every 1 day" and see if that is too high, then we can add more options.

@ChristophWurst
Copy link
Member

Is there a standard prop for the sync interval, e.g. so that clients could allow the users to adjust the interval as well?

@miaulalala
Copy link
Contributor Author

We could write the https://icalendar.org/New-Properties-for-iCalendar-RFC-7986/5-7-refresh-interval-property.html property if the server doesn't provide one

@miaulalala
Copy link
Contributor Author

Also found some custom property by outlook: X-PUBLISHED-TTL

@trippodi

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of blocked This ticket or PR is blocked by another one enhancement New feature request
Projects
None yet
Development

No branches or pull requests

4 participants