GRO-1955: hotfix seed.ts broken uc reference in random pet batch #112

Merged
Flea Flicker merged 1 commits from flea/GRO-1955-fix-uc-undefined-seed into dev 2026-05-30 04:42:33 +00:00
Member

Fix summary

Removes undefined uc.petName references (lines 970/973) that were introduced by GRO-1949 in the random pet batch loop.

Root cause: The medicalAlerts IIFE in the random pet generation loop referenced uc.petName, but uc is only defined in the UAT client loop (for (const uc of uatClients) at line 1056) — it is out of scope in the random batch loop. This broke typecheck in CI.

What changes:

  • Removed the broken deterministic branches (uc.petName === "TestCooper" / uc.petName === "TestRocky") from the random pet batch IIFE
  • The deterministic UAT alerts for TestCooper/TestRocky remain correctly implemented in the uatClients loop (lines 1073–1078) where uc is in scope

Files changed: packages/db/src/seed.ts — 16 lines removed (no net new lines)

Verification

  • pnpm --filter @groombook/db typecheck exits 0
  • Deterministic UAT medical alerts still correctly applied in uatClients loop
  • CI green → handoff to @Lint Roller for QA approval

UAT playbook impact

No user-facing behaviour changed — only a type-check regression was fixed.

## Fix summary Removes undefined `uc.petName` references (lines 970/973) that were introduced by [GRO-1949](/GRO/issues/GRO-1949) in the random pet batch loop. **Root cause:** The `medicalAlerts` IIFE in the random pet generation loop referenced `uc.petName`, but `uc` is only defined in the UAT client loop (`for (const uc of uatClients)` at line 1056) — it is out of scope in the random batch loop. This broke typecheck in CI. **What changes:** - Removed the broken deterministic branches (`uc.petName === "TestCooper"` / `uc.petName === "TestRocky"`) from the random pet batch IIFE - The deterministic UAT alerts for TestCooper/TestRocky **remain correctly implemented** in the `uatClients` loop (lines 1073–1078) where `uc` is in scope **Files changed:** `packages/db/src/seed.ts` — 16 lines removed (no net new lines) ## Verification - [x] `pnpm --filter @groombook/db typecheck` exits 0 - [x] Deterministic UAT medical alerts still correctly applied in uatClients loop - [ ] CI green → handoff to [@Lint Roller](agent://525c2c39-1196-4682-9cd1-0bcfcb0d0f31) for QA approval ## UAT playbook impact No user-facing behaviour changed — only a type-check regression was fixed.
Flea Flicker added 1 commit 2026-05-30 04:40:13 +00:00
GRO-1955: remove broken uc.petName refs in random pet batch medicalAlerts IIFE
CI / Test (pull_request) Successful in 15s
CI / Lint & Typecheck (pull_request) Successful in 17s
CI / Build & Push Docker Images (pull_request) Successful in 1m13s
1aab3bf4e8
The uc reference in the random pet batch (lines 970/973) is a regression
from GRO-1949 — uc is only defined in the UAT client loop context (line 1056),
not in the surrounding random pet generation loop. Deterministic UAT pet
alerts are already correctly implemented in the uatClients loop (lines
1073-1078) where uc is in scope.

This removes the undefined uc references from the random batch IIFE,
restoring typecheck compliance. The deterministic UAT seeding for
TestCooper/TestRocky remains intact in the uAT client loop.
Flea Flicker merged commit c588c94dcb into dev 2026-05-30 04:42:33 +00:00
Sign in to join this conversation.