Skip to content

Simplify backend: remove Result types, streamline controllers, fix races#48

Merged
spicycoder merged 6 commits into
mainfrom
chore/upgrade-dependencies
Jun 20, 2026
Merged

Simplify backend: remove Result types, streamline controllers, fix races#48
spicycoder merged 6 commits into
mainfrom
chore/upgrade-dependencies

Conversation

@spicycoder

Copy link
Copy Markdown
Owner
  • Replace 6 Result discriminated unions with Room? return types
  • RoomController: try/catch for domain exceptions instead of switch-on-result
  • PlayerConnectionTracker: single-instance, lock Join/Leave, fix scope disposal
  • Remove PostgreSQL URI parser from Program.cs
  • Clean up Bootstrap.cs (params Assembly[] -> Assembly?)
  • Remove dead code from ServiceDefaults/Extensions
  • Remove _ = ct discards from RoomRepository
  • Fix PokerHub: group join inside validation block
  • Fix integration test: 400 -> 404 for id=0
  • Frontend: handle 409 Conflict in JoinRoomForm

- Replace 6 Result discriminated unions with Room? return types
- RoomController: try/catch for domain exceptions instead of switch-on-result
- PlayerConnectionTracker: single-instance, lock Join/Leave, fix scope disposal
- Remove PostgreSQL URI parser from Program.cs
- Clean up Bootstrap.cs (params Assembly[] -> Assembly?)
- Remove dead code from ServiceDefaults/Extensions
- Remove _ = ct discards from RoomRepository
- Fix PokerHub: group join inside validation block
- Fix integration test: 400 -> 404 for id=0
- Frontend: handle 409 Conflict in JoinRoomForm
- All handlers return 'saved' consistently
- StatsCard bars capped at 100% to prevent overflow
@spicycoder spicycoder merged commit bf79b4f into main Jun 20, 2026
7 checks passed
spicycoder added a commit that referenced this pull request Jun 20, 2026
…gs (#49)

The simplify-backend PR (#48) removed the hand-rolled URI parser that converts postgresql:// URIs to Npgsql connection strings. Npgsql doesn't natively support the URI format, so the app fails to start when statsdb connection string uses postgresql:// format.
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