- 
                Notifications
    
You must be signed in to change notification settings  - Fork 83
 
fix: Change experimentKey and variationKey to be null in rollout in decisionInfo payload #644
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
Conversation
…nsistent with other sdks
| const experimentKey = decision.getExperimentKey(decisionObj); | ||
| const variationKey = decision.getVariationKey(decisionObj); | 
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.
Are getExperimentKey & getVariationKey methods no longer used, so should delete them?
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.
These methods are being used in buildImpressionEvent and emitNotificationCenterActivate methods (we are still sending rule_key and variation_key   as empty strings inside metadata object in this case). I am not sure if they should be changed to null. @jaeopt maybe you have any thought on that?
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.
@yavorona I think we should keep those. Event and notification will have different requirements (empty string instead of null) than optimizelyDecision (null).
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.
LGTM
aaafbd5    to
    89bc241      
    Compare
  
    
Summary
variationKeyandruleKeyfrom empty string tonullin a rolloutdecisionInfopayload in order to pass FSC tests.OptimizelyDecideOptionsenums toOptimizelyDecideOptionto be consistent with other SDKs.Test plan
uzair/decide-api-endpointstestapp branch - all pass except for DECIDE WORLD tests, which will be addressed separately