Skip to content

Commit dabfd42

Browse files
committed
fix script to configure feature flags that cannot enable flags
When generating the list of flags that would actually be enabled, the value specified in the option was ANDed with the list of flags that actually existed. At this time, I mistakenly performed a logical AND with the list of "values ​​to invalidate" specified in the option. This mistake caused a problem in which some flags could not be enabled. This commit fixes this to AND with the list of values ​​you want to enable.
1 parent e172ff5 commit dabfd42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/runtime/scripts/configure_feature_flags.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run
6464
if succeed
6565
available_flags = self.available_feature_flags
6666
disable_targets = available_flags & opts[:to_be_disabled]
67-
enable_targets = available_flags & opts[:to_be_disabled]
67+
enable_targets = available_flags & opts[:to_be_enabled]
6868

6969
disable_targets.each do |feature|
7070
Feature.disable(feature)

0 commit comments

Comments
 (0)