Seed Demo Guests and their decided Games on local and preview stacks #395
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.
Blocks
#396 Show the TanStack devtools on local and preview stacks behind a runtime probe
amaurycoudr/chess-project
Reference
amaurycoudr/chess-project#395
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
#394
What to build
Local and preview databases hold two Demo Guests and their decided Games. Running
pnpm devseeds the local database right after migrating it.db:seedseeds it again on demand. Every preview deploy seeds its stack aftermigrate, and fails if the seed fails. The seed refuses to run unlessDEVTOOLS_ENABLEDis exactlytrue, so production is never seeded. Demo Guest A owns the full ending matrix; Demo Guest B owns one Game that A can read.This ticket introduces the
DEVTOOLS_ENABLEDflag:seedservice;pnpm env:syncwrites it into.env.local.It also adds the glossary term "Demo Guest" and the ADR recording the runtime per-stack gate.
Seam: API integration, through the RPC on the in-process Postgres; and the deploy verification, for the preview's seed step.
Acceptance criteria
game.listreturns its Games inendedAtorder, with the expected results.game.get, and is absent from A's list.DEVTOOLS_ENABLEDis unset, or set to anything buttrue, naming the flag.devscript seeds aftermigrate:dev;db:seedand its dev variant exist; the seed prints the Demo Guests and the next steps.up.shruns theseedservice aftermigrateon preview stacks only, and a non-zero exit fails the deploy.verify.shaccepts theseedcontainer on previews and checks that it exited cleanly; production stays app, db and migrate only.GLOSSARY.mddefines Demo Guest, and a new ADR, listed in the index, records that devtools and demo data are gated at runtime per stack.mentioned in issue #396
marked this issue as related to #394
marked this issue as related to #396
mentioned in merge request !522