Skip to content

Commit

Permalink
Merge 3f0f9f1 into de91292
Browse files Browse the repository at this point in the history
  • Loading branch information
The-inside-man committed Sep 16, 2021
2 parents de91292 + 3f0f9f1 commit bba3cba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions optimizely/optimizely_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ def __init__(self, revision, experiments_map, features_map, datafile=None,
sdk_key=None, environment_key=None, attributes=None, events=None,
audiences=None):
self.revision = revision

# This experiments_map is for experiments of legacy projects only.
# For flag projects, experiment keys are not guaranteed to be unique
# across multiple flags, so this map may not include all experiments
# when keys conflict.
self.experiments_map = experiments_map

self.features_map = features_map
self._datafile = datafile
self.sdk_key = sdk_key or ''
Expand Down Expand Up @@ -52,7 +58,11 @@ class OptimizelyFeature(object):
def __init__(self, id, key, experiments_map, variables_map):
self.id = id
self.key = key

# This experiments_map is now deprecated,
# Please use delivery_rules and experiment_rules
self.experiments_map = experiments_map

self.variables_map = variables_map
self.delivery_rules = []
self.experiment_rules = []
Expand Down

0 comments on commit bba3cba

Please sign in to comment.