ICS integrations

The integration works with my Google calendar.
However, I tried to add
school holidays calendar,
it appears but the last week
of the holiday periods is systematically missing
from the monthly view.
In the daily view, it’s worse, displaying 1 day out of 15.
Additionally, if there are more than 3 events
per day, only 2 are displayed.

Note, I tested several ICS file sources for these holidays.
Thank you for your action.

Hi @P_J-F and welcome to the Gladys community :slight_smile:

I tag @guim31, the developer of this integration!

Hi @P_J-F, thanks for this precise feedback! I’ll reproduce it with a school holiday calendar and check what comes from the integration and what comes from the Gladys calendar display. I’ll get back to you here as soon as I have the fix.

@P_J-F I found it: the integration does send full holidays (e.g., All Saints’ Day from 17/10 to 1/11 inclusive). It’s Gladys’ calendar that only requests events that start within the displayed period. A holiday that started the previous month is therefore missing from the monthly view, and the daily view only displays a holiday on the day it starts.

@pierre-gilles it’s in the core: calendar.getEvents (GET /api/v1/calendar/event) filters on start between from and to, instead of everything that overlaps the period. It should be start <= to AND (end >= from OR end IS NULL).

For the “2 out of 3 events,” it’s not a bug: when the box is full, the monthly view displays “+1,” and clicking on it shows the rest.

Thanks for the answers.
OK for the first explanation.
Same for 2 out of 3, but according to the views it wasn’t clear.

Thanks @guim31 for the analysis, and thanks @P_J-F for this very precise feedback :slightly_smiling_face:

I confirm: the issue comes from the core of Gladys, not from the ICS integration. The calendar only retrieves events that start within the displayed period. An event that started earlier is therefore not displayed, even if it is still ongoing:

  • in the month view, holidays that started the previous month disappear (hence the missing last week);
  • in the day view, a multi-day event only appears on the day it starts.

This affects all calendars (Google, CalDAV, ICS…), not just school holidays.

I opened a GitHub issue to track the fix: Calendar view misses events that started before the displayed range (multi-day events cut off) · Issue #3362 · GladysAssistant/Gladys · GitHub

For the « +1 » in the month view: a click on it opens the complete list of events for the day. If the views seemed inconsistent with each other, it was surely due to this bug: the day view did not display holidays that started on previous days. Once fixed, it will be consistent everywhere.

I will get back to you here as soon as the fix is available in a version of Gladys!

Hi everyone!

This topic is now in development.

A PR has been opened to also display events that overlap with the calendar period, not just those that start inside it:

Feel free to follow the PR, test (optional, especially for small requests) and give your feedback here if needed.

Hello,

The calendar also displays events that overlap with the displayed period, not just those that start within it. This is fixed in Gladys Assistant 5.3.3.

The details are in the announcement:

Great, excellent responsiveness.