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

Method start

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

Source from the content-addressed store, hash-verified

335
336 @action(detail=True, methods=["post"])
337 def start(self, request: Request, **kwargs: object) -> Response:
338 with transaction.atomic():
339 response = self._transition_status(ExperimentStatus.RUNNING)
340 if status.is_success(response.status_code):
341 enable_experiment_rollout(
342 self.get_object(), AuthorData.from_request(request)
343 )
344 return response
345
346 @action(detail=True, methods=["post"])
347 def pause(self, request: Request, **kwargs: object) -> Response:

Callers 1

decoratorFunction · 0.80

Calls 4

_transition_statusMethod · 0.95
from_requestMethod · 0.80
get_objectMethod · 0.45

Tested by

no test coverage detected