-
Notifications
You must be signed in to change notification settings - Fork 426
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
Add alarm support to exported iCal. #5320
Add alarm support to exported iCal. #5320
Conversation
a2b8c58
to
7cb757b
Compare
c9ee8b8
to
8ad3818
Compare
@ThiefMaster I've done your suggestion and split the preference into two parts, it is commit cf265cf. I don't know how to do the hidden field thing you talk about, though, so it's not yet complete |
thanks! i added the HiddenUnless in my review comment; this should be all that's needed - the rest is magic ✨ that happens automatically when this validator is used |
OK @ThiefMaster! I think I have this fully implemented in 31386b8 |
Thanks, looks good! I'll test it tomorrow - already way too late anyway :D |
@ThiefMaster thanks! have a good evening :) |
Many (all?) calendar clients do not support adding reminders ("alerts" in iCal parlance) to external calendars syncrhonized via URL. Add a per-user preference to attach reminders to any events exported to iCal. Tested on local dev install both as a logged-in and anonymous user, both with and without a reminder preference. This produced an iCal that Apple Calendars properly recognized the reminders: BEGIN:VCALENDAR VERSION:2.0 PRODID:-//CERN//INDICO//EN BEGIN:VEVENT SUMMARY:testEvent title DTSTART;VALUE=DATE-TIME:20220425T150000Z DTEND;VALUE=DATE-TIME:20220425T170000Z DTSTAMP;VALUE=DATE-TIME:20220412T151800Z UID:indico-event-8@localhost DESCRIPTION:testEvent Description\n\nhttp://localhost:8000/event/8/ URL:http://localhost:8000/event/8/ BEGIN:VALARM ACTION:AUDIO DESCRIPTION:testEvent Description\n\nhttp://localhost:8000/event/8/ PRODID:-//CERN//INDICO//EN SUMMARY:testEvent title TRIGGER:-PT5M END:VALARM END:VEVENT END:VCALENDAR Fixed indico#5318
Instead of one field having two meaning, split the preferences into two, where one preference enables the iCal alert functionality, and the other chooses the timeout
4a3bf9d
to
65eb670
Compare
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.
Sorry, took a bit longer with the easter holidays etc. Looks all good and works fine as well. Thanks!
Thanks a lot!--
It's dark in this basement.
|
Many (all?) calendar clients do not support adding reminders ("alerts"
in iCal parlance) to external calendars syncrhonized via URL. Add a
per-user preference to attach reminders to any events exported to iCal.
Tested on local dev install both as a logged-in and anonymous user, both
with and without a reminder preference. This produced an iCal that Apple
Calendars properly recognized the reminders:
closes #5318