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

Dealing with EXDATES in ITip\Broker & fix for #126 #205

Merged

Conversation

ahackschmitz
Copy link
Contributor

This PR solves two issues:

  • parseEventInfo() only returned the value of the first EXDATE present in an object
  • if an application swapped EXDATE-values in a PUT, the $significantChangeHash would imply a real change of the event happened

Also see the initial issue & the thread in this commit.

@Hywan Hywan added the bug label Feb 5, 2015
@@ -855,7 +855,10 @@ protected function parseEventInfo(VCalendar $calendar = null) {
$sequence = $vevent->SEQUENCE->getValue();
}
if (isset($vevent->EXDATE)) {
$exdate = $vevent->EXDATE->getParts();
foreach ($vevent->select('EXDATE') as $val) {
$exdate = array_merge($exdate, $val->getParts());
Copy link
Member

Choose a reason for hiding this comment

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

Should we consider the PRIORITY property here to sort EXDATE before merging them? Because order is important when merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed via Slack yesterday you: there is no relation between PRIORITY and EXDATE. And the exdates get sorted (so we have earliest to latest in our variable) after merging values of all EXDATE-properties.

Did I miss something?

Copy link
Member

Choose a reason for hiding this comment

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

No, you are good 👍

@ahackschmitz
Copy link
Contributor Author

anything missing for you, @evert? :)

evert added a commit that referenced this pull request Feb 18, 2015
…ificantChange-check

Dealing with EXDATES in ITip\Broker & fix for #126
@evert evert merged commit 13efc2e into sabre-io:3.3 Feb 18, 2015
@evert
Copy link
Member

evert commented Feb 18, 2015

Sorry for the delay armin. Just noticed this on my todo list from a few days ago :S

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

Successfully merging this pull request may close these issues.

3 participants