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,
ExperimentSignificanceCode,
ExperimentVariantFunnelsBaseStats,
FunnelLayout,
FunnelsFilter,
FunnelsQuery,
FunnelsQueryResponse,
@ -113,9 +114,10 @@ class ExperimentFunnelsQueryRunner(QueryRunner):
breakdown_type="event",
)
prepared_funnels_query.funnelsFilter = FunnelsFilter(
funnelVizType="steps",
)
# Set the layout to vertical
if prepared_funnels_query.funnelsFilter is None:
prepared_funnels_query.funnelsFilter = FunnelsFilter()
prepared_funnels_query.funnelsFilter.layout = FunnelLayout.VERTICAL
return prepared_funnels_query