Sameeran/ffl 420 holdouts #66
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ποΈ Fixes issue
π Design Doc: link if applicable
Motivation and Context
Description
holdoutKey
andholdoutVariation
inextraLogging
doLog: false
prevents assignment loggingeppoClient.getBooleanAssignment
does not need to be wrapped with a do-try-catchdoLog
is respected and prevents logging when set to falseentityId
support for parity with js/node SDKs (SetentityId
on flag evaluationΒ js-sdk-common#234)How has this been documented?
Eppo-exp/eppo-docs#691
Or alternatively we make the SDKs consistent with the holdout fields at the top-level of the event object, but the challenge there is that the nested
extraLogging
may already be in use in the SDKs where it was includedHow has this been tested?
Added tests in
AssignmentLoggerTests.swift
:testHoldoutLoggingWithEntityIdAndHoldoutInfo
: Verifies holdout logging with entityId and extraLoggingtestHoldoutLoggingWithoutEntityIdNorHoldoutInfo
: Verifies logging without entityId nor extraLoggingtestHoldoutLoggingWithDoLogFalse
: Verifies that doLog: false prevents assignment logging