Prevent duplicate suspicious registration alerts #1019

Merged
jimmyb merged 1 commit from codex/issue-1011-idempotent-discord-alerts into master 2026-11-06 12:24:57 -06:00
Member

Prevent duplicate Discord alerts when a suspicious registration is handled repeatedly or overlapping workers deliver the same audit.

Serialize audit creation per user and page delivery per audit, preserving pagination and committed retry checkpoints. Retry database-only registration transactions up to three times to handle deadlocks between distinct registrations; webhook delivery transactions are never automatically retried.

Verification: all 134 focused tests passed on MariaDB 12.3, including overlapping workers, distinct-registration deadlocks, registration retries, and partial-delivery recovery. SQLite passed 129 tests with five MariaDB-only tests skipped. Pint, PHPStan, and diff checks passed.

Webhook acceptance followed by a lost response or worker crash remains an ambiguous delivery outcome.

Fixes #1011

Prevent duplicate Discord alerts when a suspicious registration is handled repeatedly or overlapping workers deliver the same audit. Serialize audit creation per user and page delivery per audit, preserving pagination and committed retry checkpoints. Retry database-only registration transactions up to three times to handle deadlocks between distinct registrations; webhook delivery transactions are never automatically retried. Verification: all 134 focused tests passed on MariaDB 12.3, including overlapping workers, distinct-registration deadlocks, registration retries, and partial-delivery recovery. SQLite passed 129 tests with five MariaDB-only tests skipped. Pint, PHPStan, and diff checks passed. Webhook acceptance followed by a lost response or worker crash remains an ambiguous delivery outcome. Fixes #1011
Prevent duplicate suspicious registration alerts
All checks were successful
linter / quality (pull_request) Successful in 5m17s
tests / ci (pull_request) Successful in 18m52s
84dcc917e6
jimmyb merged commit 8f12bd456c into master 2026-11-06 12:24:57 -06:00
jimmyb deleted branch codex/issue-1011-idempotent-discord-alerts 2026-11-06 12:24:57 -06:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MyVideoGameList/myvideogamelist.com!1019
No description provided.