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

Method list

api/experimentation/views.py:110–120  ·  view source on GitHub ↗
(self, request: Request, *args: object, **kwargs: object)

Source from the content-addressed store, hash-verified

108 instance.delete()
109
110 def list(self, request: Request, *args: object, **kwargs: object) -> Response:
111 environment_api_key: str = self.kwargs["environment_api_key"]
112 connections = list(self.filter_queryset(self.get_queryset()))
113 exclude_event_stats = (
114 request.query_params.get("exclude_event_stats", "").lower() == "true"
115 )
116 if not exclude_event_stats:
117 for connection in connections:
118 annotate_warehouse_event_stats(connection, environment_api_key)
119 serializer = self.get_serializer(connections, many=True)
120 return Response(serializer.data)
121
122 def retrieve(self, request: Request, *args: object, **kwargs: object) -> Response:
123 connection = self.get_object()

Callers

nothing calls this directly

Calls 3

get_querysetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected