-
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
fix(track): Send decisions for all experiments using an event when using track #136
Conversation
build-e2e |
This includes commits from #135 |
optimizely/event_builder.py
Outdated
|
||
return snapshot | ||
snapshot.setdefault(self.EventParams.EVENTS, []).append(event_dict) |
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.
Do we need to setdefault as opposed to just initializing an empty array with that event_dict
?
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.
Yeah, let me update that.
@@ -375,5 +375,152 @@ def setUp(self): | |||
}] | |||
} | |||
|
|||
self.optimizely = optimizely.Optimizely(json.dumps(self.config_dict)) | |||
self.config_dict_with_multiple_experiments = { |
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.
Shouldn't this be passed in for that one unit test that uses it?
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.
I think it is ok
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.
I left some comments, mostly nits
build-e2e |
build-e2e |
No description provided.