Repository navigation
Tickets: erase each event's pretix data after the post-event hold - #2672
Conversation
Adds ITicketingPlatform.EraseEventPersonalDataAsync. pretix runs its event shredder (taking the shop offline first); Box Office and Hi.Events keep nothing per event. A daily Tickets job calls it once per event after the hold, records PersonalDataErasedAt and audits it. The hold (30 days) is now a setting on /Settings#tickets and drives the deletion hold too. Fixes #2623 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0186neA3sf8No56EAXqksPWs
|
@codex review Generated by Claude Code |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2787a4cd03
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Reviewed commit 2787a4c. 1 inline finding(s) posted. |
PR Surface ReportCompared Summary: 32 changed file(s) | EF migrations: 1 added file(s), max 1/1 per context Reforge Surface Score
Section Deltas
Section Size & Complexity Deltas
Rule Deltas
Corpus Size & Complexity
At head: largest class Published Write Surface16 of 57 sections publish write capability, 48 interfaces (0). Interface SurfaceAdded interface methods
Diff Size
New Files
EF Migrations (OK)
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0186neA3sf8No56EAXqksPWs
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0186neA3sf8No56EAXqksPWs
|
This PR has a merge conflict with |
…hred # Conflicts: # src/Sections/Humans.Tickets/Services/Checkout/ITicketCheckoutService.cs # tests/Humans.Tickets.Tests/Services/Checkout/TicketCheckoutServiceTests.cs
Fixes main's build: #2672 and #2614 crossed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0186neA5yDYsREy6AJ7HhDer
…napshot (#2790) TicketEventPersonalDataErasure (#2672) was generated before DropRetiredChildPriceColumns (#2565) merged, so its Designer still lists ChildMaxAge/ChildPriceMinor. Both are merged and applied on QA, so they stay frozen. This EF-generated no-op on top gives the chain a newest Designer identical to the snapshot, which the prod promotion check needs. No schema change; has-pending-model-changes reports none. Claude-Session: https://claude.ai/code/session_0186neA6Nex6SZVTX9rownkq Co-authored-by: Claude <noreply@anthropic.com>
Requested by Peter · project thread
What
After an event's post-event hold, Humans asks its ticketing platform once to erase the event's personal data. For pretix that runs pretix's event shredder, which clears the order log's old emails and the Stripe plugin's billing details. Peter said yes to this on 2026-11-27 and asked for the 30-day hold to be a setting.
ITicketingPlatform.EraseEventPersonalDataAsync(string? platformEventRef). pretix takes the shop offline if it is live (pretix shreds only an event that is over and offline), exports with every shredder the event lists, then shreds and polls (409means wait) until pretix confirms. Any other answer throws. Box Office and Hi.Events do nothing: Box Office keeps nothing per event, and Hi.Events' per-order anonymise already scrubs its copy.TicketEventErasureJob, daily at 05:00 UTC (after the midnight account deletions, so holders whose deletion was held get erased from their orders first). It setsticket_sales_events.PersonalDataErasedAtand auditsTicketEventPersonalDataErased. A failure is logged and retried on the next run./Settings#tickets(ticket_settings.PostEventHoldDays, null reads as 30, audited asTicketPostEventHoldSet). It sets both the ticket-holder deletion hold and the shred date, so the shred never runs before the deletions it has to follow.deploy/pretix/bootstrap.pyaddsevent.settings.general:writeto the API team, so Humans can take a shop offline.Why
Erasing a pretix buyer was never complete: pretix's API can't delete the order log entry or the payment billing details, and only the event shredder removes them (Fixes #2623).
Existing surface checked
One new interface method on
ITicketingPlatform(Peter approved it on #2623). The setting reuses theticket_settingssingleton and the existing Tickets settings tab instead of adding a new settings store. The audit and job followTicketResaleRefundJob. The hold-date calculation is the existingTicketQueryService.PostEventHoldDate, made internal and given the day count.Checklist
tier:standard.20261127152902_TicketEventPersonalDataErasurewas generated bydotnet ef migrations add. The snapshot also picks up earlier property renames (HasColumnName) that main's snapshot had not recorded; these are not schema changes.has-pending-model-changesis clean.mainonpeterdrier/Humans, branched offorigin/main, issue refs qualified.NuGet / new rulenone.dotnet build Humans.slnx -v quietand the fulldotnet test Humans.slnx -v quietpass (re-ran Pretix and Tickets after merging main)./Settings#ticketstab. That page is admin-only, so it has no localization.Reviewer notes
bootstrap.py(or give the pretix "Humans API" teamevent.settings.general:write), or the offline step answers 403 and the job logs a failure every day.event.orders:writeisn't enough, the job's warning log says so.Closes
Fixes #2623
Generated by Claude Code