Skip to content

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).

  • 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 --short prints nothing.

The migration files were edited in place (D11), so the database is rebuilt, never migrated. No config changed, so the stack needn't restart.

Terminal window
git fetch origin claude/be-table-grants-z3k2su
git switch claude/be-table-grants-z3k2su
pnpm supabase db reset
Terminal window
pnpm supabase test db

3 · The types and the reference pages from this schema

Section titled “3 · The types and the reference pages from this schema”
Terminal window
pnpm db:types
pnpm docs:reference
git status --short
Terminal window
pnpm typecheck
  • Block 1: "Finished supabase db reset".
  • Block 2: All tests successful., Files=17, Tests=419 and Result: PASS. Pack 0d's tests are the 17 in 45_rental_lifecycle.test.sql, whose descriptions start R-RNT-20, R-RNT-21, R-RNT-23, R-RNT-29 and R-INSP-14, and the 9 in 46_master_data_partners.test.sql (#215, riding along), which start R-MD-14 and R-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 key inspection.return_reason_mismatch has its Indonesian and English text.
Terminal window
git diff --stat origin/claude/be-table-grants-z3k2su

Prints nothing.

  • A test fails: paste the not ok line 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 --stat and the first lines of git diff for 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.