allenporter/ical

Deleting recurring event with single instance

allenporter opened this issue · 1 comments

Describe the bug
Trying to delete a recurring event that has a single instance doesn't seem to work.

To Reproduce
Create an event like this:

BEGIN:VEVENT 
DTSTAMP:20221212T061012 
UID:3bde717c-79e3-11ed-8495-066a07ffbaf5 
DTSTART:20221212 
DTEND:20221213 
SUMMARY:Daily All Day [1] 
CREATED:20221212T060718 
DESCRIPTION: 
LAST-MODIFIED:20221212T061012 
RRULE:FREQ=DAILY;UNTIL=20221212 
EXDATE:20221214 
SEQUENCE:0 
END:VEVENT

Then deleting with:

recurrence_id: "20221212"
recurrence_range: "THISANDFUTURE"
uid: "3bde717c-79e3-11ed-8495-066a07ffbaf5"

Doesn't work

Expected behavior
This should make the entire series go away since its deleting a singleton instance.

Additional context
Unclear how we're supposed to know this is the only instance. Maybe requires evaluating the recurrence rule at the end to see.

There are additional issues with deletion and edit of all day events as well: The last day stays included, and edits raise an exception due to dateutil.rrule limitations.