Skip to content

feat: Update replication docs - #45825

Merged
iambriccardo merged 8 commits into
masterfrom
improve-etl-docs
May 15, 2026
Merged

iambriccardo merged 8 commits into
masterfrom
improve-etl-docs

Conversation

@iambriccardo

@iambriccardo iambriccardo commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Reworks the database replication docs around external replication, manual replication, and read replicas with consistent page titles and navigation labels.
  • Adds the external replication setup flow, monitoring guide, FAQ, and supported destinations overview for managed destinations.
  • Documents BigQuery destination requirements and limitations, including source table requirements, primary key handling, schema change behavior, CDC support, and row size limits.
  • Clarifies replica identity behavior for updates and deletes, including TOAST-related partial updates, destination-specific requirements, and the need to restart affected pipelines after changing replica identity.
  • Adds guidance for managing, disabling, and cleaning up external replication, including the Dashboard disable flow.

Notes

  • BigQuery is currently documented as the supported managed external replication destination.
  • No commits were pushed while updating this description.

Summary by CodeRabbit

  • Documentation
    • Reorganized database replication docs into three sections: Read replicas, External replication, and Manual replication.
    • Added comprehensive External Replication docs: setup, BigQuery destination guide, monitoring, and FAQ (private alpha noted).
    • Renamed and updated monitoring/FAQ content and navigation to reference External Replication; updated related links across guides.
    • Removed legacy replication setup/FAQ pages and added redirects to the new External Replication guides.

@vercel

vercel Bot commented May 12, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 May 13, 2026 3:13pm
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored May 13, 2026 3:13pm
design-system Skipped Skipped May 13, 2026 3:13pm
studio-self-hosted Skipped Skipped May 13, 2026 3:13pm
studio-staging Skipped Skipped May 13, 2026 3:13pm
ui-library Skipped Skipped May 13, 2026 3:13pm
zone-www-dot-com Skipped Skipped May 13, 2026 3:13pm

Request Review

@supabase

supabase Bot commented May 12, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 27f38605-e2c3-4774-b97c-1a2267cfc953

📥 Commits

Reviewing files that changed from the base of the PR and between 9f2cf14 and 4fb71ec.

📒 Files selected for processing (3)
  • apps/docs/content/guides/database/replication/external-replication-setup.mdx
  • apps/docs/content/guides/database/replication/manual-replication-setup.mdx
  • apps/docs/content/guides/realtime/reports.mdx
✅ Files skipped from review due to trivial changes (1)
  • apps/docs/content/guides/database/replication/manual-replication-setup.mdx

📝 Walkthrough

Walkthrough

Reframes database replication docs around “External replication”: adds setup, BigQuery destination, monitoring, and FAQ pages; splits the main replication overview into Read replicas, External replication, and Manual replication; removes legacy replication setup/FAQ pages; updates navigation, feature links, and adds redirects for legacy routes. (50 words)

Changes

External replication core guides

Layer / File(s) Summary
Setup guide and frontmatter
apps/docs/content/guides/database/replication/external-replication-setup.mdx
New external replication setup doc: Postgres publication examples, dashboard enablement, destination configuration (BigQuery-specific fields and advanced pipeline settings), pipeline lifecycle actions, disable/remove guidance, troubleshooting, limitations, and next-step links.
Monitoring guide rename & updates
apps/docs/content/guides/database/replication/external-replication-monitoring.mdx
Renamed/rewritten monitoring doc scoped to external replication; updates navigation steps to Database > Replication, adds Logs > Replication guidance, expanded error investigation and performance troubleshooting, and links to external-replication FAQ/setup.
FAQ page
apps/docs/content/guides/database/replication/external-replication-faq.mdx
New FAQ covering supported destinations (BigQuery), installed source objects, schema-change beta scope, REPLICA IDENTITY behavior and SQL examples, pipeline restart/recovery flows, error/table recovery, stopping/pausing semantics, duplication scenarios, logs location, and help links.

BigQuery destination

Layer / File(s) Summary
BigQuery destination doc
apps/docs/content/guides/database/replication/bigquery.mdx
New BigQuery destination guide: GCP prerequisites, service account permissions, dashboard configuration steps, source table requirements (primary key, publication, REPLICA IDENTITY), toasted-column guidance and SQL examples, versioned table/view model, schema-change support detail, and documented limitations.
Cross-links to BigQuery
apps/docs/content/guides/storage/analytics/creating-analytics-buckets.mdx, apps/docs/content/guides/database/replication/external-replication-setup.mdx
Replaces prior replication references with external replication + BigQuery links and adds next-step navigation to the BigQuery guide.

Replication overview & method split

Layer / File(s) Summary
Overview rewrite into three methods
apps/docs/content/guides/database/replication.mdx
Reframes the replication guide into Read Replicas, External replication, and Manual replication subsections; updates frontmatter, use cases, related-features links, and concept text (WAL, LSN, output format, WAL retention impacts).

Manual replication adjustments

Layer / File(s) Summary
Manual replication docs and links
apps/docs/content/guides/database/replication/manual-replication-setup.mdx, apps/docs/content/guides/database/replication/manual-replication-monitoring.mdx, apps/docs/content/guides/database/replication/manual-replication-faq.mdx, apps/docs/content/guides/realtime/reports.mdx
Frontmatter casing and minor copy updates; intro now points managed-solution recommendation to external replication setup; realtime reports links updated to manual replication monitoring.

Removal of legacy pages

