feat(dav): Add an API for upcoming events#45435
Conversation
|
@DorraJaouad could you please check the API and tell me if there is any more info we need to expose? |
|
In order to generate the url to calendar app with event details open in sidebar, we need to have start timestamp and calendar id. However, the calendar id in url doesn't seem to match the one provided in this API point when testing. so is it missing ? |
|
The API exposes the numeric (internal) calendar ID. The calendar app uses the calendar URI. I will change the API to expose the URI here as well 👍 |
|
@DorraJaouad is the API usable from your perspective? |
|
so this is the response so far I believe recurrenceId is the |
|
The recurrence id is useful for repeating events. I think it's best if you use calendarAppUrl for the "deep" link. It's not fully deep yet but a good starting point. Building the URL yourself opens the door for problems once the calendar URL format changes |
4d56826 to
0984dae
Compare
0984dae to
b7d848c
Compare
|
Excuse the force push. Tests were failing 😬 |
| 'events' => array_map(fn (UpcomingEvent $e) => $e->jsonSerialize(), $this->service->getEvents( | ||
| $this->userId, | ||
| $location, | ||
| )), |
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
b7d848c to
370a9d7
Compare
|
Another force push for cs fixes |
|
Tested. Case 1: Blank Location Case 2: Location matching a location in a event Case 2: Location partially matching the location of another event |

Summary
Expose a convenience endpoint to query upcoming events. Events can be filtered by location to match Talk conversation URLs.
Demo / how to test
TODO
Checklist