Skip to content

Commit 1b28d2e

Browse files
Add clarifying comment about deterministic holdout selection
Co-authored-by: muzahidul-opti <129880873+muzahidul-opti@users.noreply.github.com>
1 parent 2e41eea commit 1b28d2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/optimizely/config/datafile_project_config.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def initialize(datafile, logger, error_handler)
198198
flag_id = feature_flag['id']
199199

200200
# Prefer explicit holdouts (includedFlags) over global holdouts
201+
# If multiple explicit holdouts exist, use the first one (deterministic based on datafile order)
201202
applicable_holdout = @included_holdouts[flag_id]&.first
202203

203204
# Use first global holdout that doesn't exclude this flag if no explicit holdout

0 commit comments

Comments
 (0)