Skip to content

Commit

Permalink
chore: use pact_version_sha instead of pact_version_id in index item …
Browse files Browse the repository at this point in the history
…- revert to it's previous logic
  • Loading branch information
bethesque committed May 26, 2018
1 parent 13b7c6e commit c94a992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pact_broker/domain/index_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def latest_verification_successful?
end

def pact_changed_since_last_verification?
latest_verification.pact_version_id != latest_pact.pact_version_id
latest_verification.pact_version_sha != latest_pact.pact_version_sha
end

def latest_verification_provider_version_number
Expand Down
2 changes: 1 addition & 1 deletion lib/pact_broker/index/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def self.find_index_items options = {}
rows = rows.all.group_by(&:pact_publication_id).values.collect{ | rows| Matrix::AggregatedRow.new(rows) }

rows.sort.collect do | row |
# TODO simplify
# TODO simplify. Do we really need 3 layers of abstraction?
PactBroker::Domain::IndexItem.create(
row.consumer,
row.provider,
Expand Down

0 comments on commit c94a992

Please sign in to comment.