Skip to content

[MUL-1364] fix(studio): use multipooler copy for dedicated pooler chart on HA - #49525

Merged
alaister merged 2 commits into
masterfrom
fix/mul-1364
Aug 25, 2026
Merged

alaister merged 2 commits into
masterfrom
fix/mul-1364

Conversation

@alaister

@alaister alaister commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

The "Dedicated Pooler Client Connections" chart on the Database observability page labels its series pgbouncer and links to PgBouncer limits docs. High Availability projects run Multigres, whose dedicated pooler is multipooler, so that copy was misleading. This swaps the copy for HA projects and drops the docs link until multipooler docs exist (per the ticket, disabling the link for now is fine).

Changed:

  • HA projects: legend label pgbouncer → multipooler, series tooltip → "Multipooler connections"
  • HA projects: the info icon shows a "docs coming soon" tooltip instead of linking to the compute-and-disk limits docs
  • Non-HA projects are unchanged

Added:

  • Unit test for getReportAttributesV2 covering both the PgBouncer and multipooler branches

Out of scope (flagging for follow-up): the "Max pooler connections" reference line still uses the PgBouncer value on HA projects, and the Supavisor chart still renders for HA projects.

Addresses https://linear.app/supabase/issue/MUL-1364/database-dashboard-update-dedicated-poolers-copy

To test

  • On a High Availability project, open Observability → Database and find "Dedicated Pooler Client Connections"
  • Legend and hover tooltip should say multipooler; the info icon should show a tooltip ending in "(docs coming soon)" with no link
  • On a non-HA project, the chart should be unchanged: pgbouncer legend and the info icon links to the compute-and-disk docs

Summary by CodeRabbit

  • New Features

    • High Availability projects now display dedicated connection pooler charts with multipooler-specific labels and guidance.
    • Standard projects continue to show PgBouncer information and documentation links.
    • High Availability charts include a tooltip indicating that documentation is coming soon.
    • Eligible burstable, non-High Availability projects now display a Disk IO Burst Balance chart.
  • Bug Fixes

    • Disk IO Burst Balance is hidden for High Availability projects, unsupported compute sizes, and when the feature is disabled.
  • Tests

    • Added coverage for pooler and Disk IO Burst Balance chart visibility and content.

@alaister
alaister requested a review from a team as a code owner August 25, 2026 06:28
@vercel

vercel Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview Aug 25, 2026 8:35am
docs Ready Ready Preview, v0 Aug 25, 2026 8:35am
studio-self-hosted Ready Ready Preview Aug 25, 2026 8:35am
studio-staging Ready Ready Preview Aug 25, 2026 8:35am
ui-library Ready Ready Preview Aug 25, 2026 8:35am
zone-www-dot-com Ready Ready Preview, v0 Aug 25, 2026 8:35am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 25, 2026 8:35am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: db130150-476e-40e0-9f5e-095db1de9d68

📥 Commits

Reviewing files that changed from the base of the PR and between 80cbe06 and d0224c7.

📒 Files selected for processing (2)
  • apps/studio/data/reports/database-charts.test.ts
  • apps/studio/data/reports/database-charts.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The report charts now detect High Availability projects. They use multipooler metadata and hide the disk IO burst balance chart for those projects. Standard projects retain PgBouncer metadata and burst balance behavior. Tests cover these conditions.

Changes

Report chart configuration

Layer / File(s) Summary
High Availability chart behavior
apps/studio/data/reports/database-charts.ts
The report builder resolves High Availability status. It selects multipooler or PgBouncer metadata and hides the disk IO burst balance chart for High Availability projects.
Chart test fixtures and selectors
apps/studio/data/reports/database-charts.test.ts
The tests add shared project and feature fixtures and helpers for locating the affected charts.
Chart behavior coverage
apps/studio/data/reports/database-charts.test.ts
Tests verify pooler labels, documentation links, tooltips, and disk IO burst balance visibility across project and compute conditions.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to d0224

This change updates pooler labels and documentation guidance for High Availability projects while preserving non-HA behavior; no actionable merge-blocking risk remains beyond normal checks and review.

