Skip to content

Commit 305a2b6

Browse files
committed
Allow other parameters than wildcard in groups matching with wildcard
When one wildcard is provided, other parameters may still be constants with this setup. This allows to further constrain which groups will be created. Co-author: @erikap
1 parent 41234d8 commit 305a2b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/mu_search/index_manager.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ def ensure_index_combination_for_groups(type_name, allowed_groups, used_groups =
248248
eager_index_group = eager_index_groups.first
249249
eager_index_group["name"] == allowed_group["name"] \
250250
and eager_index_group["variables"].length == allowed_group["variables"].length \
251-
and eager_index_group["variables"].all? { |variable| variable == "*" }
251+
and eager_index_group["variables"].zip(allowed_group["variables"]).all? do |eager_var, allowed_var|
252+
eager_var == "*" || eager_var == allowed_var
253+
end
252254
end
253255
end
254256

0 commit comments

Comments
 (0)