(self, **kwargs: Any)
| 158 | } |
| 159 | |
| 160 | def save(self, **kwargs: Any) -> None: |
| 161 | environment: Environment = kwargs["environment"] |
| 162 | cache: FeatureEvaluationCache = kwargs["cache"] |
| 163 | request = self.context["request"] |
| 164 | labels = map_request_to_labels(request) |
| 165 | for feature_name, evaluation_count in self.validated_data.items(): |
| 166 | cache.track_feature_evaluation( |
| 167 | environment_id=environment.id, |
| 168 | feature_name=feature_name, |
| 169 | evaluation_count=evaluation_count, |
| 170 | labels=labels, |
| 171 | ) |
| 172 | |
| 173 | |
| 174 | def _get_label_fields() -> dict[str, serializers.Field[Any, Any, Any, Any]]: |
nothing calls this directly
no test coverage detected