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

Function _update_live_feature_state

api/experimentation/services.py:596–605  ·  view source on GitHub ↗
(
    feature_state: FeatureState, change_set: FlagChangeSet
)

Source from the content-addressed store, hash-verified

594
595
596def _update_live_feature_state(
597 feature_state: FeatureState, change_set: FlagChangeSet
598) -> None:
599 feature_state.enabled = change_set.enabled
600 feature_state.save()
601 feature_state.feature_state_value.set_value(
602 change_set.feature_state_value, change_set.type_
603 )
604 feature_state.feature_state_value.save()
605 update_multivariate_values(feature_state, change_set.multivariate_values)
606
607
608def _update_rollout_in_place(experiment: Experiment, change_set: FlagChangeSet) -> None:

Callers 1

_update_rollout_in_placeFunction · 0.85

Calls 3

saveMethod · 0.45
set_valueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…