Skip to content

Don't expand events with REC.-ID but no master event #376

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

Closed
wants to merge 1 commit into from
Closed

Conversation

geier
Copy link
Member

@geier geier commented Mar 17, 2016

Until now we expanded all events with a RRULE or RDATE, even if only
VEVENTs (with the same UID) with specified RECURRENCE-ID parameters were
present. In this case, the expansion is nonsensical, because we do not
know the start (and end) datetime of the master (but only of the
exceptions).

This fixes #323.

Until now we expanded *all* events with a RRULE or RDATE, even if only
VEVENTs (with the same UID) with specified RECURRENCE-ID parameters were
present. In this case, the expansion is nonsensical, because we do not
know the start (and end) datetime of the master (but only of the
exceptions).

This fixes #323.
@geier
Copy link
Member Author

geier commented Mar 17, 2016

This isn't the cleanest solution, but it works.
@untitaker could you have a look? (I believe you know what's happening in expand since you recently refactored it)

@@ -12,7 +12,7 @@
logger = log.logger


def expand(vevent, href=''):
def expand(vevent, href='', expand=True):
Copy link
Member

Choose a reason for hiding this comment

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

Strongly dislike this, I'd prefer if we could move the entire logic into the expand function.

@untitaker
Copy link
Member

Even with the cleanest solution, I'd prefer not having any of those workarounds in khal, especially as it seems this is a bug in vdirsyncer (and nowhere else) anyway.

@geier
Copy link
Member Author

geier commented Mar 29, 2016

@untitaker: did you get any (private) feedback on pimutils/vdirsyncer#391?

@untitaker
Copy link
Member

No.

@geier geier changed the title Don't expand events with REC.-ID but master event Don't expand events with REC.-ID but no master event Mar 30, 2016
@untitaker
Copy link
Member

Can we close this?

@geier
Copy link
Member Author

geier commented Apr 13, 2016

yes

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.

KeyError on files with RECURRENCE-ID but no "master"
2 participants