mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: include strategy variants in the event log (#4716)
This commit is contained in:
parent
f68b0ad001
commit
c2b068e28f
@ -409,6 +409,7 @@ class FeatureToggleService {
|
||||
disabled: featureStrategy.disabled,
|
||||
constraints: featureStrategy.constraints || [],
|
||||
parameters: featureStrategy.parameters,
|
||||
variants: featureStrategy.variants || [],
|
||||
sortOrder: featureStrategy.sortOrder,
|
||||
segments: segments.map((segment) => segment.id) ?? [],
|
||||
};
|
||||
@ -1285,6 +1286,7 @@ class FeatureToggleService {
|
||||
name: strategy.strategyName,
|
||||
constraints: strategy.constraints || [],
|
||||
parameters: strategy.parameters,
|
||||
variants: strategy.variants || [],
|
||||
segments: [],
|
||||
title: strategy.title,
|
||||
disabled: strategy.disabled,
|
||||
|
@ -145,6 +145,7 @@ test('Should be able to get strategy by id', async () => {
|
||||
const config: Omit<FeatureStrategySchema, 'id'> = {
|
||||
name: 'default',
|
||||
constraints: [],
|
||||
variants: [],
|
||||
parameters: {},
|
||||
title: 'some-title',
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user