-
Notifications
You must be signed in to change notification settings - Fork 20
Feat(decide): Added UserContext and reason logs #250
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
and classes related to it
BugFix of userAttributes Unit tests fix
This reverts commit 6c9ac4d.
BugFix of userAttributes Unit tests fix
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.
please address.
{ | ||
{ "flagKey", key }, | ||
{ "enabled", featureEnabled }, | ||
{ "variables", variableMap }, |
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 pass variables of optimizelyjson ?
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
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.
Looks good! See changes suggested.
# Conflicts: # OptimizelySDK.Tests/OptimizelyUserContextTest.cs
removed nullable from reasons and made sure its not 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.
looks good but address comments on unit test.
removed static from mutex object
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.
LGTM - nit
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
Summary
Test plan
Unit tests added.