Skip to content

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

Merged
merged 29 commits into from
Dec 9, 2020
Merged

Conversation

mnoman09
Copy link
Contributor

Summary

  • Added Decide api
  • Added logs into reasons info and error
  • Added unit test of OptimizelyUserContext

Test plan

Unit tests added.

Copy link
Contributor

@msohailhussain msohailhussain left a 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 },
Copy link
Contributor

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 ?

@msohailhussain msohailhussain marked this pull request as ready for review November 23, 2020 21:03
@msohailhussain msohailhussain requested a review from a team as a code owner November 23, 2020 21:03
Copy link
Contributor

@jaeopt jaeopt left a 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.

@mnoman09 mnoman09 removed their assignment Dec 2, 2020
Copy link
Contributor

@msohailhussain msohailhussain left a 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.

added check of decisionReason in test that it should be zero if no error log occurs
Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - nit

Copy link
Contributor

@msohailhussain msohailhussain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Base automatically changed from mnoman/user-context to master December 8, 2020 01:11
# Conflicts:
#	OptimizelySDK.Tests/OptimizelyDecisions/OptimizelyDecisionTest.cs
#	OptimizelySDK.Tests/OptimizelyUserContextTest.cs
#	OptimizelySDK/Optimizely.cs
#	OptimizelySDK/OptimizelyDecisions/DefaultDecisionReasons.cs
#	OptimizelySDK/OptimizelyUserContext.cs
@msohailhussain msohailhussain reopened this Dec 8, 2020
@jaeopt jaeopt merged commit dea90f6 into master Dec 9, 2020
@jaeopt jaeopt deleted the mnoman/decideapi branch December 9, 2020 00:29
@yasirfolio3 yasirfolio3 changed the title Feat(decide): Added UserContext add reason logs Feat(decide): Added UserContext and reason logs Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants