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

Method rollout

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

Source from the content-addressed store, hash-verified

353
354 @action(detail=True, methods=["patch"])
355 def rollout(self, request: Request, **kwargs: object) -> Response:
356 experiment: Experiment = self.get_object()
357 serializer = ExperimentRolloutSerializer(data=request.data)
358 serializer.is_valid(raise_exception=True)
359 apply_experiment_rollout(
360 experiment,
361 ExperimentRolloutSerializer.to_spec(serializer.validated_data, request),
362 )
363 return Response(self.get_serializer(experiment).data)
364
365 @extend_schema(
366 tags=["mcp"],

Callers

nothing calls this directly

Calls 5

apply_experiment_rolloutFunction · 0.90
is_validMethod · 0.80
to_specMethod · 0.80
get_objectMethod · 0.45

Tested by

no test coverage detected