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

Identity overrides in local evaluation mode #89

Closed khvn26 closed 3 months ago

khvn26 commented 5 months ago
  1. Extend the Environment model with the identity_overrides: List[IdentityModel] field.
  2. On environment update in local evaluation mode, store overrides so they're efficiently accessed by identifier.
  3. For GetIdentityFlagsFromDocument interface, use the storage above to retrieve the identity overrides. Fall back to a new IdentityModel instance if not found. If found, update traits with user-provided traits.

Refer to the following existing implementations:

https://github.com/Flagsmith/flagsmith-python-client/pull/72 https://github.com/Flagsmith/flagsmith-java-client/pull/142 https://github.com/Flagsmith/flagsmith-nodejs-client/pull/143