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

Function compute_exposures_summary

api/experimentation/services.py:161–176  ·  view source on GitHub ↗
(
    *,
    environment_key: str,
    feature_name: str,
    window_start: datetime,
    window_end: datetime,
)

Source from the content-addressed store, hash-verified

159
160
161def compute_exposures_summary(
162 *,
163 environment_key: str,
164 feature_name: str,
165 window_start: datetime,
166 window_end: datetime,
167) -> ExposuresSummary:
168 granularity = _select_exposure_granularity(window_start, window_end)
169 buckets = get_exposure_buckets(
170 environment_key=environment_key,
171 feature_name=feature_name,
172 window_start=window_start,
173 window_end=window_end,
174 granularity=granularity,
175 )
176 return build_exposures_summary(buckets, granularity=granularity)
177
178
179def build_exposures_summary(

Callers 1

Calls 3

get_exposure_bucketsFunction · 0.85
build_exposures_summaryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…