Skip to content

Commit 33c176e

Browse files
WIP: Rollout decision seperate from experiemnt decision
1 parent e132c56 commit 33c176e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Sources/Implementation/DefaultDecisionService.swift

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,18 @@ class DefaultDecisionService: OPTDecisionService {
254254
continue
255255
}
256256

257-
decisionResponse = getVariationForFeatureRollout(config: config, featureFlag: featureFlag, user: user)
258-
259-
reasons.merge(decisionResponse.reasons)
260-
261-
if let decision = decisionResponse.result {
262-
decisions.append(DecisionResponse(result: decision, reasons: reasons))
263-
} else {
264-
decisions.append(DecisionResponse(result: nil, reasons: reasons))
257+
if ignoreUPS {
258+
decisionResponse = getVariationForFeatureRollout(config: config, featureFlag: featureFlag, user: user)
259+
260+
reasons.merge(decisionResponse.reasons)
261+
262+
if let decision = decisionResponse.result {
263+
decisions.append(DecisionResponse(result: decision, reasons: reasons))
264+
} else {
265+
decisions.append(DecisionResponse(result: nil, reasons: reasons))
266+
}
265267
}
268+
266269
}
267270

268271
// save profile

0 commit comments

Comments
 (0)