-
-
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
Expose calendar-uri as property of deleted caldav events #27310
Expose calendar-uri as property of deleted caldav events #27310
Conversation
The trashbin is one report across all calendars of a user. In order to refresh the data of a single calendar when one of its events is restored, we need to know what calendar the event belongs to. There doesn't seem to be a standard property for a URI, so this adds a custom Nextcloud prop for the calendar-uri. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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.
💪
@@ -1111,10 +1112,11 @@ public function getDeletedCalendarObjectsByPrincipal(string $principalUri): arra | |||
while ($row = $stmt->fetch()) { | |||
$result[] = [ | |||
'id' => $row['id'], | |||
'uri' => $row['uri'], | |||
'uri' => $row['co.uri'], |
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.
this was a mistake #27311 :)
@@ -2153,10 +2156,11 @@ public function getCalendarObjectById(string $principalUri, int $id): ?array { | |||
|
|||
return [ | |||
'id' => $row['id'], | |||
'uri' => $row['uri'], | |||
'uri' => $row['c.uri'], |
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.
same #27311
The trashbin is one report across all calendars of a user. In order to
refresh the data of a single calendar when one of its events is
restored, we need to know what calendar the event belongs to. There
doesn't seem to be a standard property for a URI, so this adds a custom
Nextcloud prop for the calendar-uri.
Required for nextcloud/calendar#3118.