summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7435f58)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
resolved_runtime_constraints.delete('cuda')
].uniq
end
resolved_runtime_constraints.delete('cuda')
].uniq
end
- reusable_runtime_constraints = hash_product(runtime_constraint_variations)
+ reusable_runtime_constraints = hash_product(**runtime_constraint_variations)
.map { |v| resolved_runtime_constraints.merge(v) }
candidates = candidates.where_serialized(:runtime_constraints, reusable_runtime_constraints, md5: true, multivalue: true)
.map { |v| resolved_runtime_constraints.merge(v) }
candidates = candidates.where_serialized(:runtime_constraints, reusable_runtime_constraints, md5: true, multivalue: true)
end
[:get, :post, :put, :patch, :delete].each do |method|
end
[:get, :post, :put, :patch, :delete].each do |method|
- define_method method do |action, *args|
+ define_method method do |action, **args|
check_counter action
# After Rails 5.0 upgrade, some params don't get properly serialized.
# One case are filters: [['attr', 'op', 'val']] become [['attr'], ['op'], ['val']]
# if not passed upstream as a JSON string.
check_counter action
# After Rails 5.0 upgrade, some params don't get properly serialized.
# One case are filters: [['attr', 'op', 'val']] become [['attr'], ['op'], ['val']]
# if not passed upstream as a JSON string.
- if args[0].is_a?(Hash) && args[0][:params].is_a?(Hash)
- args[0][:params].each do |key, _|
+ if args[:params].is_a?(Hash)
+ args[:params].each do |key, _|
next if key == :exclude_script_versions # Job Reuse tests
# Keys could be: :filters, :where, etc
next if key == :exclude_script_versions # Job Reuse tests
# Keys could be: :filters, :where, etc
- if [Array, Hash].include?(args[0][:params][key].class)
- args[0][:params][key] = SafeJSON.dump(args[0][:params][key])
+ if [Array, Hash].include?(args[:params][key].class)
+ args[:params][key] = SafeJSON.dump(args[:params][key])