File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1959,6 +1959,8 @@ class FeatureToggleService {
1959
1959
) . variants ||
1960
1960
[ ] ;
1961
1961
1962
+ const tags = await this . tagStore . getAllTagsForFeature ( featureName ) ;
1963
+
1962
1964
await this . eventStore . store (
1963
1965
new EnvironmentVariantEvent ( {
1964
1966
featureName,
@@ -1967,6 +1969,7 @@ class FeatureToggleService {
1967
1969
createdBy : user ,
1968
1970
oldVariants : theOldVariants ,
1969
1971
newVariants : fixedVariants ,
1972
+ tags,
1970
1973
} ) ,
1971
1974
) ;
1972
1975
await this . featureEnvironmentStore . setVariantsToFeatureEnvironments (
@@ -2032,6 +2035,9 @@ class FeatureToggleService {
2032
2035
} ) ;
2033
2036
oldVariants [ env ] = featureEnv . variants || [ ] ;
2034
2037
}
2038
+
2039
+ const tags = await this . tagStore . getAllTagsForFeature ( featureName ) ;
2040
+
2035
2041
await this . eventStore . batchStore (
2036
2042
environments . map (
2037
2043
( environment ) =>
@@ -2042,6 +2048,7 @@ class FeatureToggleService {
2042
2048
createdBy : user ,
2043
2049
oldVariants : oldVariants [ environment ] ,
2044
2050
newVariants : fixedVariants ,
2051
+ tags,
2045
2052
} ) ,
2046
2053
) ,
2047
2054
) ;
Original file line number Diff line number Diff line change @@ -431,10 +431,11 @@ export class EnvironmentVariantEvent extends BaseEvent {
431
431
environment : string ;
432
432
project : string ;
433
433
createdBy : string | IUser ;
434
+ tags : ITag [ ] ;
434
435
newVariants : IVariant [ ] ;
435
436
oldVariants : IVariant [ ] ;
436
437
} ) {
437
- super ( FEATURE_ENVIRONMENT_VARIANTS_UPDATED , p . createdBy ) ;
438
+ super ( FEATURE_ENVIRONMENT_VARIANTS_UPDATED , p . createdBy , p . tags ) ;
438
439
this . featureName = p . featureName ;
439
440
this . environment = p . environment ;
440
441
this . project = p . project ;
You can’t perform that action at this time.
0 commit comments