Skip to content
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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

david-venhoff
Copy link
Member

@david-venhoff david-venhoff commented Dec 6, 2024

Short description

This pr is blocked because it depends on #3229, but it can already be reviewed
The 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

  • Check if the BYDAY entry has a frequency, and use that frequency as a value for BYSETPOS
  • Handle edge cases
  • Implement some manual parsing for BYDAY weekdays

Side effects

/

Resolved issues

Fixes: #3227


Pull Request Review Guidelines

@david-venhoff david-venhoff added the blocked Blocked by external dependency label Dec 6, 2024
@david-venhoff david-venhoff force-pushed the bugfix/rrule_with_byday_frequency branch from 8e7f231 to 5be5d21 Compare December 6, 2024 13:39
@david-venhoff david-venhoff removed the blocked Blocked by external dependency label Dec 11, 2024
@david-venhoff david-venhoff force-pushed the bugfix/rrule_with_byday_frequency branch from 5be5d21 to 0066075 Compare December 11, 2024 13:56
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)
@david-venhoff david-venhoff force-pushed the bugfix/rrule_with_byday_frequency branch from 0066075 to 59aa0bd Compare December 11, 2024 13:57
Copy link
Member

@MizukiTemma MizukiTemma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 😻 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

External calendars created in outlook with recurring events cannot be imported
2 participants