FA-76992 / Calendar recurrence rules / Member archive
Applying moved and cancelled instance overrides in a window query: override order · case 02
Of two overrides for the same instance, the earlier edit wins.
Case contract
A daily-interval series of count instances. overrides is an ordered list of [original_date, new_date] where new_date None cancels; for repeated originals the last override wins; overrides whose original is not a series instance are ignored. Return [original, actual] pairs for instances whose actual date lies in [window_start, window_end], sorted by actual then original date.
Why this case matters
Recurring calendar series are expanded into concrete instances for display, reminders and conflict checks.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| last override wins | [["2024-02-01", "2024-02-01"], ["2024-02-03", "2024-02-03"], ["2024-02-04", "2024-02-04"], ["2024-02-02", "2024-02-10"]] | [["2024-02-01", "2024-02-01"], ["2024-02-02", "2024-02-03"], ["2024-02-03", "2024-02-03"], ["2024-02-04", "2024-02-04"]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