Skip to content
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

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

rashidsp
Copy link
Contributor

Summary

  • Incorporated new decision notification listener changes.
  • Updated test data to fix experiment to feature relationship.

Test plan

  • Added unit tests for type feature-test and project config method.
  • Updated unit tests.

@coveralls
Copy link

coveralls commented Apr 24, 2019

Coverage Status

Coverage increased (+0.001%) to 99.714% when pulling d12e28d on rashid/decision-listener-new-changes into 1ed413d on master.

@rashidsp rashidsp requested a review from a team April 24, 2019 09:07
Copy link
Contributor

@aliabbasrizvi aliabbasrizvi left a 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.

"""
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):
Copy link
Contributor

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.

@@ -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
Copy link
Contributor

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 ...

@aliabbasrizvi aliabbasrizvi merged commit ec028d9 into master Apr 25, 2019
@aliabbasrizvi aliabbasrizvi deleted the rashid/decision-listener-new-changes branch April 25, 2019 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants