Skip to content

Commit

Permalink
fix(experiments HogQL): fix funnels filter in prepare_query (#26327)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajmajerik authored Nov 21, 2024
1 parent e12960b commit 5f61d32
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
ExperimentFunnelsQueryResponse,
ExperimentSignificanceCode,
ExperimentVariantFunnelsBaseStats,
FunnelLayout,
FunnelsFilter,
FunnelsQuery,
FunnelsQueryResponse,
Expand Down Expand Up @@ -113,9 +114,10 @@ def _prepare_funnel_query(self) -> FunnelsQuery:
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

Expand Down

0 comments on commit 5f61d32

Please sign in to comment.