fix(official-bots): auto-register official bots with account service #60

Merged
Janis merged 2 commits from worktree-fix+NCS-70-official-bots-auto-register into main 2026-06-05 09:49:31 +02:00
Member
No description provided.
Janis added 2 commits 2026-06-05 09:48:40 +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>
Janis merged commit f3d96fd700 into main 2026-06-05 09:49:31 +02:00
Janis deleted branch worktree-fix+NCS-70-official-bots-auto-register 2026-06-05 09:49:31 +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#60