:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(data-warehouse): add search aliases for self-managed storage sources (#67040)
Tom Owerscd839aa2c3a7
diff --git a/products/data_warehouse/frontend/scenes/NewSourceScene/sourceCatalogLogic.ts b/products/data_warehouse/frontend/scenes/NewSourceScene/sourceCatalogLogic.tsindex 73bcde8372c5..c71312270052 100644--- a/products/data_warehouse/frontend/scenes/NewSourceScene/sourceCatalogLogic.ts+++ b/products/data_warehouse/frontend/scenes/NewSourceScene/sourceCatalogLogic.ts@@ -34,6 +34,16 @@ export const ALL_SOURCES_CATEGORY = 'all'// them in a sensible catalog bucket explicitly.const MANUAL_SOURCE_CATEGORY: DataWarehouseSourceCategory = 'File storage'+// Self-managed connectors carry no SourceConfig keywords, and their labels alone ("S3",+// "Google Cloud Storage") miss the terms users actually search ("amazon", "aws", "gcs").+// Keys match ManualLinkSourceType.+const MANUAL_SOURCE_KEYWORDS: Record<string, string[]> = {+ aws: ['amazon', 'aws', 's3', 'amazon web services', 'amazon s3'],+ 'google-cloud': ['gcs', 'gcp', 'google cloud', 'google cloud storage'],+ 'cloudflare-r2': ['cloudflare', 'r2', 'object storage'],+ azure: ['azure', 'microsoft azure', 'azure blob', 'blob storage'],+}+// "Request a data warehouse source" survey. We render our own modal and submit the answer// directly as a `survey sent` event rather than using the posthog-js survey popover.export const SOURCE_REQUEST_SURVEY_ID = '0190ff15-5032-0000-722a-e13933c140ac'@@ -163,7 +173,7 @@ export const sourceCatalogLogic = kea<sourceCatalogLogicType>([label: source.name,iconType: source.type,category: MANUAL_SOURCE_CATEGORY,- keywords: [],+ keywords: MANUAL_SOURCE_KEYWORDS[source.type] ?? [],status: 'stable',url: urls.dataWarehouseSourceNew(source.type),})