Skip to content

feat: clone user context#312

Closed
ozayr-zaviar wants to merge 4 commits into
decideApifrom
uzair/clone-user-context
Closed

feat: clone user context#312
ozayr-zaviar wants to merge 4 commits into
decideApifrom
uzair/clone-user-context

Conversation

@ozayr-zaviar
Copy link
Copy Markdown
Contributor

Summary

  • clone() added in user_context to clone user_context and passed in decide, decide_for_keysand decide_all as argument

Test plan

  • All existing test cases should pass

@ozayr-zaviar ozayr-zaviar removed their assignment Jan 12, 2021
@ozayr-zaviar ozayr-zaviar changed the title Uzair/clone user context feat: clone user context Jan 13, 2021
Copy link
Copy Markdown
Contributor

@oakbani oakbani 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. Please write a unit test to verify that the UserContext object in decide API response is not the same object on which the decide api was called.

Copy link
Copy Markdown
Contributor

@oakbani oakbani 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.

@oakbani
Copy link
Copy Markdown
Contributor

oakbani commented Jan 25, 2021

Added changes in #314

@oakbani oakbani closed this Jan 25, 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.

2 participants