lib/pact_broker/ui/controllers/matrix.rb in pact_broker-2.50.1 vs lib/pact_broker/ui/controllers/matrix.rb in pact_broker-2.51.0
- old
+ new
@@ -1,7 +1,8 @@
require 'pact_broker/ui/controllers/base_controller'
require 'pact_broker/ui/view_models/matrix_lines'
+require 'pact_broker/matrix/unresolved_selector'
require 'pact_broker/matrix/parse_query'
require 'pact_broker/logging'
require 'haml'
module PactBroker
@@ -39,10 +40,10 @@
end
haml :'matrix/show', {locals: locals, layout: :'layouts/main'}
end
get "/provider/:provider_name/consumer/:consumer_name" do
- selectors = [{ pacticipant_name: params[:consumer_name] }, { pacticipant_name: params[:provider_name] } ]
+ selectors = [ PactBroker::Matrix::UnresolvedSelector.new(pacticipant_name: params[:consumer_name]), PactBroker::Matrix::UnresolvedSelector.new(pacticipant_name: params[:provider_name]) ]
options = {latestby: 'cvpv', limit: 100}
lines = matrix_service.find(selectors, options)
lines = PactBroker::UI::ViewDomain::MatrixLines.new(lines)
locals = {
lines: lines,