mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
4adc977ba0
Variants were not being properly handled in the `flag-resolver`: The
fact that the default value of the variant is not falsy made it so we
never asked the external flag resolver for the value.
This also moves the logic from `Variant | undefined` to `Variant` where
we use the `getDefaultVariant()` helper method to return us a [default
variant](
|
||
---|---|---|
.. | ||
feature-evaluator | ||
validators | ||
anonymise.test.ts | ||
anonymise.ts | ||
anyEventEmitter.test.ts | ||
anyEventEmitter.ts | ||
arraysHaveSameItems.test.ts | ||
arraysHaveSameItems.ts | ||
collapseHourlyMetrics.test.ts | ||
collapseHourlyMetrics.ts | ||
collect-ids.ts | ||
constants.ts | ||
constantTimeCompare.test.ts | ||
constantTimeCompare.ts | ||
db-lock.test.ts | ||
db-lock.ts | ||
ensureStringValue.test.ts | ||
ensureStringValue.ts | ||
escape-regex.ts | ||
extract-user.ts | ||
findPublicFolder.ts | ||
flag-resolver.test.ts | ||
flag-resolver.ts | ||
format-base-uri.test.ts | ||
format-base-uri.ts | ||
generateImageUrl.ts | ||
get-prop-from-string.ts | ||
graceful-shutdown.ts | ||
index.ts | ||
is-email.test.ts | ||
is-email.ts | ||
isDefined.test.ts | ||
isDefined.ts | ||
isEmpty.ts | ||
load-index-html.ts | ||
map-values.test.ts | ||
map-values.ts | ||
metrics-helper.ts | ||
offline-unleash-client.test.ts | ||
offline-unleash-client.ts | ||
omit-keys.test.ts | ||
omit-keys.ts | ||
parseEnvVar.test.ts | ||
parseEnvVar.ts | ||
random-id.ts | ||
rewriteHTML.test.ts | ||
rewriteHTML.ts | ||
segments.ts | ||
semver.test.ts | ||
semver.ts | ||
snakeCase.test.ts | ||
snakeCase.ts | ||
time-utils.test.ts | ||
time-utils.ts | ||
timer.test.ts | ||
timer.ts | ||
unique.test.ts | ||
unique.ts | ||
validateJsonString.test.ts | ||
validateJsonString.ts | ||
validateOrigin.test.ts | ||
validateOrigin.ts | ||
version.ts |