-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support rrules with BYDAY
frequencies
#3273
Conversation
8e7f231
to
5be5d21
Compare
0066075
to
59aa0bd
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.
Cool 😻 🎉
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.
RRULE:FREQ=MONTHLY;UNTIL=20250502T220000Z;INTERVAL=1;BYMONTHDAY=3
still produces a ValueError('by_set_pos must not be None')
(from outlook.calendar.txt
in #3227)
Right now, we only support recurrence rules which can be also be created from within the recurrence rule form. However, this recurrence rule repeats every third day of the month, which cannot be expressed in the recurrence rule form (We only support monthly recurrences if we specify the nth-week and a weekday). So this error is intentional |
For example, `-1SU`. Unfortunately this commit contains a manual parsing implementation, because the `icalendar` package does not support these right now. (Though it will at the next update)
28ca313
to
94c01c4
Compare
For example, `-1SU`. Unfortunately this commit contains a manual parsing implementation, because the `icalendar` package does not support these right now. (Though it will at the next update)
Short description
This pr is blocked because it depends on #3229, but it can already be reviewedThe blocker is now resolved
This pr adds support for importing events with rrules that contain
BYDAY
entries with frequencies, for example-1SU
(which means repeat every last Sunday).Unfortunately the icalendar library does not parse these entries fully right now, so this pr also implements some manual parsing. However, in its next major version icalendar will add support for that.
Proposed changes
BYDAY
entry has a frequency, and use that frequency as a value forBYSETPOS
BYDAY
weekdaysSide effects
/
Resolved issues
Fixes: #3227
Pull Request Review Guidelines