このコミットが含まれているのは:
2026-10-28 00:28:29 +09:00
コミット d6cf992622
27個のファイルの変更、630行の追加、60行の削除
+15 -1
ファイルの表示
@@ -103,7 +103,21 @@ class CountsPopulation
conditions = QueryState.records(params, 'conditions')
raise ArgumentError unless conditions.is_a?(Array) && conditions.length <= 100
conditions.each { apply_condition(_1) }
values = QueryState.records(params, 'condition_values')
values.each do |entry|
index = entry.fetch('condition')
raise ArgumentError unless index.between?(0, conditions.length - 1)
raise ArgumentError unless conditions[index]['values'] == true
end
conditions.each_with_index do |entry, index|
if entry.key?('values')
raise ArgumentError unless entry['values'] == true
entry = entry.merge('values' => values.select { _1['condition'] == index }
.map { _1.fetch('value') })
end
apply_condition(entry)
end
drills = QueryState.records(params, 'drill')
raise ArgumentError unless drills.is_a?(Array) && drills.length <= 100