1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

feat: flag for clone dependencies (#4922)

This commit is contained in:
Mateusz Kwasniewski 2023-10-04 13:29:36 +02:00 committed by GitHub
parent 257414424d
commit bc650ffe3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1260,17 +1260,22 @@ class FeatureToggleService {
}), }),
); );
const cloneDependencies = if (this.flagResolver.isEnabled('dependentFeatures')) {
this.dependentFeaturesService.cloneDependencies( const cloneDependencies =
{ featureName, newFeatureName, projectId }, this.dependentFeaturesService.cloneDependencies(
userName, { featureName, newFeatureName, projectId },
); userName,
);
await Promise.all([
...strategyTasks,
...variantTasks,
cloneDependencies,
]);
} else {
await Promise.all([...strategyTasks, ...variantTasks]);
}
await Promise.all([
...strategyTasks,
...variantTasks,
cloneDependencies,
]);
return created; return created;
} }