[scheduler] Keep the occurrence date when editing only one recurring event#23007
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@rita-codes @michelengelen Kindly have a review on this pr. Thanks! |
Deploy previewhttps://deploy-preview-23007--material-ui-x.netlify.app/Bundle size
Check out the code infra dashboard for more information about this PR. |
|
Nice catch! The fix looks correct — it mirrors One related thing worth folding in: the |
|
@rita-codes |
|
Thanks for the docs update! Two small things:
After that it's good to merge! |
|
Done, thanks! Deleted the line so it's back to plain |
rita-codes
left a comment
There was a problem hiding this comment.
Thanks for fixing this!! 👏
Fixes a bug where editing a single recurring occurrence (scope "only this") without changing its date dropped the detached event onto the series
DTSTART.applyRecurringUpdateOnlyThisonly set the detached event'sstart/endwhen the caller providedchanges.start/changes.end.extractStandaloneEventbuilds the detached event from the series model, whosestart/endare theDTSTART/DTEND, so whenchangesomitted them the detached event kept theDTSTART. TheEXDATEfor the edited day was still added, so the edited occurrence disappeared and a duplicate appeared on the first day of the series.The fix defaults
start/endto the edited occurrence (and the computed occurrence end) whenchangesomit them, matching the existingapplyRecurringUpdateFollowing. The built-in event dialog always submitsstart/end, so it was not affected; the publicstore.updateRecurringEventAPI with partial changes hit the bug.Closes #22962
Changelog
Editing a single recurring occurrence ("only this") without changing its date no longer moves the event onto the series start date.