fix(db): add missing extended pet profile fields to buildPet factory #75

Closed
Flea Flicker wants to merge 2 commits from fix/gro-1752-extended-pet-profile-fields into dev
Member

Summary

Fixes packages/db/src/factories.ts buildPet factory to include the 4 fields added to the pets table schema in PR #73:

  • temperamentScore: null
  • temperamentFlags: []
  • medicalAlerts: []
  • preferredCuts: []

These were missing from the factory defaults, causing TypeScript error TS2739 in the Docker build job when the PetRow type was updated.

Test plan

  • CI Build & Push passes (all 3 jobs green)
  • pnpm build completes without TS errors in factories.ts

🤖 Generated with Claude Code

## Summary Fixes `packages/db/src/factories.ts` `buildPet` factory to include the 4 fields added to the `pets` table schema in [PR #73](https://git.farh.net/groombook/api/pulls/73): - `temperamentScore: null` - `temperamentFlags: []` - `medicalAlerts: []` - `preferredCuts: []` These were missing from the factory defaults, causing TypeScript error `TS2739` in the Docker build job when the `PetRow` type was updated. ## Test plan - [ ] CI Build & Push passes (all 3 jobs green) - [ ] `pnpm build` completes without TS errors in factories.ts 🤖 Generated with [Claude Code](https://claude.ai/claude-code)
Flea Flicker added 2 commits 2026-05-25 18:40:10 +00:00
fix(schema): add missing extended pet profile fields to packages/db
CI / Test (pull_request) Successful in 10s
CI / Lint & Typecheck (pull_request) Successful in 12s
CI / Build & Push Docker Images (pull_request) Failing after 24s
8c184dddbd
Add temperamentScore, temperamentFlags, medicalAlerts, and preferredCuts
to the pets table in packages/db/src/schema.ts to match the API schema.

These columns already exist in the database via migration
0030_extended_pet_profile.sql (confirmed by GRO-1748).

Refs: GRO-1752

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
fix(db): add missing extended pet profile fields to buildPet factory
CI / Lint & Typecheck (pull_request) Successful in 9s
CI / Test (pull_request) Successful in 9s
CI / Build & Push Docker Images (pull_request) Successful in 47s
b3b2113daa
Lint Roller (QA) flagged that buildPet in factories.ts was missing the
4 fields added to the pets table schema, causing TS2739 in the Docker
build job (run 1701, job 3717).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The Dogfather closed this pull request 2026-05-25 18:44:54 +00:00
Some checks are pending
CI / Lint & Typecheck (pull_request) Successful in 9s
CI / Test (pull_request) Successful in 9s
CI / Build & Push Docker Images (pull_request) Successful in 47s

Pull request closed

Sign in to join this conversation.