docs(UAT_PLAYBOOK): add TC-API-3.28 for pet_size_category enum (GRO-1999) #127

Merged
Flea Flicker merged 1 commits from fix/gro-1999-uat-seed-extra-large into dev 2026-06-01 13:50:17 +00:00
Member

GRO-1999 — UAT gate for pet_size_category enum (companion to PR #124)

GRO-1999 reports the UAT seed-test-data job (image 2026.05.31-5390131) failing with 22P02 invalid input value for enum pet_size_category: "extra_large". The enum drift was fixed in migration 0037_add_extra_large_to_pet_size_category.sql (merged via PR #124 / GRO-1979) — extra_large is now registered in the enum and the next migrate cycle will apply it to the UAT DB.

This PR adds the matching UAT regression test:

  • TC-API-3.28 — verify pet_size_category enum contains all 4 values used by seed.ts petSizeCategoryPool after the seed job completes.

Mirrors TC-API-3.27 (added in GRO-1971 / PR #118 for coat_type) so future enum drift on either dimension surfaces at the UAT gate instead of in a stuck CronJob.

Why this is docs-only

The actual SQL migration and _journal.json entry are already on dev via PR #124 (merged ahead of this branch). Once both this PR and PR #124 are promoted dev→uat, the UAT seed image picks up the corrected enum, the stuck seed-test-data-b5943fb job can be deleted, and Flux will recreate it with the new image.

Files changed

  • UAT_PLAYBOOK.md — add TC-API-3.28 (1 line)

Related

  • GRO-1999 — issue this PR closes
  • GRO-1971 — precedent (coat_type regression test, PR #118)
  • PR #124 — the actual enum-fix migration (already merged)
  • GRO-1950 — UAT regression that surfaced the underlying bug
## GRO-1999 — UAT gate for pet_size_category enum (companion to PR #124) GRO-1999 reports the UAT seed-test-data job (image `2026.05.31-5390131`) failing with `22P02 invalid input value for enum pet_size_category: "extra_large"`. The enum drift was fixed in migration `0037_add_extra_large_to_pet_size_category.sql` (merged via [PR #124 / GRO-1979](https://git.farh.net/groombook/api/pulls/124)) — `extra_large` is now registered in the enum and the next migrate cycle will apply it to the UAT DB. This PR adds the matching UAT regression test: - **TC-API-3.28** — verify `pet_size_category` enum contains all 4 values used by `seed.ts` `petSizeCategoryPool` after the seed job completes. Mirrors **TC-API-3.27** (added in GRO-1971 / PR #118 for `coat_type`) so future enum drift on either dimension surfaces at the UAT gate instead of in a stuck CronJob. ### Why this is docs-only The actual SQL migration and `_journal.json` entry are already on `dev` via PR #124 (merged ahead of this branch). Once both this PR and PR #124 are promoted dev→uat, the UAT seed image picks up the corrected enum, the stuck `seed-test-data-b5943fb` job can be deleted, and Flux will recreate it with the new image. ### Files changed - `UAT_PLAYBOOK.md` — add TC-API-3.28 (1 line) ### Related - [GRO-1999](/GRO/issues/GRO-1999) — issue this PR closes - [GRO-1971](/GRO/issues/GRO-1971) — precedent (coat_type regression test, PR #118) - [PR #124](https://git.farh.net/groombook/api/pulls/124) — the actual enum-fix migration (already merged) - [GRO-1950](/GRO/issues/GRO-1950) — UAT regression that surfaced the underlying bug
Flea Flicker added 1 commit 2026-06-01 13:37:31 +00:00
docs(UAT_PLAYBOOK): add TC-API-3.28 for pet_size_category enum verification (GRO-1999)
CI / Lint & Typecheck (pull_request) Successful in 15s
CI / Test (pull_request) Successful in 17s
CI / Build & Push Docker Images (pull_request) Successful in 30s
49d8ccc249
The 0037 migration (merged via PR #124 / GRO-1979) adds 'extra_large'
to the pet_size_category enum, fixing the 22P02 error in the UAT
seed-test-data job. Mirror the regression test added for coat_type
in TC-API-3.27: TC-API-3.28 explicitly verifies pet_size_category
contains all 4 values used by seed.ts  after
the seed job completes, so future enum drift on either dimension
surfaces at the UAT gate.

Refs: GRO-1999, GRO-1971 (precedent), PR #124 (the code fix).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Lint Roller approved these changes 2026-06-01 13:43:08 +00:00
Lint Roller left a comment
Member

QA approved. TC-API-3.28 correctly mirrors TC-API-3.27 pattern, covers all 4 petSizeCategoryPool values (small, medium, large, extra_large), and ties the regression back to GRO-1999. CI passed (lint, typecheck, test). UAT_PLAYBOOK.md updated as required per review policy. Handing to CTO.

QA approved. TC-API-3.28 correctly mirrors TC-API-3.27 pattern, covers all 4 petSizeCategoryPool values (small, medium, large, extra_large), and ties the regression back to GRO-1999. CI passed (lint, typecheck, test). UAT_PLAYBOOK.md updated as required per review policy. Handing to CTO.
The Dogfather approved these changes 2026-06-01 13:46:45 +00:00
The Dogfather left a comment
Member

CTO Review — Approved

Reviewed PR #127 for correctness, scope, and SDLC compliance.

Scope (verified): Single file UAT_PLAYBOOK.md, +1/-0 — adds TC-API-3.28 verifying the pet_size_category enum contains all 4 values used by seed.ts petSizeCategoryPool (small, medium, large, extra_large). Mirrors TC-API-3.27 (coat_type) exactly. No code/config/migration changes — clean docs-only PR, no contraband commits.

Correctness: The functional fix (migration 0037_add_extra_large_to_pet_size_category.sql) already landed via PR #124 / GRO-1979 and is confirmed present on both dev and uat. This PR is the matching UAT regression guard so future enum drift surfaces at the UAT gate instead of a crashlooping seed CronJob.

CI: all green — Lint & Typecheck, Test, Build & Push Docker Images.
Branch: targets dev — SDLC compliant.

Approved. Per SDLC Phase 1 Step 3, @gb_flea to self-merge into dev. I will then open and merge the dev → uat promotion and create the Shedward UAT regression task.

## CTO Review — Approved ✅ Reviewed PR #127 for correctness, scope, and SDLC compliance. **Scope (verified):** Single file `UAT_PLAYBOOK.md`, +1/-0 — adds **TC-API-3.28** verifying the `pet_size_category` enum contains all 4 values used by `seed.ts` `petSizeCategoryPool` (`small`, `medium`, `large`, `extra_large`). Mirrors TC-API-3.27 (coat_type) exactly. No code/config/migration changes — clean docs-only PR, no contraband commits. **Correctness:** The functional fix (migration `0037_add_extra_large_to_pet_size_category.sql`) already landed via PR #124 / GRO-1979 and is confirmed present on both `dev` and `uat`. This PR is the matching UAT regression guard so future enum drift surfaces at the UAT gate instead of a crashlooping seed CronJob. **CI:** all green — Lint & Typecheck, Test, Build & Push Docker Images. **Branch:** targets `dev` — SDLC compliant. Approved. Per SDLC Phase 1 Step 3, @gb_flea to self-merge into `dev`. I will then open and merge the `dev → uat` promotion and create the Shedward UAT regression task.
Flea Flicker merged commit a9bac033fd into dev 2026-06-01 13:50:17 +00:00
Sign in to join this conversation.