diff --git a/posthog/api/feature_flag.py b/posthog/api/feature_flag.py index 1c17722525b98..5123b8010a0b0 100644 --- a/posthog/api/feature_flag.py +++ b/posthog/api/feature_flag.py @@ -39,7 +39,6 @@ from posthog.models.cohort import Cohort from posthog.models.cohort.util import get_dependent_cohorts from posthog.models.feature_flag import ( - FeatureFlagMatcher, FeatureFlagDashboards, can_user_edit_feature_flag, get_all_feature_flags, @@ -460,7 +459,7 @@ def my_flags(self, request: request.Request, **kwargs): raise exceptions.NotAuthenticated() feature_flags = ( - FeatureFlag.objects.filter(team=self.team, active=True, deleted=False) + FeatureFlag.objects.filter(team=self.team, deleted=False) .prefetch_related("experiment_set") .prefetch_related("features") .prefetch_related("analytics_dashboards") @@ -476,7 +475,7 @@ def my_flags(self, request: request.Request, **kwargs): if not feature_flag_list: return Response(flags) - matches, _, _, _ = FeatureFlagMatcher(feature_flag_list, request.user.distinct_id, groups).get_matches() + matches, _, _, _ = get_all_feature_flags(self.team_id, request.user.distinct_id, groups) for feature_flag in feature_flags: flags.append( {