Promote dev→uat: GRO-1982 pet_size_category extra_large enum migration #126
Reference in New Issue
Block a user
Delete Branch "dev"
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?
Promotes dev to uat. The critical fix is the pet_size_category enum migration (GRO-1982, PR #124) which unblocks the UAT reset-demo-data CronJob that was failing with:
invalid input value for enum pet_size_category: "extra_large"
Migration 0037_add_extra_large_to_pet_size_category.sql adds the value to the enum so the seed can complete.
Also includes:
b15a53a: deterministic TestCooper/TestRocky medical alerts (GRO-1962)1faa794,b928acf: credential password re-run fix (GRO-1977)dd22059: missing coat_type enum values (GRO-1971)cc @cpfarhood
GRO-1979: The pet_size_category enum created in 0031_buffer_rules.sql contained ('small', 'medium', 'large', 'xlarge'), but the drizzle schema and seed.ts both use 'extra_large'. The mismatch caused the UAT seed job to fail with: invalid input value for enum pet_size_category: "extra_large" This migration adds the 'extra_large' value to pet_size_category and registers it at idx 37 in the drizzle journal (sequel to 0035/0036 which registered short/medium/silky in coat_type under GRO-1971). Non-transactional per Postgres restriction on ALTER TYPE ADD VALUE. Co-Authored-By: Paperclip <noreply@paperclip.ing>QA Review: Changes Requested
CI Status: All PR checks green (Lint & Typecheck ✓, Test ✓, Build & Push Docker Images ✓).
Code review: The migration SQL, journal entry, and Dockerfile changes are correct and address the stated bug.
Missing UAT_PLAYBOOK.md update
This PR changes user-facing behaviour:
GET /api/petsresponses will now includepetSizeCategory: "extra_large"(previously the seed crashed before writing any pet records). A UAT playbook test case is required before promotion to UAT.Precedent: TC-API-3.27 (added for GRO-1971) verifies
coat_typeenum values. A parallel test case forpet_size_categoryis needed here.Required addition to
UAT_PLAYBOOK.md(suggested wording):| TC-API-3.28 | Verify pet_size_category enum has extra_large | After UAT seed completes, GET /api/pets and confirm at least one pet has petSizeCategory: "extra_large" | UAT seed jobs complete 1/1 with no enum error; at least 1 pet returned with petSizeCategory: "extra_large" |
Please add this (or equivalent) test case to
UAT_PLAYBOOK.mdondevand re-submit.Note: The push-event Docker build (run 2253) showed an infrastructure failure due to act runner cache corruption — transient runner issue, not a code defect. The PR-event Docker build (run 2254) passed cleanly.