-
Notifications
You must be signed in to change notification settings - Fork 20
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: Adds Decide All, DecideForKeys and track event #251
Conversation
and classes related to it
BugFix of userAttributes Unit tests fix
This reverts commit 6c9ac4d.
BugFix of userAttributes Unit tests fix
Added Unit tests of above functions
Throwing not implemented exceptions for not implemented functions in optimizelyUserContext Added detailed documentation of optimizelyUserContext and Decision class
# Conflicts: # OptimizelySDK.Tests/OptimizelyUserContextTest.cs # OptimizelySDK/OptimizelyUserContext.cs
# Conflicts: # OptimizelySDK/Optimizely.cs
# Conflicts: # OptimizelySDK/OptimizelyUserContext.cs
added check of decisionReason in test that it should be zero if no error log occurs
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.
All changes look good.
See a couple of more change suggestions.
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
# Conflicts: # OptimizelySDK.Tests/OptimizelyDecisions/OptimizelyDecisionTest.cs # OptimizelySDK.Tests/OptimizelyUserContextTest.cs # OptimizelySDK/Optimizely.cs # OptimizelySDK/OptimizelyDecisions/DefaultDecisionReasons.cs # OptimizelySDK/OptimizelyUserContext.cs
OptimizelySDK/Optimizely.cs
Outdated
private OptimizelyDecideOption[] GetAllOptions(OptimizelyDecideOption[] options) | ||
{ | ||
OptimizelyDecideOption[] copiedOptions = new OptimizelyDecideOption[DefaultDecideOptions.Length]; | ||
Array.Copy(DefaultDecideOptions, copiedOptions, DefaultDecideOptions.Length); | ||
if (options != null) | ||
{ | ||
copiedOptions.Concat(options); | ||
copiedOptions = copiedOptions.Concat(options).Concat(DefaultDecideOptions).ToArray(); |
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.
Can you please try, it's just an improvement.
return = options.Union(DefaultDecideOptions).ToArray();
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.
just have minor nits. please fix before merging. lgtm
…DecideOptions).ToArray(); with copiedOptions = options.Union(DefaultDecideOptions).ToArray();
# Conflicts: # OptimizelySDK.Tests/OptimizelyUserContextTest.cs # OptimizelySDK/Optimizely.cs
Summary
Test plan