Repository navigation
fix(webhooks): allow enabling webhooks when using installationCommand - #44402
Conversation
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
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
There was a problem hiding this comment.
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.
🎭 Playwright Test ResultsDetails
Flaky testsFeatures › api-access-toggle.spec.ts › API Access Toggle › preserves API grants when editing non-privilege table properties Skipped testsFeatures › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected |
Braintrust eval report
|
## 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.
Summary
InstallIntegrationSheetwas unconditionally disabled when required extensions were missing from the DB image (hasMissingExtensions)installationCommand(platform API/database/{ref}/hook-enable) which handlespg_netsetup server-side — the client-side extension check is unnecessaryinstallationCommandHow this happened
PR #44277 migrated Database Webhooks to the new marketplace integrations UI. The
InstallIntegrationSheetalready had adisabled={hasMissingExtensions}guard from its original implementation (for extension-only integrations like queues). When webhooks was added with itsinstallationCommand+requiredExtensions: ['pg_net'], the guard wasn't updated to account for the command-based install path.Test plan
pg_netis not pre-installedFixes FE-2928