Files
SVSimServer/SVSim.EmulatedEntrypoint/Controllers/AdminController.cs
gamer147 3a52115551 import_viewer: clean orphan ViewerEventCounter rows on shrinking re-import
When missions/achievements shrink between re-imports, Pass B and Pass C
now compute the set of (EventKey, Period) counter keys from OLD rows
(before Clear()) and delete any that are not referenced by the new
payload. Prevents stale counters accumulating across import cycles.

TDD: two new failing tests written first (RED), then the fix (GREEN).
All 1383 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 20:37:11 -04:00

29 KiB