1
0
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:
Jaanus Sellin 2023-02-15 09:44:59 +02:00 committed by GitHub
parent cc1f09952b
commit 8e38ebf1a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) =>