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:
parent
e12960b68b
commit
5f61d3202e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user