-
-
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
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, | ||
)), |
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.
smoof 😍
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