Skip to content
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

Migrate Node SDK to use V2 Randomization Endpoint #20

Merged
merged 5 commits into from
Sep 19, 2022
Merged

Conversation

vpai
Copy link
Contributor

@vpai vpai commented Sep 19, 2022

Fixes Eppo-exp/eppo#4711

Description

Updated the getAssignment logic to use the allocation (variations + exposure) for the matched targeting rule. The API response inserts a default rule that always matches if the experiment does not have any rules.

See linked issue above for further details.

Also made some changes to code organization:

  • Suffixed all dto filenames with -dto and grouped them in a dto folder.
  • Moved client to a new folder client.

How has this been tested?

  • Updated the e2e tests to use new test data for the V2 RAC response.
  • Tested using the SDK from sample code

@vpai vpai requested review from ploomiz and petzel September 19, 2022 20:10
@vpai vpai force-pushed the varun/rac-v2-updates branch from 263eb06 to b43a832 Compare September 19, 2022 20:11
@vpai vpai merged commit 30c2e07 into main Sep 19, 2022
@vpai vpai deleted the varun/rac-v2-updates branch September 19, 2022 22:54
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