mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
fix: also export context fields used for stickiness (#3106)
This commit is contained in:
parent
cc1f09952b
commit
8e38ebf1a7
@ -107,10 +107,12 @@ export default class ExportImportService {
|
|||||||
]);
|
]);
|
||||||
this.addSegmentsToStrategies(featureStrategies, strategySegments);
|
this.addSegmentsToStrategies(featureStrategies, strategySegments);
|
||||||
const filteredContextFields = contextFields.filter((field) =>
|
const filteredContextFields = contextFields.filter((field) =>
|
||||||
featureStrategies.some((strategy) =>
|
featureStrategies.some(
|
||||||
strategy.constraints.some(
|
(strategy) =>
|
||||||
(constraint) => constraint.contextName === field.name,
|
strategy.parameters.stickiness === field.name ||
|
||||||
),
|
strategy.constraints.some(
|
||||||
|
(constraint) => constraint.contextName === field.name,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
const filteredSegments = segments.filter((segment) =>
|
const filteredSegments = segments.filter((segment) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user