: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
feat(data-warehouse): make destination UI warehouse-table aware (#60539)
Tom Owers36c9a97ebe2e
diff --git a/frontend/src/scenes/hog-functions/configuration/HogFunctionTest.tsx b/frontend/src/scenes/hog-functions/configuration/HogFunctionTest.tsxindex 0ee7fa8f017c..8c61f415ec44 100644--- a/frontend/src/scenes/hog-functions/configuration/HogFunctionTest.tsx+++ b/frontend/src/scenes/hog-functions/configuration/HogFunctionTest.tsx@@ -153,7 +153,9 @@ export const HogFunctionTestEditor = ({}export function HogFunctionTest(): JSX.Element {- const { logicProps, canLoadSampleGlobals, hogFunction, template } = useValues(hogFunctionConfigurationLogic)+ const { logicProps, canLoadSampleGlobals, hogFunction, template, configuration } =+ useValues(hogFunctionConfigurationLogic)+ const isDataWarehouse = configuration?.filters?.source === 'data-warehouse-table'const {isTestInvocationSubmitting,testResult,@@ -199,7 +201,9 @@ export function HogFunctionTest(): JSX.Element {<h2 className="flex gap-2 items-center mb-0"><span>Testing</span></h2>- {inactive ? <p>Click here to test your function with an example event</p> : null}+ {inactive ? (+ <p>Click here to test your function with an example {isDataWarehouse ? 'row' : 'event'}</p>+ ) : null}</div>{inactive ? (diff --git a/frontend/src/scenes/hog-functions/filters/HogFunctionFilters.tsx b/frontend/src/scenes/hog-functions/filters/HogFunctionFilters.tsxindex 5fc9a6a39fd5..be5f569261ed 100644--- a/frontend/src/scenes/hog-functions/filters/HogFunctionFilters.tsx+++ b/frontend/src/scenes/hog-functions/filters/HogFunctionFilters.tsx@@ -141,7 +141,9 @@ export function HogFunctionFilters({return types}, [isTransformation, groupsTaxonomicTypes, isDataWarehouse])- const showMasking = type === 'destination' && !isLegacyPlugin && showTriggerOptions+ // Masking trigger options are event/person based (hashes of person.id / event.event and+ // event-count thresholds), so they don't apply to data-warehouse row triggers.+ const showMasking = type === 'destination' && !isLegacyPlugin && showTriggerOptions && !isDataWarehouseif (type === 'internal_destination') {return <HogFunctionFiltersInternal />@@ -173,8 +175,8 @@ export function HogFunctionFilters({<br /><b>Person updates</b> will trigger whenever a Person is created, updated or deleted.<br />- <b>Data warehouse</b> will trigger whenever a new row has been synced into the data- warehouse.+ <b>Warehouse table</b> will trigger whenever a new row is synced into a data warehouse+ table.</>}>@@ -187,7 +189,7 @@ export function HogFunctionFilters({? [{ value: 'person-updates', label: 'Person updates' }]: []),...(cdpDwhTableSourceEnabled- ? [{ value: 'data-warehouse-table', label: 'Data warehouse' }]+ ? [{ value: 'data-warehouse-table', label: 'Warehouse table' }]: []),]}value={value?.source ?? 'events'}