Sha256: 61b3e7264c1d2efefb0b1a3af0c41930fb9f500f0713969b4fe2fc0275a9caa5

Contents?: true

Size: 1.6 KB

Versions: 39

Compression:

Stored size: 1.6 KB

Contents

require "pact_broker/domain/verification"

module PactBroker
  module Verifications

    include PactBroker::Repositories::Helpers

    class LatestVerificationForConsumerAndProvider < PactBroker::Domain::Verification
      set_dataset(:latest_verifications_for_consumer_and_provider)

      # Don't need to load the pact_version as we do in the superclass,
      # as pact_version_sha is included in the view for convenience
      def pact_version_sha
        values[:pact_version_sha]
      end

      def provider_version_number
        values[:provider_version_number]
      end

      def provider_version_order
        values[:provider_version_order]
      end
    end
  end
end

# Table: latest_verifications_for_consumer_and_provider
# Columns:
#  consumer_id             | integer                     |
#  provider_id             | integer                     |
#  pact_version_sha        | text                        |
#  provider_version_number | text                        |
#  provider_version_order  | integer                     |
#  id                      | integer                     |
#  number                  | integer                     |
#  success                 | boolean                     |
#  provider_version        | text                        |
#  build_url               | text                        |
#  pact_version_id         | integer                     |
#  execution_date          | timestamp without time zone |
#  created_at              | timestamp without time zone |
#  provider_version_id     | integer                     |
#  test_results            | text                        |

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
pact_broker-2.107.1 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.107.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.107.0.beta.1 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.106.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.105.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.104.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.103.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.102.2 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.102.1 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.102.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.101.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.100.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.99.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.98.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.97.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.96.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.95.1 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.95.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.94.0 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb
pact_broker-2.93.4 lib/pact_broker/verifications/latest_verification_for_consumer_and_provider.rb