File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -179,8 +179,16 @@ def bucket_to_entity_id(
179
179
project_config .logger .info (message )
180
180
decide_reasons .append (message )
181
181
182
+ traffic_allocations : list [TrafficAllocation ] = experiment .trafficAllocation
183
+ if experiment .cmab :
184
+ traffic_allocations = [
185
+ {
186
+ "entityId" : "$" ,
187
+ "endOfRange" : experiment .cmab ['trafficAllocation' ]
188
+ }
189
+ ]
182
190
# Bucket user if not in white-list and in group (if any)
183
191
variation_id = self .find_bucket (project_config , bucketing_id ,
184
- experiment .id , experiment . trafficAllocation )
192
+ experiment .id , traffic_allocations )
185
193
186
194
return variation_id , decide_reasons
Original file line number Diff line number Diff line change @@ -490,7 +490,6 @@ def get_variation(
490
490
# If so, handle CMAB-specific traffic allocation and decision logic.
491
491
# Otherwise, proceed with standard bucketing logic for non-CMAB experiments.
492
492
if experiment .cmab :
493
- experiment .cmab
494
493
cmab_decision_result = self ._get_decision_for_cmab_experiment (project_config ,
495
494
experiment ,
496
495
user_context ,
You can’t perform that action at this time.
0 commit comments