Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,10 @@ public DecisionResponse<Variation> getVariation(@Nonnull Experiment experiment,
String bucketingId = getBucketingId(user.getUserId(), user.getAttributes());
String cmabUuid = null;
decisionVariation = bucketer.bucket(experiment, bucketingId, projectConfig, decisionPath);
reasons.merge(decisionVariation.getReasons());
if (decisionPath == DecisionPath.WITH_CMAB && isCmabExperiment(experiment) && decisionVariation.getResult() != null) {
// group-allocation and traffic-allocation checking passed for cmab
// we need server decision overruling local bucketing for cmab
// we need server decision overruling local bucketing for cmab
DecisionResponse<CmabDecision> cmabDecision = getDecisionForCmabExperiment(projectConfig, experiment, user, bucketingId, options);
reasons.merge(cmabDecision.getReasons());

Expand All @@ -189,7 +190,6 @@ public DecisionResponse<Variation> getVariation(@Nonnull Experiment experiment,
}
} else {
// Standard bucketing for non-CMAB experiments
reasons.merge(decisionVariation.getReasons());
variation = decisionVariation.getResult();
}

Expand Down