fix(official-bots): NCS-70-auto-register official bots with account service #59

Merged
shosho996 merged 2 commits from worktree-fix+NCS-70-official-bots-auto-register into main 2026-06-03 13:27:03 +02:00
Owner
No description provided.
shosho996 added 2 commits 2026-06-03 13:25:43 +02:00
fix(official-bots): auto-register official bots with account service
Build & Test (NowChessSystems) TeamCity build failed
e3503642cd
On startup, OfficialBotService now calls POST /api/account/official-bots/sync
(internal endpoint) to ensure all bots in BotController are registered in the
account DB. Without this, OfficialChallengeResource returns 404 for all
official bot challenges because no entries exist.

The sync is idempotent: existing bots are skipped. Startup failure in the
account service is logged but does not prevent the bot service from starting.

Closes NCS-70
https://knockoutwhist.youtrack.cloud/issue/NCS-70

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
style(account): fix scalafmt violation in AccountResourceTest
Build & Test (NowChessSystems) TeamCity build finished
c91953532a
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
shosho996 merged commit 7117a93376 into main 2026-06-03 13:27:03 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NowChess/NowChessSystems#59