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.
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:
-dto
and grouped them in adto
folder.client
.How has this been tested?