1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-24 20:06:55 +01:00
unleash.unleash/src/lib
Thomas Heartman 89a3578826
fix: allow external flag resolver to override false experiments with variants in getAll (#10966)
Fixes a bug / uncovered edge case in the flag resolver in Unleash:
If a local experiment was defined as false (the typical default value),
then that flag could only ever be returned as a boolean from the
`ui-config` endpoint. In other words, even if the external resolver has
a variant for that flag, the UI would never get the variant.

The fix is to not just check `isEnabled` for false flags, but instead:
- use `getVariant`
- then check `variant.enabled` (in which case we have a variant and can
return it)
- else check `variant.feature_enabled`, falling back to `isEnabled` only
if `feature_enabled` is null/undefined.
2025-11-12 12:00:27 +01:00
..
__snapshots__ feat: ability to disable custom strategies (#10885) 2025-11-03 09:27:15 +01:00
addons fix: remove console log from tests (#10292) 2025-07-03 10:07:53 +03:00
db chore: increase performance of application upsert (#10870) 2025-10-27 16:11:18 +02:00
domain/project-health feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
error chore: remove uuid from the backend (#10807) 2025-10-15 16:48:08 +02:00
events feat: unified milestone progression changed event (#10836) 2025-10-21 13:21:57 +02:00
features chore: move delta diffing to a different feature flag (#10962) 2025-11-11 10:55:37 +00:00
interfaces feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
middleware chore(AI): originMiddlewareRequestLogging flag cleanup (#10864) 2025-10-28 18:42:10 +01:00
openapi docs: updates for 7.3 (#10913) 2025-11-06 10:56:15 +01:00
routes docs: updates for 7.3 (#10913) 2025-11-06 10:56:15 +01:00
schema feat: incorporate backend as a valid api token type replacing client (#10500) 2025-08-21 09:43:54 -03:00
services fix: enterprise edge stats should take into account full month (#10898) 2025-11-03 13:45:38 +00:00
tags feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
types chore: configure the 'maintenanceMode' flag to accept variants (#10956) 2025-11-11 12:52:49 +01:00
ui-config chore: configure the 'maintenanceMode' flag to accept variants (#10956) 2025-11-11 12:52:49 +01:00
users feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
util fix: allow external flag resolver to override false experiments with variants in getAll (#10966) 2025-11-12 12:00:27 +01:00
app.test.ts task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
app.ts feat: support different etags per environment (#10512) 2025-08-22 10:35:17 -03:00
create-config.test.ts feat: incorporate backend as a valid api token type replacing client (#10500) 2025-08-21 09:43:54 -03:00
create-config.ts feat: ability to disable custom strategies (#10885) 2025-11-03 09:27:15 +01:00
default-custom-auth-deny-all.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
internals.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
logger.test.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
logger.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
metric-events.ts fix: add a metric to track client registrations (#9314) 2025-02-17 09:01:19 +01:00
metrics-gauge.test.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
metrics-gauge.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
metrics.test.ts chore: add edge instances to instance stats (#10839) 2025-10-22 16:40:43 +01:00
metrics.ts fix: get users total right at startup (#10750) 2025-10-07 14:22:33 +02:00
server-impl.test.ts task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
server-impl.ts chore: remove release plans from getFeature endpoint (#10955) 2025-11-10 15:06:21 +02:00