mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
Send Experiment variants used for calculations with API response (#8597)
This commit is contained in:
parent
c5fd66a5f2
commit
286d8844d7
@ -92,6 +92,7 @@ class ClickhouseFunnelExperimentResult:
|
||||
"filters": self.funnel._filter.to_dict(),
|
||||
"significance_code": significance_code,
|
||||
"expected_loss": loss,
|
||||
"variants": [dataclasses.asdict(variant) for variant in [control_variant, *test_variants]],
|
||||
}
|
||||
|
||||
def get_variants(self, funnel_results):
|
||||
|
@ -119,6 +119,7 @@ class ClickhouseTrendExperimentResult:
|
||||
"filters": self.query_filter.to_dict(),
|
||||
"significance_code": significance_code,
|
||||
"p_value": p_value,
|
||||
"variants": [dataclasses.asdict(variant) for variant in [control_variant, *test_variants]],
|
||||
}
|
||||
|
||||
def get_variants(self, insight_results, exposure_results):
|
||||
|
Loading…
Reference in New Issue
Block a user