0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 00:47:50 +01:00

fix(experiments HogQL): fix funnels filter in prepare_query (#26327)

This commit is contained in:
Juraj Majerik 2024-11-21 12:47:35 +01:00 committed by GitHub
parent e12960b68b
commit 5f61d3202e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,7 @@ from posthog.schema import (
ExperimentFunnelsQueryResponse, ExperimentFunnelsQueryResponse,
ExperimentSignificanceCode, ExperimentSignificanceCode,
ExperimentVariantFunnelsBaseStats, ExperimentVariantFunnelsBaseStats,
FunnelLayout,
FunnelsFilter, FunnelsFilter,
FunnelsQuery, FunnelsQuery,
FunnelsQueryResponse, FunnelsQueryResponse,
@ -113,9 +114,10 @@ class ExperimentFunnelsQueryRunner(QueryRunner):
breakdown_type="event", breakdown_type="event",
) )
prepared_funnels_query.funnelsFilter = FunnelsFilter( # Set the layout to vertical
funnelVizType="steps", if prepared_funnels_query.funnelsFilter is None:
) prepared_funnels_query.funnelsFilter = FunnelsFilter()
prepared_funnels_query.funnelsFilter.layout = FunnelLayout.VERTICAL
return prepared_funnels_query return prepared_funnels_query