Skip to content

Conversation

@yavorona
Copy link
Contributor

@yavorona yavorona commented Jan 13, 2021

Summary

The OptimizelyUserContext instance is returned as a part of decision at the end of the decide api call. If the instance is not cloned at the beginning, it may have different states than one used for the decision.
In this pr, cloning of user context is implemented before calling decide api.

Test plan

Unit tests + Manual testing

Issues

@yavorona yavorona self-assigned this Jan 13, 2021
@yavorona yavorona requested a review from a team as a code owner January 13, 2021 01:17
@coveralls
Copy link

coveralls commented Jan 13, 2021

Coverage Status

Coverage decreased (-0.8%) to 95.981% when pulling 7433b9e on pnguen/clone-optimizely-user-context into b94149b on master.

@yavorona yavorona removed their assignment Jan 13, 2021
@yavorona yavorona requested review from jaeopt and mjc1283 January 13, 2021 17:19
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

@yavorona yavorona merged commit e6454b9 into master Jan 14, 2021
@yavorona yavorona deleted the pnguen/clone-optimizely-user-context branch January 14, 2021 17:19
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.

5 participants