BE-DP-14 · Before the merge: D67's rental statuses, their tests and the generated files
ID BE-DP-14 · Level L0 · Pack Pack 0d · D67's rental statuses · Run order row 0d, before pack 0d's pull request is merged · Issue #229
On pack 0d's branch, every pgTAP test passes on your Mac's local stack (419 in 17 files on main's base), and the generated files match its schema: packages/db-types and the reference pages are already on the branch, regenerated by pnpm db:types and pnpm docs:reference on the Backend Engineer's local stack (D33), and this step proves your stack writes the same. The types are only ever written by pnpm db:types, never by hand (D22).
Before
Section titled “Before”- Pack 0d's pull request is open on the branch
claude/be-table-grants-z3k2su, names #229 and #215, and its checks are green. - You are in ~/opleet-v2/opleet, and
git status --shortprints nothing.
1 · The branch
Section titled “1 · The branch”The migration files were edited in place (D11), so the database is rebuilt, never migrated. No config changed, so the stack needn't restart.
git fetch origin claude/be-table-grants-z3k2sugit switch claude/be-table-grants-z3k2supnpm supabase db reset2 · Every test
Section titled “2 · Every test”pnpm supabase test db3 · The types and the reference pages from this schema
Section titled “3 · The types and the reference pages from this schema”pnpm db:typespnpm docs:referencegit status --short4 · apps/web still typechecks
Section titled “4 · apps/web still typechecks”pnpm typecheckExpect
Section titled “Expect”- Block 1: "Finished supabase db reset".
- Block 2:
All tests successful.,Files=17, Tests=419andResult: PASS. Pack 0d's tests are the 17 in45_rental_lifecycle.test.sql, whose descriptions startR-RNT-20,R-RNT-21,R-RNT-23,R-RNT-29andR-INSP-14, and the 9 in46_master_data_partners.test.sql(#215, riding along), which startR-MD-14andR-MD-15. If #257 or #265 merged first, the counts are higher by their tests. - Block 3: nothing listed by
git status --short. - Block 4: no error, and
Keys: 108: the new keyinspection.return_reason_mismatchhas its Indonesian and English text.
git diff --stat origin/claude/be-table-grants-z3k2suPrints nothing.
If it fails
Section titled “If it fails”- A test fails: paste the
not okline and the lines under it that start with#into #229. The test's description starts with the rule it proves. Don't edit the test. - Block 3 lists a file: your CLI or stack differs from the Backend Engineer's. Paste
git diff --statand the first lines ofgit difffor that file into #229, and don't commit it; the database check in CI decides which is right. - Block 4 fails: paste the errors into #229.
git switch main and pnpm supabase db reset put your local database back on main's schema. Nothing here touches staging or production.
Log each run as a comment on #229: date · who · result · notes, with the last lines of block 2 and what block 3 printed.