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

[buteo-sync-plugin-caldav] Retrieve allowed components per calendar. #24

Merged
merged 1 commit into from Jun 6, 2023

Conversation

dcaliste
Copy link
Contributor

@dcaliste dcaliste commented Jun 5, 2023

Use propfind method 'supported-calendar-component-set' to inquire the allowed components, like only VTODOS for task calendars for instance.

These properties are not used to filter out
downsynced or upsynced components yet. The
information is stored to mKCal though and
may be used at UI level to hide calendars
not suited for VEVENT storage.

@pvuorela, this comes out of a discussion on the forum, when using a Nextcloud account for instance, the special "Tasks" calendar is restricted for VTODO components but is listed in the calendar list page in the calendar application and in the account setting, while it is not possible to up sync any event to this calendar.
https://forum.sailfishos.org/t/nextcloud-account-sync-errors-local-to-remote-remote-calendars-sync-both-ways/15791/33

src/propfind.cpp Outdated
/* e.g.:
<C:supported-calendar-component-set>
<C:comp name="VEVENT" />
</C:supported-calendar-component-set>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cosmetics: could indent slightly less?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I copy pasted for some other palces where the indentation is large also, but no need to keep such space.

Use propfind method 'supported-calendar-component-set'
to inquire the allowed components, like only VTODOS
for task calendars for instance.

These properties are not used to filter out
downsynced or upsynced components yet. The
information is stored to mKCal though and
may be used at UI level to hide calendars
not suited for VEVENT storage.
@pvuorela pvuorela merged commit 302b760 into sailfishos:master Jun 6, 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
2 participants