docs: add deploy runbook for the public-titles corrector migration (F10)#709
Conversation
Step-by-step runbook to apply 20260717120000_corrector_public_titles_only.sql to the live Clinical KB Database project. Covers prerequisites, a terminal path (supabase login/link → check:supabase-project + migration list safety gates → db push → check:drift verify) and a Codex-app path (a paste-ready, approval-gated prompt), plus rollback and why check:drift flips green after applying. Docs-only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FJpsbpsmjJ2tLLXFfSe9GK
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthroughAdds a deployment runbook for applying and verifying the ChangesCorrector public titles deployment
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
docs/deploy-corrector-public-titles.md (2)
133-137: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winClarify rollback as a coordinated revert
docs/deploy-corrector-public-titles.md:133-137should say rollback also updatessupabase/schema.sqland regeneratessupabase/drift-manifest.json; a live-onlyCREATE OR REPLACEleaves drift behind. If rollback isn’t intended, mark it unsupported/manual.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/deploy-corrector-public-titles.md` around lines 133 - 137, Update the Rollback section in deploy-corrector-public-titles.md to describe rollback as a coordinated change: update supabase/schema.sql and regenerate supabase/drift-manifest.json alongside reverting the live definition. Do not recommend a live-only CREATE OR REPLACE; if rollback is not supported, explicitly label it unsupported/manual.
28-30: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winPin the Supabase CLI version used by this runbook.
npx supabasecan change behavior as the CLI evolves, so pin an explicit version in the command or repo toolchain and add a version check before production steps.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/deploy-corrector-public-titles.md` around lines 28 - 30, Update the Supabase CLI usage in the runbook to pin an explicit version instead of invoking unversioned npx supabase commands, and add a CLI version check before the production steps. Keep the existing authentication and installation guidance consistent with the pinned CLI version.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@docs/deploy-corrector-public-titles.md`:
- Around line 133-137: Update the Rollback section in
deploy-corrector-public-titles.md to describe rollback as a coordinated change:
update supabase/schema.sql and regenerate supabase/drift-manifest.json alongside
reverting the live definition. Do not recommend a live-only CREATE OR REPLACE;
if rollback is not supported, explicitly label it unsupported/manual.
- Around line 28-30: Update the Supabase CLI usage in the runbook to pin an
explicit version instead of invoking unversioned npx supabase commands, and add
a CLI version check before the production steps. Keep the existing
authentication and installation guidance consistent with the pinned CLI version.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 872b6cee-de27-4462-8fc7-26c66ddf48d1
📒 Files selected for processing (1)
docs/deploy-corrector-public-titles.md
Summary
Adds
docs/deploy-corrector-public-titles.md— a step-by-step runbook for applying the merged migration20260717120000_corrector_public_titles_only.sqlto the liveClinical KB Databaseproject. Docs-only; no code/schema changes.Covers:
.env.local, Supabase login token + DB password;npx supabaseneeds no separate install).supabase login/link→ safety gates (check:supabase-project+migration list --linked) →db push→check:driftverify, with clear ✅/🛑 outcomes at each step.check:driftflips green after applying (it's the pending-migration state the push clears).This closes out the F10 remediation trail with an operator-facing deploy guide — the code side already merged (#697 migration; #701
schema.sqlmirror + regenerated drift manifest).Verification
npx prettier --check docs/deploy-corrector-public-titles.md— cleannpm run verify:pr-local— not run (docs-only; no source/schema/test surface)Clinical Governance Preflight
Not applicable — documentation only. No ingestion, answer generation, retrieval, schema, privacy, or production configuration is changed by this PR. (The runbook it documents is itself an operator step gated on production credentials + explicit confirmation.)
🤖 Generated with Claude Code
https://claude.ai/code/session_01FJpsbpsmjJ2tLLXFfSe9GK
Generated by Claude Code
Summary by CodeRabbit