Skip to content

fix(webhooks): allow enabling webhooks when using installationCommand - #44402

Merged
awaseem merged 1 commit into
masterfrom
aliwaseem/fe-2928-database-webhooks-cannot-be-enabled
Mar 31, 2026
Merged

awaseem merged 1 commit into
masterfrom
aliwaseem/fe-2928-database-webhooks-cannot-be-enabled

Conversation

@awaseem

@awaseem awaseem commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The "Install integration" button in InstallIntegrationSheet was unconditionally disabled when required extensions were missing from the DB image (hasMissingExtensions)
  • For webhooks, the installation goes through installationCommand (platform API /database/{ref}/hook-enable) which handles pg_net setup server-side — the client-side extension check is unnecessary
  • Now only disables the button for missing extensions when there is no custom installationCommand

How this happened

PR #44277 migrated Database Webhooks to the new marketplace integrations UI. The InstallIntegrationSheet already had a disabled={hasMissingExtensions} guard from its original implementation (for extension-only integrations like queues). When webhooks was added with its installationCommand + requiredExtensions: ['pg_net'], the guard wasn't updated to account for the command-based install path.

Test plan

  • With marketplace flag enabled, verify the "Install integration" button is clickable for webhooks even if pg_net is not pre-installed
  • Verify clicking it successfully enables webhooks via the platform API
  • Verify that extension-only integrations (e.g. queues) still correctly disable the button when extensions are unavailable

Fixes FE-2928

The install button in InstallIntegrationSheet was disabled whenever
required extensions were missing from the DB image, even for integrations
like webhooks that use an installationCommand which handles prerequisite
setup server-side. Only disable for missing extensions when there is no
custom installation command.

Fixes FE-2928
Copilot AI review requested due to automatic review settings March 31, 2026 17:14
@awaseem
awaseem requested a review from a team as a code owner March 31, 2026 17:14
@supabase

supabase Bot commented Mar 31, 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 ↗︎.

@vercel

vercel Bot commented Mar 31, 2026 •

Copy link
Copy Markdown

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

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

Request Review

Copilot AI 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.

Pull request overview

Updates the marketplace integrations install UI to allow installing Database Webhooks even when pg_net isn’t available in the DB image, since the webhook enablement flow uses a server-side installationCommand that handles setup.

Changes:

  • Adjusts the “Install integration” button disablement logic to only block on missing extensions when there is no installationCommand.

@github-actions

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  175 passed
flaky  1 flaky
skipped  4 skipped

Details

stats  180 tests across 20 suites
duration  4 minutes, 10 seconds
commit  20f4df7

Flaky tests

Features › api-access-toggle.spec.ts › API Access Toggle › preserves API grants when editing non-privilege table properties

Skipped tests

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

@awaseem
awaseem enabled auto-merge (squash) March 31, 2026 17:23
@awaseem
awaseem merged commit 878092e into master Mar 31, 2026
27 checks passed
@awaseem
awaseem deleted the aliwaseem/fe-2928-database-webhooks-cannot-be-enabled branch March 31, 2026 17:24
@github-actions

github-actions Bot commented Mar 31, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1774977995)

Score Average Improvements Regressions
Completeness 100% (+0pp) - -
Conciseness 24.4% (-6pp) 2 🟢 6 🔴
Correctness 91.7% (-8pp) - 1 🔴
Docs Faithfulness 75% (+3pp) 1 🟢 2 🔴
Goal Completion 89.7% (-4pp) - 3 🔴
Tool Usage 77.8% (-6pp) - 2 🔴
URL Validity 100% (+0pp) - -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 81.8% (-10pp) - 1 🔴
Time_to_first_token 0.58tok (-0.16tok) 11 🟢 2 🔴
Llm_calls 10.92 (-0.26) 3 🟢 6 🔴
Tool_calls 2.1 (+0.08) 4 🟢 5 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 25788.41tok (+368.51tok) 5 🟢 7 🔴
Prompt_cached_tokens 15215.59tok (+26.26tok) 6 🟢 5 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 457.28tok (+34.23tok) 4 🟢 8 🔴
Completion_reasoning_tokens 54tok (-8.72tok) 8 🟢 4 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 26245.69tok (+402.74tok) 5 🟢 7 🔴
Estimated_cost 0$ (+0$) 8 🟢 5 🔴
Duration 7.5s (-0.48s) 9 🟢 4 🔴
Llm_duration 13.34s (+0.41s) 8 🟢 5 🔴

awaseem added a commit that referenced this pull request Mar 31, 2026
## Summary
- Fixes the "Enable webhooks" button being greyed out in the
non-marketplace UI
- PR #44277 added `requiredExtensions: ['pg_net']` for the new UI, which
inadvertently caused the old UI's actions area to get disabled via
`hasToInstallExtensions`
- Skips the disabled styling when `hideRequiredExtensionsSection` is
set, since webhooks handles `pg_net` installation server-side

Companion to #44402 which fixed the same issue in the new (V2) UI.
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.

3 participants