mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Problem Retire the deprecated Iceberg (Analytics Bucket) destination from Pipelines. ## Solution - Remove the destination UI, configuration mappings, feature-flag usage, and generated API variants. - Remove the legacy Pipelines integration from Storage while preserving standalone Analytics Buckets. - Remove unused components and sheet-layout support, and add regression coverage for retained Storage operations. - Remove the stale Pipelines claim from the Storage docs overview. ## Validation - Pipelines, Storage, and replication data tests - After the final cleanup: Studio typecheck and all 3 Analytics Bucket regression tests passed. - Formatting, scoped ESLint, Knip, and whitespace checks passed; lint warnings are pre-existing. - Storage overview: Prettier, ESLint with zero warnings, content-listing schema validation, and Markdown rendering passed. Production API-type verification remains pending the coordinated API deployment. Legacy Iceberg pipelines, destinations, and slots must be cleaned up before rollout. ## Review instructions 1. Verify that Pipelines offers BigQuery, DuckLake, Snowflake, and ClickHouse, with no Analytics Bucket option. 2. Verify that Storage Analytics Bucket creation, namespace/table operations, and wrapper/key cleanup remain available without Pipelines controls. ## Checklist - [x] Read CONTRIBUTING.md. - [x] Updated the Storage overview copy and checked the docs authoring guidance. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
60 lines
2.2 KiB
TypeScript
60 lines
2.2 KiB
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import { generateDefaultValues } from '../DestinationPanel/DestinationForm/DestinationForm.utils'
|
|
import {
|
|
getConnectionFieldNames,
|
|
getConnectionValidationIssues,
|
|
} from './PipelineConnectionValidation.utils'
|
|
|
|
const validData = {
|
|
...generateDefaultValues({ editMode: false }),
|
|
name: 'Warehouse',
|
|
projectId: 'project',
|
|
datasetId: 'dataset',
|
|
serviceAccountKey: '{}',
|
|
ducklakeMode: 'custom' as const,
|
|
ducklakeCatalogUrl: 'postgresql://user:password@host/catalog',
|
|
ducklakeDataPath: 's3://bucket/data',
|
|
ducklakeS3AccessKeyId: 'key',
|
|
ducklakeS3SecretAccessKey: 'secret',
|
|
ducklakeS3Region: 'us-east-1',
|
|
ducklakeS3Endpoint: 's3.us-east-1.amazonaws.com',
|
|
snowflakeAccountId: 'account',
|
|
snowflakeUser: 'user',
|
|
snowflakePrivateKey: '-----BEGIN PRIVATE KEY-----\nkey\n-----END PRIVATE KEY-----',
|
|
snowflakeDatabase: 'database',
|
|
snowflakeSchema: 'PUBLIC',
|
|
clickhouseUrl: 'https://host:8443',
|
|
clickhouseUser: 'default',
|
|
clickhousePassword: 'password',
|
|
clickhouseDatabase: 'database',
|
|
}
|
|
|
|
describe('connection validation', () => {
|
|
it.each(['BigQuery', 'DuckLake', 'Snowflake', 'ClickHouse'] as const)(
|
|
'validates %s independently of unfilled data fields and other destinations',
|
|
(type) => {
|
|
expect(getConnectionValidationIssues(type, validData)).toEqual([])
|
|
expect(getConnectionValidationIssues(type, { ...validData, name: ' ' })).toContainEqual({
|
|
path: 'name',
|
|
message: 'Name is required.',
|
|
})
|
|
const fields = getConnectionFieldNames(type)
|
|
expect(fields).toContain('name')
|
|
expect(fields).not.toContain('publicationName')
|
|
expect(fields).not.toContain('tableOptions')
|
|
}
|
|
)
|
|
|
|
it.each([
|
|
['BigQuery', { serviceAccountKey: 'invalid' }, 'serviceAccountKey'],
|
|
['DuckLake', { ducklakeCatalogUrl: '' }, 'ducklakeCatalogUrl'],
|
|
['Snowflake', { snowflakePrivateKey: 'invalid' }, 'snowflakePrivateKey'],
|
|
['ClickHouse', { clickhouseUrl: '' }, 'clickhouseUrl'],
|
|
] as const)('rejects invalid %s connection settings (%s)', (type, changes, path) => {
|
|
expect(getConnectionValidationIssues(type, { ...validData, ...changes })).toEqual(
|
|
expect.arrayContaining([expect.objectContaining({ path })])
|
|
)
|
|
})
|
|
})
|