Commit 3cbf0be
committed
Output occurrences that fall in previous schedule using RDATE
A recurring meeting series is exported as one master event using DTSTART and RRULE.
Individual meetings that differ from the schedule are exported as separate override events,
each tagged with a RECURRENCE-ID pointing at the original slot it replaces.
The problem: when someone changes the series schedule, we insert a new current_schedule_start date as DTSTART.
But the older meetings that already happened before that new start are still exported as overrides, with a RECURRENCE-ID sitting before DTSTART.
Strict clients like OX complain about this and fail the input
This fix adds those older dates back as RDATE entries on the master event.
RDATE means "this date is also part of the recurrence set, even though the RRULE wouldn't generate it."
Now the override has a real instance to atccept it.
What does not get an RDATE:
- Occurrences at or after the new DTSTART: the RRULE already covers them, so they're valid instances on their own.
- Cancelled occurrences: those use EXDATE (removal), the opposite1 parent 6d973fc commit 3cbf0be
2 files changed
Lines changed: 38 additions & 10 deletions
File tree
- modules/meeting
- app/services/meetings
- spec/services/meetings
Lines changed: 33 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| |||
306 | 311 | | |
307 | 312 | | |
308 | 313 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
| 314 | + | |
317 | 315 | | |
318 | 316 | | |
319 | 317 | | |
320 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
321 | 341 | | |
322 | 342 | | |
323 | 343 | | |
| |||
367 | 387 | | |
368 | 388 | | |
369 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
370 | 395 | | |
371 | 396 | | |
372 | 397 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
| 258 | + | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
259 | | - | |
| 262 | + | |
260 | 263 | | |
261 | 264 | | |
262 | 265 | | |
0 commit comments