Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(experiments): show a toast notification when the recalculation workflow is triggered manually (#73297)

Rodrigo Ilorod35860bf8c77
diff --git a/frontend/src/scenes/experiments/experimentMetricsLogic.ts b/frontend/src/scenes/experiments/experimentMetricsLogic.ts
index 6f4587bd26e5..43bacc152cc5 100644
--- a/frontend/src/scenes/experiments/experimentMetricsLogic.ts
+++ b/frontend/src/scenes/experiments/experimentMetricsLogic.ts
@@ -764,6 +764,11 @@ export const experimentMetricsLogic = kea<experimentMetricsLogicType>([
applyResults(recalculation)
emitTerminalEvent(recalculation)
} else {
+ if (trigger === 'manual' && !recalculation.is_existing) {
+ lemonToast.info(
+ 'Recalculating metrics in the background. Results will update as they finish.'
+ )
+ }
actions.pollRecalculation(recalculation.id)
}
} catch (error: any) {