Skip to content

feat(db): add debate workspace foundation - #54

Merged
Programcode merged 2 commits into
mainfrom
feat/debate-workspace-p1-1
Sep 20, 2026
Merged

Programcode merged 2 commits into
mainfrom
feat/debate-workspace-p1-1

Conversation

@Programcode

Copy link
Copy Markdown
Owner

Summary

  • add workspace, membership, document metadata, and audit tables with member-scoped RLS
  • add atomic idempotent workspace, document, access, ownership, and lifecycle RPCs
  • enforce assignment, ordering, trash-recovery, revision, and owner-deletion contracts

Verification

  • ./.superset/db-gate.sh: 5 files, 160 pgTAP assertions, both quota checks passed
  • npm run verify: docs, lint, typecheck, 1,142 unit tests, 10 collaboration tests, 186 Edge tests, build, 212 Chromium E2E passed; 2 skipped
  • database lint and security advisors clean
  • Terra exact-head review approved ee29cbf after four Important findings were fixed

Deployment boundary

Code only. No staging or production migration or deployment is authorized by this PR.

Copilot AI lite review requested due to automatic review settings September 20, 2026 18:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
debate-navigator Ready Ready Preview Sep 20, 2026 6:15pm UTC

@coderabbitai

coderabbitai Bot commented Sep 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Free

Run ID: 8cbf5942-a850-4cc3-a1b7-179b97a516ab

📥 Commits

Reviewing files that changed from the base of the PR and between 483f47c and ee29cbf.

📒 Files selected for processing (3)
  • supabase/migrations/20260920174841_debate_workspace_foundation.sql
  • supabase/tests/workspace_lifecycle_test.sql
  • supabase/tests/workspaces_rls_test.sql

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing.

Comment @coderabbitai help to get the list of available commands.

@Programcode
Programcode merged commit b7c8480 into main Sep 20, 2026
5 checks passed
@Programcode
Programcode deleted the feat/debate-workspace-p1-1 branch September 20, 2026 18:19

This branch was successfully deployed

1 active deployment
Preview — ee29cbfb Deployed Sep 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants