-
Notifications
You must be signed in to change notification settings - Fork 37
[FSSDK-11184] Update: Send CMAB uuid in impression events #458
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
base: master
Are you sure you want to change the base?
[FSSDK-11184] Update: Send CMAB uuid in impression events #458
Conversation
…rt OptimizelyFactory
- test_optimizely.py fixed to expect new Decision objects
…er and decision service
… and ensure key is of bytes type in hash128
…add __init__.py for cmab module
…essages and add a test for handling 500 errors
…lt and updating get_variation return type to include detailed error information
-test cases changed to handle return type dicts of DecisionResult and VariationResult
…ated logic for improved variation handling
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
This reverts commit d2fc631.
…just related logic for improved variation handling" This reverts commit b901c5f.
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
891aae9
to
73a2802
Compare
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
tests/test_optimizely.py
Outdated
variation = self.optimizely.get_variation('test_experiment', 'test_user') | ||
self.assertEqual('variation', variation) | ||
|
||
# Verify decision notification is sent with correct parameters |
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.
We need to also assert that the sent logx event contains the uuid in metadata.
…wo redundant tests on legacy api.
tests/test_optimizely.py
Outdated
opt_obj.decision_service, 'get_variations_for_feature_list', | ||
return_value=[decision_result] | ||
), mock.patch( | ||
'optimizely.event.user_event_factory.UserEventFactory.create_impression_event' |
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.
instead of mocking this, we can use a custom event dispatcher and assert on the eventDispatcher.dispatch method arguments
Summary
Impression event updates related to CMAB.
Test plan
Added unit tests
Issues
FSSDK-11184