Skip to content

fix: Wrap watchlist set operation in database transaction (apn-7mukl)#297

Merged
paulvanbrenk merged 2 commits intomainfrom
merge/apn-u9ef4a
Feb 16, 2026
Merged

fix: Wrap watchlist set operation in database transaction (apn-7mukl)#297
paulvanbrenk merged 2 commits intomainfrom
merge/apn-u9ef4a

Conversation

@paulvanbrenk
Copy link
Collaborator

Summary

  • Wraps the remove+add watchlist operations in an explicit database transaction using CreateExecutionStrategy for SQL Server retry compatibility
  • Prevents race condition where concurrent requests could interleave between remove and add, causing unexpected watchlist state

Test plan

  • All 392 tests pass (dotnet test PatchNotes.slnx)
  • Clean rebase onto current main

MR: apn-u9ef4a | Bead: apn-7mukl | Worker: dementus

…mukl)

The PUT /api/watchlist endpoint removed existing items then added new ones
without a transaction, allowing concurrent requests to interleave and
produce unexpected results. Wrap the remove+add in an explicit transaction
using CreateExecutionStrategy for SQL Server retry compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@paulvanbrenk paulvanbrenk merged commit b416f1c into main Feb 16, 2026
4 checks passed
@paulvanbrenk paulvanbrenk deleted the merge/apn-u9ef4a branch February 16, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant