-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(decision-listener): Incorporated new decision notification listener changes. #174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor feedback. Looks good otherwise.
optimizely/helpers/enums.py
Outdated
""" | ||
ACTIVATE = "ACTIVATE:experiment, user_id, attributes, variation, event" | ||
DECISION = "DECISION:type, user_id, attributes, decision_info" | ||
TRACK = "TRACK:event_key, user_id, attributes, event_tags, event" | ||
|
||
|
||
class DecisionInfoTypes(object): | ||
EXPERIMENT = "experiment" | ||
class DecisionNotificationTypes(object): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. Lets alphabetize class names here.
Also, conventionally we do single quotes for all strings.
optimizely/project_config.py
Outdated
@@ -106,12 +106,19 @@ def __init__(self, datafile, logger, error_handler): | |||
) | |||
|
|||
self.feature_key_map = self._generate_key_map(self.feature_flags, 'key', entities.FeatureFlag) | |||
|
|||
# Hash containing experiment Ids that exist in any feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. Dict and not hash.
Also, right message will be Dict containing map of experiment ID to feature ID ...
Summary
Test plan
feature-test
and project config method.