0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/cypress/e2e
Paul D'Ambra cec352b6bf
fix: load insights less frequently (#13514)
## Problem

In this thread https://posthog.slack.com/archives/C0368RPHLQH/p1672383272168819 @macobo spotted that we are loading the list of insights more frequently than we need to due to a code path that keeps the turbo mode cache up-to-date for `savedInsightsLogic`

## Changes

Since the `DashboardsModel` action being reacted to passes the `InsightModel` that was updated. We can update the state in-memory without an API call

## How did you test this code?

added developer tests and checked the site running locally
2022-12-30 16:30:53 +00:00
..
a11y.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
actions.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
annotations.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
auth.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
cohorts.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
commandPalette.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
dashboard.ts fix: load insights less frequently (#13514) 2022-12-30 16:30:53 +00:00
dashboardPremium.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
eventDefinitions.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
events.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
exports.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
featureFlags.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
funnels.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
insights.ts fix: load insights less frequently (#13514) 2022-12-30 16:30:53 +00:00
insightsPremium.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
invites.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
licenses.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
organizationSettings.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
paths.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
person.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
persons.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
preflight.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
projectHomepage.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
retention.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
signup.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
systemStatus.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
toolbar.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
trends.ts test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00