From 1c4faaf90b9c3dbe008ca255c485521773756fff Mon Sep 17 00:00:00 2001 From: Haven Date: Tue, 7 Jan 2025 11:43:45 -0800 Subject: [PATCH] fix(flags): switch feature flags taxonomic filter loading to be async + search like insights (#27332) --- .../lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx index 4f78288aa2c75..3c6cc9ea3b79f 100644 --- a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx +++ b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx @@ -18,7 +18,6 @@ import { getEventDefinitionIcon, getPropertyDefinitionIcon } from 'scenes/data-m import { dataWarehouseJoinsLogic } from 'scenes/data-warehouse/external/dataWarehouseJoinsLogic' import { dataWarehouseSceneLogic } from 'scenes/data-warehouse/settings/dataWarehouseSceneLogic' import { experimentsLogic } from 'scenes/experiments/experimentsLogic' -import { featureFlagsLogic } from 'scenes/feature-flags/featureFlagsLogic' import { groupDisplayId } from 'scenes/persons/GroupActorDisplay' import { projectLogic } from 'scenes/projectLogic' import { ReplayTaxonomicFilters } from 'scenes/session-recordings/filters/ReplayTaxonomicFilters' @@ -442,8 +441,7 @@ export const taxonomicFilterLogic = kea([ name: 'Feature Flags', searchPlaceholder: 'feature flags', type: TaxonomicFilterGroupType.FeatureFlags, - logic: featureFlagsLogic, - value: 'featureFlags', + endpoint: combineUrl(`api/projects/${teamId}/feature_flags/`).url, getName: (featureFlag: FeatureFlagType) => featureFlag.key || featureFlag.name, getValue: (featureFlag: FeatureFlagType) => featureFlag.id || '', getPopoverHeader: () => `Feature Flags`,