(self)
| 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( |