The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Revert "ref: Add sentry logging to debug vercel issue" (#23292)
Kamil Ogórek8776db145ea2
diff --git a/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx b/apps/studio/components/interfaces/Integrations/ProjectLinker.tsxindex 5243301eded..03b17fab877 100644--- a/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx+++ b/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx@@ -132,6 +132,7 @@ const ProjectLinker = ({connection: {foreign_project_id: selectedForeignProject?.id,supabase_project_ref: selectedSupabaseProject?.ref,+ integration_id: '0',metadata: {...projectDetails,},diff --git a/apps/studio/components/interfaces/Organization/IntegrationSettings/SidePanelVercelProjectLinker.tsx b/apps/studio/components/interfaces/Organization/IntegrationSettings/SidePanelVercelProjectLinker.tsxindex b9dd0ca7b4b..eb883e15110 100644--- a/apps/studio/components/interfaces/Organization/IntegrationSettings/SidePanelVercelProjectLinker.tsx+++ b/apps/studio/components/interfaces/Organization/IntegrationSettings/SidePanelVercelProjectLinker.tsx@@ -15,7 +15,6 @@ import { useSelectedOrganization } from 'hooks'import { BASE_PATH } from 'lib/constants'import { EMPTY_ARR } from 'lib/void'import { useSidePanelsStateSnapshot } from 'state/side-panels'-import * as Sentry from '@sentry/nextjs'const VERCEL_ICON = (<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 512 512" className="w-6">@@ -101,18 +100,6 @@ const SidePanelVercelProjectLinker = () => {const onCreateConnections = useCallback((vars: any) => {- // TODO(kamil): Remove once "missing connection name" bug has been squashed.- if (!vars.connection?.metadata?.name) {- Sentry.captureMessage('Vercel connection is missing name', {- contexts: {- connection: vars.connection,- source: {- file: 'Organization/IntegrationSettings/SidePanelVercelProjectLinker.tsx',- },- },- })- }-createConnections({...vars,connection: {diff --git a/apps/studio/data/integrations/integrations.types.ts b/apps/studio/data/integrations/integrations.types.tsindex 773c8d76dbd..844b531a735 100644--- a/apps/studio/data/integrations/integrations.types.ts+++ b/apps/studio/data/integrations/integrations.types.ts@@ -248,6 +248,7 @@ export type IntegrationConnectionsCreateVariables = {connection: {foreign_project_id: stringsupabase_project_ref: string+ integration_id: stringmetadata: any}orgSlug: string | undefineddiff --git a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsxindex e875e8013c4..bc19bf6d3ca 100644--- a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx+++ b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx@@ -23,7 +23,6 @@ import { passwordStrength } from 'lib/helpers'import { getInitialMigrationSQLFromGitHubRepo } from 'lib/integration-utils'import { useIntegrationInstallationSnapshot } from 'state/integration-installation'import type { NextPageWithLayout } from 'types'-import * as Sentry from '@sentry/nextjs'const VercelIntegration: NextPageWithLayout = () => {return (@@ -204,11 +203,12 @@ const CreateProject = () => {const projectDetails = vercelProjects?.find((x: any) => x.id === foreignProjectId)try {- const connection = {+ const { id: connectionId } = await createConnections({organizationIntegrationId: organizationIntegration?.id,connection: {foreign_project_id: foreignProjectId,supabase_project_ref: newProjectRef,+ integration_id: '0',metadata: {...projectDetails,supabaseConfig: {@@ -219,26 +219,8 @@ const CreateProject = () => {},},orgSlug: selectedOrganization?.slug,- }-- // TODO(kamil): Remove once "missing connection name" bug has been squashed.- if (!projectDetails?.name) {- Sentry.captureMessage('Vercel connection is missing name', {- contexts: {- connection: connection,- data: {- projectDetails,- vercelProjects,- foreignProjectId,- },- source: {- file: 'deploy-button/new-project.tsx',- },- },- })- }+ })- const { id: connectionId } = await createConnections(connection)await syncEnvs({ connectionId })} catch (error) {console.error('An error occurred during createConnections:', error)diff --git a/apps/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx b/apps/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsxindex 8f9208c843a..d22d3a1f4ba 100644--- a/apps/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx+++ b/apps/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx@@ -19,7 +19,6 @@ import { BASE_PATH, PROJECT_STATUS } from 'lib/constants'import { EMPTY_ARR } from 'lib/void'import { useIntegrationInstallationSnapshot } from 'state/integration-installation'import type { NextPageWithLayout, Organization } from 'types'-import * as Sentry from '@sentry/nextjs'const VERCEL_ICON = (<img src={`${BASE_PATH}/img/icons/vercel-icon.svg`} alt="Vercel Icon" className="w-4" />@@ -129,18 +128,6 @@ const VercelIntegration: NextPageWithLayout = () => {const onCreateConnections = useCallback((vars: any) => {- // TODO(kamil): Remove once "missing connection name" bug has been squashed.- if (!vars.connection?.metadata?.name) {- Sentry.captureMessage('Vercel connection is missing name', {- contexts: {- connection: vars.connection,- source: {- file: 'marketplace/choose-project.tsx',- },- },- })- }-createConnections({...vars,connection: {