Skip to content

Commit

Permalink
feat(index): eager load latest verification for consumer and provider
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 30, 2018
1 parent 5692565 commit 1bf61af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pact_broker/index/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def self.find_index_items options = {}
rows = rows.eager(:consumer_version_tags)
.eager(:provider_version_tags)
.eager(:latest_verification_for_consumer_version_tag)
.eager(:latest_verification_for_consumer_and_provider)
end
rows = rows.all.group_by(&:pact_publication_id).values.collect{ | rows| Matrix::AggregatedRow.new(rows) }

Expand Down

0 comments on commit 1bf61af

Please sign in to comment.