Flagsmith / flagsmith-dotnet-client

.NET Standard Client for Flagsmith. Ship features with confidence using feature flags and remote config. Host yourself or use our hosted version at https://www.flagsmith.com/
https://www.flagsmith.com/
BSD 3-Clause "New" or "Revised" License
19 stars 12 forks source link

MV evaluation is not consistent with API in local evaluation mode #64

Closed matthewelwell closed 1 year ago

matthewelwell commented 1 year ago

It appears (based on a report from a client) that the multivariate values are not consistent between the Flagsmith API and local evaluation, even once the use_mv_v2_evaluation attribute is set correctly against the environment.

matthewelwell commented 1 year ago

Having done some research into the code, I believe this is likely caused by the fact that, when we evaluate flags for an identity in local evaluation mode, we are not passing the environment key to the constructor. See the code here.