Store answers atomically and limit word cloud input #31

Merged
gnilebein merged 1 commits from fix/atomic-votes into main 2026-11-08 22:35:42 +01:00
Owner
  • Run the checks and the insert of VoteService::submit() in one transaction
    with the slide row locked, so double clicks or retries cannot store a vote
    twice (also covers the Q&A upvote budget and word cloud duplicates).
  • Limit word cloud terms per request and per participant, and throttle
    answers per IP and minute (THROTTLE_VOTES_PER_MINUTE, 429 with message).
  • Treat array values in text fields as empty instead of storing "Array".
  • Move the throttle helper to AppController for reuse.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

- Run the checks and the insert of VoteService::submit() in one transaction with the slide row locked, so double clicks or retries cannot store a vote twice (also covers the Q&A upvote budget and word cloud duplicates). - Limit word cloud terms per request and per participant, and throttle answers per IP and minute (THROTTLE_VOTES_PER_MINUTE, 429 with message). - Treat array values in text fields as empty instead of storing "Array". - Move the throttle helper to AppController for reuse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gnilebein added 1 commit 2026-11-08 22:31:24 +01:00
Store answers atomically and limit word cloud input
CI / Deploy / deploy (push) Skipped
CI / Deploy / test (push) Successful in 51s
9c532d164f
- Run the checks and the insert of VoteService::submit() in one transaction
  with the slide row locked, so double clicks or retries cannot store a vote
  twice (also covers the Q&A upvote budget and word cloud duplicates).
- Limit word cloud terms per request and per participant, and throttle
  answers per IP and minute (THROTTLE_VOTES_PER_MINUTE, 429 with message).
- Treat array values in text fields as empty instead of storing "Array".
- Move the throttle helper to AppController for reuse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gnilebein merged commit 6912d045cf into main 2026-11-08 22:35:42 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gnilebein/Plenario#31