Uh oh!
There was an error while loading. Please reload this page.
db/ops-code: feedback/issue_reports PKs + FKs (epic slice PR8) - #269
Conversation
…ice) Rewire the ops domain's code onto the already-landed 0026_ops schema, which dropped the SERIAL integer PKs on feedback/issue_reports and recreated them with TEXT PKs (gen_random_uuid()::text) plus real FKs to users(id) — and sessions(id) ON DELETE SET NULL for feedback. - routes/feedback.py: hand-build the text PK with str(uuid.uuid4()) on both the feedback and issue_reports inserts, per the repo convention (academics.py, graph_service.py), instead of relying on the dropped SERIAL default. The new user_id/session_id FKs are already satisfied by the request body / session. - tests/test_feedback_routes.py: new coverage for the two POST endpoints (previously untested) — asserts the insert carries a UUID text PK and the body fields round-trip, using the MagicMock-per-table factory pattern. - routes/admin.py allowlist approve/revoke already read/write newsletter_emails.approved_at as 0026 declares it (issue #267) — verified, no code change needed. Plan: docs/superpowers/plans/2026-06-24-db-ops-code.md Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deploying with |
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs | frontend-staging | d87313e | Commit Preview URL Branch Preview URL | Jun 24 2026, 08:16 AM |
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Ops slice of the DB modular redesign (migration 0026, already landed). text-uuid PKs + FKs on
feedback/issue_reports; verified #267 newsletter allowlist needs no change. +4 feedback tests; suite green; ruff clean.Plan:
docs/superpowers/plans/2026-06-24-db-ops-code.md. Smallest slice, independent — safe to merge first.