ietf-tools / datatracker

The day-to-day front-end to the IETF database for people who work on IETF standards.
https://datatracker.ietf.org
BSD 3-Clause "New" or "Revised" License
535 stars 316 forks source link

Refactor generation of iCalendar files #5393

Open jennifer-richards opened 1 year ago

jennifer-richards commented 1 year ago

Description

The datatracker generates iCalendar (RFC5545) compatible files in several places. These are generated via Django template interpolation. These templates involve quite a bit of conditional logic and wind up being fragile. I suggest investigating whether it's practical to offload generation of the iCalendar file to a library.

https://pypi.org/project/icalendar/ seems to be an obvious package to consider.

Code of Conduct

rjsparks commented 9 months ago

@alexamirante reports that the current handcruft is breaking Thunderbird's calendar here:

DESCRIPTION:
 Note: Moving the meeting to review I-D draft-ietf-mpls-mna-usecases based on the authors request.
\

\
\n
 \nAgenda:
  https://datatracker.ietf.org/meeting/interim-2023-mpls-17/materials/agenda-interim-2023-mpls-17-mpls-01-00\n
jennifer-richards commented 4 months ago

It was pointed out in #7113 that the current mechanism for including timezone data includes daylight savings RDATE fields going back to the early 1900s. If possible, the timezone data should be pruned to relevant entries.