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,
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user