| 205 | |
| 206 | |
| 207 | class _EnvironmentScopedMetricField(serializers.PrimaryKeyRelatedField[Metric]): |
| 208 | def get_queryset(self) -> QuerySet[Metric]: |
| 209 | queryset: QuerySet[Metric] = Metric.objects.filter( |
| 210 | environment=self.context["environment"] |
| 211 | ) |
| 212 | return queryset |
| 213 | |
| 214 | |
| 215 | class ExperimentMetricInlineSerializer(serializers.Serializer): # type: ignore[type-arg] |
no outgoing calls
no test coverage detected
searching dependent graphs…