Files
Victor FarazdagiandJoshen Lim 00adb5a81b chore(studio): remove the Iceberg pipeline destination (#52229)
## 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>
2026-11-11 12:18:04 +03:00

52 lines
1.6 KiB
TypeScript

import { useFlag } from 'common'
import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'
/**
* Organization-level access for Pipelines alpha destinations. The flag names still use
* the original ETL identifiers, but the UI checks whether the org has access to at least one
* destination type.
*/
const useIsCurrentOrgInFlagList = (flag: string) => {
const flagValue = useFlag(flag)
const { data: organization } = useSelectedOrganizationQuery()
const allowedOrgSlugs =
typeof flagValue === 'string'
? (flagValue as string).split(',').map((x: string) => x.trim())
: []
// [Joshen] Override to enable for all organizations by setting the flag value as `all`
if (allowedOrgSlugs.includes('all')) return true
// [Joshen] Otherwise fallback to checking against org slug
return allowedOrgSlugs.includes(organization?.slug ?? '')
}
export const useIsPipelinesBigQueryEnabled = () => {
return useIsCurrentOrgInFlagList('etlEnableBigQueryPrivateAlpha')
}
export const useIsPipelinesDuckLakeEnabled = () => {
return useIsCurrentOrgInFlagList('etlEnableDucklakePrivateAlpha')
}
export const useIsPipelinesSnowflakeEnabled = () => {
return useIsCurrentOrgInFlagList('etlEnableSnowflakePrivateAlpha')
}
export const useIsPipelinesClickHouseEnabled = () => {
return useIsCurrentOrgInFlagList('etlEnableClickHousePrivateAlpha')
}
export const useIsPipelinesEnabled = () => {
const destinationAccess = [
useIsPipelinesBigQueryEnabled(),
useIsPipelinesDuckLakeEnabled(),
useIsPipelinesSnowflakeEnabled(),
useIsPipelinesClickHouseEnabled(),
]
return destinationAccess.some(Boolean)
}