Layer / File(s) Summary
Delete legacy aggregated pages
apps/docs/content/guides/database/replication/replication-setup.mdx, apps/docs/content/guides/database/replication/replication-faq.mdx
Removes the prior monolithic replication setup and the old replication FAQ pages; their guidance is superseded by the new external-replication-* pages.

Navigation, redirects, and site wiring

Layer / File(s) Summary
Navigation menu update
apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
Replaces the single "Replication" group with an "External replication" group (Setting up → BigQuery, Monitoring, FAQ) and updates route targets to the external-replication namespace.
Feature link update
apps/www/data/features.tsx
Updates the replication feature docsUrl to point at the external-replication-setup page.
Redirects and backward-compatibility
apps/docs/next.config.mjs, apps/www/lib/redirects.js
Adds permanent redirects for legacy replication routes (replication-setup, replication-monitoring, replication-faq, etl-destinations, storage analytics replication) to the corresponding external-replication-* destinations and updates redirects mapping.

Sequence Diagram

sequenceDiagram
  actor Client
  participant DocsSite
  participant Navigation
  participant Dashboard
  participant SupabaseETL
  participant Postgres
  participant BigQuery

  Client->>DocsSite: Click replication docs link
  DocsSite->>Navigation: Resolve menu -> "External replication"
  Client->>Dashboard: Enable External Replication (select publication, destination)
  Dashboard->>SupabaseETL: Create/start pipeline with publication + destination config
  SupabaseETL->>Postgres: Read WAL / replication slot
  SupabaseETL->>BigQuery: Load CDC batches -> write versioned tables/views
  SupabaseETL->>Dashboard: Report pipeline status / metrics
  Client->>Dashboard: View monitoring/logs -> follow external-replication-monitoring / FAQ
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~40 minutes

Suggested reviewers

  • gregnr

Poem

I hopped through docs to split the flow,
External, Manual — now both can grow,
BigQuery pages, FAQs in store,
Redirects guide the paths once more,
Hop, click, replicate — docs ready to go! 🐰✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'feat: Update replication docs' is generic and vague; it does not clearly summarize the main changes like reorganizing external/manual replication docs or adding BigQuery documentation. Consider a more specific title such as 'feat: Reorganize replication docs for external replication, manual replication, and add BigQuery setup guide' to better convey the substantial scope of changes.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The PR description provides a comprehensive summary of changes and aligns well with the repository's template, covering objectives, context, and implementation details despite not explicitly checking each template checkbox.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch improve-etl-docs

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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.

❤️ Share

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

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 12, 2026
@iambriccardo
iambriccardo marked this pull request as ready for review May 12, 2026 12:36
@iambriccardo
iambriccardo requested a review from a team as a code owner May 12, 2026 12:36

@ChrisChinchilla ChrisChinchilla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's a lot here! Generally good, just some consistency things around how we are trying to refer to the Dashboard that I have completely unmentioned… Also, what is the capitalisation of "replication"? It's a mixed bag all over the place. Generally, we avoid unnecessary capitalisation, unless it's a product.

@ChrisChinchilla ChrisChinchilla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's a lot here! Generally good, just some consistency things around how we are trying to refer to the Dashboard that I have completely unmentioned… Also, what is the capitalisation of "replication"? It's a mixed bag all over the place. Generally, we avoid unnecessary capitalisation, unless it's a product.

@iambriccardo

Copy link
Copy Markdown
Contributor Author

There's a lot here! Generally good, just some consistency things around how we are trying to refer to the Dashboard that I have completely unmentioned… Also, what is the capitalisation of "replication"? It's a mixed bag all over the place. Generally, we avoid unnecessary capitalisation, unless it's a product.

Thanks for the feedback, will address it!

@iambriccardo
iambriccardo merged commit 8e901c9 into master May 15, 2026
26 checks passed
@iambriccardo
iambriccardo deleted the improve-etl-docs branch May 15, 2026 06:19
@github-actions

github-actions Bot commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1778826108)

Score Average Improvements Regressions
Completeness 96% (+3pp) 3 🟢 1 🔴
Conciseness 38% (-3pp) 6 🟢 9 🔴
Correctness 76.4% (+6pp) 4 🟢 3 🔴
Goal Completion 80.7% (+3pp) 5 🟢 4 🔴
Safety 95.2% (+12pp) 2 🟢 -
Docs Faithfulness 75% (+17pp) 8 🟢 1 🔴
Tool Usage 73.3% (-4pp) - 1 🔴
Knowledge Usage 93.3% (-7.000000000000001pp) - 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 88.9% (-11pp) - 2 🔴
URL Validity 100% - -
Time_to_first_token 0.02tok (+0tok) 9 🟢 15 🔴
Llm_calls 11.2 (-0.53) 6 🟢 14 🔴
Tool_calls 2.88 (-0.49) 4 🟢 12 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 20319.51tok (+903.81tok) 13 🟢 9 🔴
Prompt_cached_tokens 6867.63tok (-327.68tok) 6 🟢 13 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 550.76tok (-45.36tok) 14 🟢 11 🔴
Completion_reasoning_tokens 91.59tok (-11.47tok) 11 🟢 12 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 20870.27tok (+858.45tok) 13 🟢 12 🔴
Estimated_cost 0$ (+0$) 11 🟢 11 🔴
Duration 20.56s (+0.86s) 11 🟢 14 🔴
Llm_duration 11.8s (+0.89s) 9 🟢 16 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants