(self, request, *args, **kwargs)
| 278 | @extend_schema(responses={200: IdentityAllFeatureStatesSerializer(many=True)}) |
| 279 | @action(detail=False, methods=["GET"]) |
| 280 | def all(self, request, *args, **kwargs): # type: ignore[no-untyped-def] |
| 281 | ( |
| 282 | feature_states, |
| 283 | identity_feature_names, |
| 284 | ) = self.identity.get_all_feature_states() |
| 285 | |
| 286 | serializer = IdentityAllFeatureStatesSerializer( |
| 287 | instance=feature_states, |
| 288 | many=True, |
| 289 | context={ |
| 290 | "request": request, |
| 291 | "identity": self.identity, |
| 292 | "environment_api_key": self.identity.environment_api_key, |
| 293 | "identity_feature_names": identity_feature_names, |
| 294 | }, |
| 295 | ) |
| 296 | |
| 297 | return Response(serializer.data) |
| 298 | |
| 299 | @extend_schema( |
| 300 | request=EdgeIdentitySourceIdentityRequestSerializer(), |
no test coverage detected