Repository navigation
fix: include RDATE in busy calculation - #691
SebastianKrupinski wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #691 +/- ##
============================================
- Coverage 98.76% 98.76% -0.01%
Complexity 1876 1876
============================================
Files 71 71
Lines 5346 5344 -2
============================================
- Hits 5280 5278 -2
Misses 66 66 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@SebastianKrupinski can you add some unit test case(s) that demonstrate that RDATE specifications will now be correctly processed. |
32f05b5 to
7081a17
Compare
7081a17 to
32416e3
Compare
|
I tested the code and it did what I expected. @SebastianKrupinski I can offer the missing test. I would put it here: https://github.com/sabre-io/vobject/blob/5e2f3388/tests/VObject/FreeBusyGeneratorTest.php#L389. I can't test RDATE together with RRULE here, because that only gets fixed by #716. |
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
32416e3 to
0ac6d7b
Compare
|
@phil-davis done
|
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
ndo84bw
left a comment
There was a problem hiding this comment.
Tests look good, 4 of 5 fail without the fix
|
@SebastianKrupinski Claude 🤖 pointed out that renaming the timezone names in the tests won't help here, because vobject/lib/TimezoneGuesser/FindFromTimezoneMap.php Lines 67 to 72 in 5e2f338 |
fix: include RDATE in busy calculation
ICal spec allows for events with only an RDATE. At the moment if an event only includes an RDATE and no RRULE it is skipped due to the current code path only checking for the existence of a RRULE.
RFC Reference https://datatracker.ietf.org/doc/html/rfc5545#section-3.8.5.2