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

Function map_mv_fs_value_to_engine

api/util/mappers/engine.py:166–178  ·  view source on GitHub ↗
(
    mv_fs_value: "MultivariateFeatureStateValue",
)

Source from the content-addressed store, hash-verified

164
165
166def map_mv_fs_value_to_engine(
167 mv_fs_value: "MultivariateFeatureStateValue",
168) -> MultivariateFeatureStateValueModel:
169 mv_feature_option: "MultivariateFeatureOption" = (
170 mv_fs_value.multivariate_feature_option
171 )
172
173 return MultivariateFeatureStateValueModel(
174 percentage_allocation=mv_fs_value.percentage_allocation,
175 id=mv_fs_value.id,
176 mv_fs_value_uuid=mv_fs_value.uuid,
177 multivariate_feature_option=map_mv_option_to_engine(mv_feature_option),
178 )
179
180
181def map_feature_to_engine(feature: "Feature") -> FeatureModel:

Callers 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…