feat: finalize ticket merging and speaker-aware imports
This commit is contained in:
1 parent
648daa0794
commit
4e71e9b797
35 files changed
+1772
-348
No files matched your search
+40
-1
@@ -6,6 +6,31 @@ Supabase Postgres container.
|
||||
|
||||
## Run it
|
||||
|
||||
Assigned-speaker/Pretix role regression tests (rollback-only):
|
||||
|
||||
```bash
|
||||
{ printf 'BEGIN;\n'; cat supabase/migrations/20261009225632_guard_sessionize_dates.sql supabase/migrations/20261010102828_registration_ticket_merge.sql supabase/migrations/20261010111607_preserve_assigned_speaker_role.sql supabase/tests/assigned_speaker_role_tests.sql; } | docker exec -i supabase_db_Convivo psql -X -U postgres -d postgres -v ON_ERROR_STOP=1
|
||||
```
|
||||
|
||||
Covers purchased attendee tickets becoming assigned speakers, assignment before
|
||||
ticket creation, repeated Pretix updates, Excel/Pretix replay, assignment updates,
|
||||
staff/sponsor precedence, service-session exclusion and other-event isolation.
|
||||
QR, ticket ID, check-in and points are preserved.
|
||||
|
||||
Ticket merge regression tests (rollback-only, including prior date-guard functions
|
||||
when the local database has not installed that migration):
|
||||
|
||||
```bash
|
||||
{ printf 'BEGIN;\n'; cat supabase/migrations/20261009225632_guard_sessionize_dates.sql supabase/migrations/20261010102828_registration_ticket_merge.sql supabase/tests/registration_ticket_merge_tests.sql; } | docker exec -i supabase_db_Convivo psql -X -U postgres -d postgres -v ON_ERROR_STOP=1
|
||||
CONVIVO_ADMIN_URL=http://127.0.0.1:3001 npm test --prefix e2e -- registration-ticket-merge.spec.ts --project=chromium
|
||||
```
|
||||
|
||||
Coverage includes ticket-only totals, authorization, cross-event isolation,
|
||||
last-speaker-safe transfers, duplicate assignments, staff precedence, retained
|
||||
ticket points/QR/check-in, source activity rejection, import provenance and
|
||||
Excel/API replay. Browser tests cover immediate check-in feedback and failure
|
||||
rollback, imported-only merge buttons, suggestions, manual choice, cancel/retry.
|
||||
|
||||
```bash
|
||||
npm run db:start # the Supabase core must be running
|
||||
npm run test:rpc # runs supabase/tests/rpc_tests.sql, exits non-zero on failure
|
||||
@@ -149,7 +174,21 @@ matching, nonempty Area/Topic fallback, complete comma-separated topic strings,
|
||||
flattened multi-speaker session grouping, duplicate speaker IDs/emails, singular
|
||||
Speaker Id fallback, legacy two-sheet plural Speaker Ids, scheduled time and
|
||||
metadata preservation, service-session classification, and unscheduled-row
|
||||
filtering. See [supported Excel formats](./sidecar.md#what-it-does).
|
||||
filtering. Generated XLSX service regressions also cover an explicit service
|
||||
sheet alongside flattened talks, a service-only workbook, missing-ID service
|
||||
classification, duplicate service rows, stable generated IDs across repeated
|
||||
parses and row reordering, unchanged IDs after duration/description edits,
|
||||
distinct identities by title/room/date/start, preservation of explicit source
|
||||
IDs, and exclusion of untitled, invalid-time and ID-less talk rows. See
|
||||
[service export limitations and accepted service format](./sidecar.md#services-omitted-from-the-accepted-session-export).
|
||||
|
||||
Read-only validation of the supplied 2026-10-09 workbook compared its complete
|
||||
parsed payload against the committed parser: unchanged 21 sessions, 24 speakers,
|
||||
21 speaker links and zero service sessions. Parsing twice produced identical
|
||||
payloads. No HTTP import or database writes were performed. Parser repeatability
|
||||
and the existing RPC external-ID upsert contract support idempotent imports;
|
||||
these database-free checks do not verify a live import or prove that any
|
||||
configured API endpoint includes the services missing from Excel.
|
||||
|
||||
## Files
|
||||
|
||||
|
||||
Reference in new issue
Block a user