-
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(decide): add UserContext #248
Conversation
and classes related to it
BugFix of userAttributes Unit tests fix
This reverts commit 6c9ac4d.
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.
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.
some more comments.
OptimizelySDK.Tests/OptimizelyDecisions/OptimizelyDecisionTest.cs
Outdated
Show resolved
Hide resolved
Throwing not implemented exceptions for not implemented functions in optimizelyUserContext Added detailed documentation of optimizelyUserContext and Decision class
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! Need some changes.
OptimizelySDK.Tests/OptimizelyDecisions/OptimizelyDecisionTest.cs
Outdated
Show resolved
Hide resolved
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. I see mutex control for reading attributes is missing.
|
||
public static IDecisionReasons NewInstance(List<OptimizelyDecideOption> options) | ||
{ | ||
if (options != null && options.Contains(OptimizelyDecideOption.INCLUDE_REASONS)) |
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.
options?.Contains() ?? false ? new DefaultDecisionReasons() : new ErrorsDecisionReasons
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.
removed static from mutex object
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.
Apporved with a comment:
- Thread-safe attributes read/write will be fixed in a separate PR (OASIS-7371)
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
Summary
A part of multiple PRs for Decide API
Tests