Skip to content

Commit

Permalink
revert "feat: remember replay filters" (#19707)
Browse files Browse the repository at this point in the history
Revert "feat: remember replay filters"
  • Loading branch information
pauldambra authored Jan 11, 2024
1 parent f6e3d3d commit 2390b9d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ describe('sessionRecordingsPlaylistLogic', () => {
updateSearchParams: true,
})
logic.mount()
// the logic persists its filters
logic.actions.resetFilters()
})

describe('core assumptions', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ export const sessionRecordingsPlaylistLogic = kea<sessionRecordingsPlaylistLogic
],
customFilters: [
props.filters ?? null,
{ persist: true },
{
setFilters: (state, { filters }) => ({
...state,
Expand Down
18 changes: 18 additions & 0 deletions posthog/api/test/__snapshots__/test_insight.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,24 @@
LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/
'''
# ---
# name: TestInsight.test_listing_insights_does_not_nplus1.30
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
"posthog_taggeditem"."dashboard_id",
"posthog_taggeditem"."insight_id",
"posthog_taggeditem"."event_definition_id",
"posthog_taggeditem"."property_definition_id",
"posthog_taggeditem"."action_id",
"posthog_taggeditem"."feature_flag_id"
FROM "posthog_taggeditem"
WHERE "posthog_taggeditem"."insight_id" IN (1,
2,
3,
4,
5 /* ... */) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/
'''
# ---
# name: TestInsight.test_listing_insights_does_not_nplus1.4
'''
SELECT "posthog_team"."id",
Expand Down

0 comments on commit 2390b9d

Please sign in to comment.