-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
PHP Calendar API: Write support #20154
Comments
also ref #17129 |
cc @rullzer for feature planning :) |
This comment has been minimized.
This comment has been minimized.
@tcitworld Who else needed write-access to the calendar? |
I can think of
|
Added workflow engine to use cases. |
FYI, have updated @tcitworld merge request #20178, re-basing it to the current master and fixing the failing merge checks, see #23234. Would be "nice to have" for polishing cafevdb. |
Concerning use cases: cafevdb shares several objects among the members of the executive board of an orchestra. Shared events (rehearsals/concerts/meetings) are of course an important component. |
I have a use-case where I would need to add/update events for all users via the API. We have a self-hosted mail server and would like to automatically import any .ics file that users receive. The mail server side is simple and we have it ready, but importing the events into Nextcloud is our current problem. Does the current state of the implementation support using a single API key to manage calendars for all users? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I would like to note that we should possibly include the user ID as argument of the APIs. Having the user as context makes the APIs usable for calendars of other users as well, and when there is no user context (background job, occ). |
@miaulalala will implement the creation part of new events. To avoid leading sabre types in the public API she will add a |
OCP\Calendar\IManager
is currently only providing a read-only API.This is drastically limiting the number of use-cases, forcing app-developers to use the CalDAV interface via javascript, if they desire write-support for the user's calendar.
Nextcloud should provide a PHP api with write-support for the user's calendar.
Due to it's simple design, our current API is limited to read-only. Adding write-support to the existing API is not possible. This is mostly caused by the structure of events.
They are returned as a very simple key-value array. Some information from the ICS is already lost when the conversion takes place. Converting modified key-value arrays back to ICS could possibly lead to data-loss.
Documentation
Original proposition
Proposal:
Deprecate
\OCP\Calendar\IManager
and\OCP\Calendar\ICalendar
with Nextcloud 20 and remove with Nextcloud 23.Implement
\OCP\Calendar\IManagerV2
:Implement
\OCP\Calendar\ICalendarV2
:Implement
\OCP\Calendar\ICalendarObjectV2
:The text was updated successfully, but these errors were encountered: