From 44a8c5ecd81998f26ddbeb75b2900135efad241c Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Tue, 18 Jun 2024 09:37:52 +0100 Subject: [PATCH] chore: remove artificial lag (#23039) --- frontend/src/lib/constants.tsx | 1 - .../sessionRecordingsPlaylistLogic.ts | 21 +------------------ 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx index 7366ef818c1ee..106c55e8a92ee 100644 --- a/frontend/src/lib/constants.tsx +++ b/frontend/src/lib/constants.tsx @@ -199,7 +199,6 @@ export const FEATURE_FLAGS = { PLUGINS_FILTERING: 'plugins-filtering', // owner: @benjackwhite SESSION_REPLAY_HOG_QL_FILTERING: 'session-replay-hogql-filtering', // owner: #team-replay INSIGHT_LOADING_BAR: 'insight-loading-bar', // owner: @aspicer - SESSION_REPLAY_ARTIFICIAL_LAG: 'artificial-lag-query-performance', // owner: #team-replay PROXY_AS_A_SERVICE: 'proxy-as-a-service', // owner: #team-infrastructure LIVE_EVENTS: 'live-events', // owner: @zach or @jams SESSION_REPLAY_NETWORK_VIEW: 'session-replay-network-view', // owner: #team-replay diff --git a/frontend/src/scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic.ts b/frontend/src/scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic.ts index 4d7feea2de967..0844fd2d94ee4 100644 --- a/frontend/src/scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic.ts +++ b/frontend/src/scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic.ts @@ -9,7 +9,6 @@ import { UniversalFiltersGroup, UniversalFilterValue } from 'lib/components/Univ import { DEFAULT_UNIVERSAL_GROUP_FILTER } from 'lib/components/UniversalFilters/universalFiltersLogic' import { isActionFilter, isEventFilter } from 'lib/components/UniversalFilters/utils' import { FEATURE_FLAGS } from 'lib/constants' -import { now } from 'lib/dayjs' import { featureFlagLogic } from 'lib/logic/featureFlagLogic' import { objectClean, objectsEqual } from 'lib/utils' import { eventUsageLogic } from 'lib/utils/eventUsageLogic' @@ -284,14 +283,6 @@ export const sessionRecordingsPlaylistLogic = kea [s.featureFlags], - (featureFlags) => { - const lag = featureFlags[FEATURE_FLAGS.SESSION_REPLAY_ARTIFICIAL_LAG] - // lag needs to match `\d+` when present it is a number of seconds delay - // relative_date parsing in the backend can't cope with seconds - // so it will be converted to an absolute date when added to API call - return typeof lag === 'string' && /^\d+$/.test(lag) ? Number.parseInt(lag) : null - }, - ], useHogQLFiltering: [ (s) => [s.featureFlags], (featureFlags) => !!featureFlags[FEATURE_FLAGS.SESSION_REPLAY_HOG_QL_FILTERING],