feat: add event-scoped schedule deletion and import date guard

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-10-10 01:44:40 +02:00
1 parent 15789ab04d
commit 22de4a8645
12 files changed
+2034 -14

No files matched your search

+14
View File
@@ -50,6 +50,20 @@ contacts + registrations.
Linking a speaker to a session fires the `session_speakers_speaker_promote`
trigger, which promotes an existing registration to `speaker`.
Both import paths are guarded by the event's configured `start_date` /
`end_date`: any Sessionize session dated outside that inclusive range aborts the
RPC before speakers, sessions, slots, links, registrations, audit rows, or event
sync timestamps are changed. The exception includes the bad date, the configured
range, and the actionable check to verify the Sessionize endpoint, Excel export,
or event dates. Existing historical rows outside the range are retained by later
successful imports; deleting or reconciling them is a separate, explicitly
approved data-repair task.
The date guard lives in
[`20261009225632_guard_sessionize_dates.sql`](../../supabase/migrations/20261009225632_guard_sessionize_dates.sql).
It is not automatically deployed by being present in the repository; apply it
through the normal reviewed migration path for each environment.
## How it reaches things
```mermaid