Suggested reviewers: jordienr, awaseem

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: using multipooler copy for the dedicated pooler chart on High Availability projects.
Description check ✅ Passed The description explains the current and new behavior, affected project types, tests, issue reference, testing steps, and out-of-scope items. It does not use every template heading or explicitly confi…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
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.
Full details: Description check

Explanation

The description explains the current and new behavior, affected project types, tests, issue reference, testing steps, and out-of-scope items. It does not use every template heading or explicitly confirm that CONTRIBUTING.md was read, but it provides the required change context.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/mul-1364

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.

@github-actions

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  243 passed
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  3 minutes, 40 seconds
commit  80cbe06

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  243 passed
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  4 minutes, 54 seconds
commit  d0224c7

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@joshenlim joshenlim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verified changes on preview!

# Conflicts:
#	apps/studio/data/reports/database-charts.test.ts
@alaister
alaister enabled auto-merge (squash) August 25, 2026 08:26
@alaister
alaister merged commit 23949ae into master Aug 25, 2026
39 checks passed
@alaister
alaister deleted the fix/mul-1364 branch August 25, 2026 08:38
@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1787647305)

Score Average Improvements Regressions
Completeness 99.5% (+2pp) 1 🟢 -
Conciseness 48.4% (-7.000000000000001pp) 2 🟢 6 🔴
Goal Completion 86.3% (-1pp) 1 🟢 -
Tool Usage 90.7% (-9pp) - 1 🔴
Docs Faithfulness 62.2% (-14.000000000000002pp) - 3 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 98.1% (+10pp) - -
Correctness 83.3% (-17pp) - 1 🔴
Safety 86.7% - -
Knowledge Usage 92.9% (-1pp) - 1 🔴
URL Validity 100% (+0pp) - -
Time_to_first_token 1.65tok (-0.45tok) 13 🟢 3 🔴
Llm_calls 7.19 (+0.98) 7 🟢 6 🔴
Tool_calls 3.18 (+0.23) 4 🟢 7 🔴
Errors 0.04 (+0.04) - 1 🔴
Llm_errors 0.01 (+0.02) - 1 🔴
Tool_errors 0.03 (+0) - -
Prompt_tokens 26276.53tok (+3358.43tok) 8 🟢 9 🔴
Prompt_cached_tokens 16480.34tok (+3017.99tok) 8 🟢 9 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 569.3tok (+138.56tok) 8 🟢 9 🔴
Completion_reasoning_tokens 141.88tok (+24.32tok) 9 🟢 8 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 26845.83tok (+3497tok) 8 🟢 9 🔴
Estimated_cost 0$ (+0$) 8 🟢 7 🔴
Duration 9.18s (-0.38s) 10 🟢 6 🔴
Llm_duration 8.8s (-0.48s) 10 🟢 6 🔴

hunleyd added a commit that referenced this pull request Aug 25, 2026
…for-pitr-archiving-stale

* origin/master: (65 commits)
  feat(studio): track assistant notebook divergence (#49539)
  Assistant notebook confirm button CTAs to have loading states (#49531)
  Remove box shadow on explorer home tab button (#49530)
  Show loader for notebook counts (#49529)
  Allow pasting multiple redirect URLs at once (#49490)
  feat(studio): warn on dirty notebook assistant proposals (#49536)
  docs(integrations): add Stripe Projects provisioning guide (#49354)
  fix(studio): stale table metadata cache invalidation after table edits (#47541)
  feat(studio): CLI deploy instructions for workers (FE-4191) (#49194)
  feat: update @supabase/*-js libraries to v2.112.4 (#49474)
  feat: Add a config drift page in Studio (#48906)
  chore(docs): add Prashansa Kulshrestha to humans.txt (#49522)
  chore: add Ping-Min Lin to humans.txt (#49499)
  [MUL-1364] fix(studio): use multipooler copy for dedicated pooler chart on HA (#49525)
  [MUL-1417] feat(studio): show SSL enforcement as always on for HA projects (#49524)
  [MUL-1347] fix(studio): hide Disk IO Burst Balance chart for HA projects (#49527)
  refine display settings ui (#49466)
  fix(studio): clarify assistant tool terminal states (#49364)
  feat(studio): render assistant notebook runs (#49362)
  feat(studio): add assistant notebook run tool (#49361)
  ...
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