Fold the Room into RoomService, so the Room's report type needs no framework-free file #393
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#374 Read stored Games over the wire: the caller's list and one Game by id
amaurycoudr/chess-project
Reference
amaurycoudr/chess-project#393
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#355
What to build
Fold the API's
Room(apps/api/src/room/room.ts) intoRoomService, soroom/holds its module, controller and service and no separate framework-freeRoomclass.Why: Guest history put the
DecidedGametype, the record a Room reports once its Game is decided, ingames/games.service.ts.room.tsimports it, and underverbatimModuleSyntaxthat type-only import still loads the service (Nest, drizzle) at runtime, breaking API rule 1 ("room.tsstays framework-free"). The owner chose to remove the split rather than move the type.room.test.ts,room-play,room-offer,room-offer-unanswered,room-nudge,room-decided,room-changes) are kept, going throughRoomService's public methods withroom.fixtures.ts; no coverage is lost.apps/api/CODING_STANDARDS.md(layout paragraph, rules 1, 3 and 6) is rewritten to match, at the owner's request in this merge request. The lint config'sroom.tsframework-free entry is updated accordingly.Seam:
RoomService's public methods withroom.fixtures.ts, unit; the RPC wire stays green unchanged.Acceptance criteria
apps/api/src/room/room.tsno longer exists; its behaviour lives inRoomService.RoomServicewhere it built aRoomdirectly; no test is dropped without an equivalent.apps/api/CODING_STANDARDS.mdand the lint config describe the new layout; no stale mention of a framework-freeroom.tsremains.marked this issue as related to #355
marked this issue as related to #374
mentioned in merge request !515
mentioned in commit
d6bf989952mentioned in commit
448e4b873dmentioned in commit
6e466f5e70mentioned in commit
458bb86dc5mentioned in commit
869a3c86admentioned in commit
c5b1397384