MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / get_features_metrics_queryset

Method get_features_metrics_queryset

api/environments/models.py:419–425  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

417 )
418
419 def get_features_metrics_queryset(self) -> QuerySet[FeatureState]:
420 ids = self._get_active_feature_states_ids(
421 None,
422 {"identity__isnull": True, "feature_segment__isnull": True},
423 )
424 result: QuerySet[FeatureState] = FeatureState.objects.filter(id__in=ids)
425 return result
426
427 def _get_latest_segment_state_ids_subquery(self) -> list[int]:
428 feature_states_qs = FeatureState.objects.get_live_feature_states(

Calls 1