Sha256: 65000b310dcbbf881c6a107a099871174002f1d900d24863eff937bad8e80f68
Contents?: true
Size: 1.48 KB
Versions: 6
Compression:
Stored size: 1.48 KB
Contents
require "pact_broker/domain/verification" # TODO delete this when AllPactPublications is deleted module PactBroker module Verifications class LatestVerificationForPactVersion < PactBroker::Domain::Verification set_dataset(:latest_verifications_for_pact_versions) # this view doesn't have a consumer_id def consumer PactBroker::Domain::Pacticipant.find(id: PactBroker::Pacts::AllPactPublications .where(pact_version_id: pact_version_id) .limit(1).select(:consumer_id)) end # this view doesn't have a provider_id def provider PactBroker::Domain::Pacticipant.find(id: PactBroker::Pacts::AllPactPublications .where(pact_version_id: pact_version_id) .limit(1).select(:provider_id)) end end end end # Table: latest_verifications_for_pact_versions # Columns: # id | integer | # number | integer | # success | boolean | # build_url | text | # pact_version_id | integer | # execution_date | timestamp without time zone | # created_at | timestamp without time zone | # provider_version_id | integer | # provider_version_number | text | # provider_version_order | integer | # test_results | text |
Version data entries
6 entries across 6 versions & 1 rubygems