Sha256: c1ebd91a4e7fadfda1290ba2759c7790bb4d4c1249d1ac2c56094a9825a540ab

Contents?: true

Size: 568 Bytes

Versions: 50

Compression:

Stored size: 568 Bytes

Contents

def head_pact_tags_v1(connection)
  connection.from(Sequel.as(:latest_pact_publication_ids_for_consumer_versions, :lp))
  .join(:versions,{ Sequel[:lp][:consumer_version_id] => Sequel[:cv][:id]}, { table_alias: :cv })
  .join(:latest_tagged_pact_consumer_version_orders, {
    Sequel[:lp][:consumer_id] => Sequel[:o][:consumer_id],
    Sequel[:lp][:provider_id] => Sequel[:o][:provider_id],
    Sequel[:cv][:order] => Sequel[:o][:latest_consumer_version_order]
  }, { table_alias: :o})
  .select(Sequel[:o][:tag_name].as(:name), Sequel[:lp][:pact_publication_id])
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
pact_broker-2.76.2 db/ddl_statements/head_pact_tags.rb
pact_broker-2.76.1 db/ddl_statements/head_pact_tags.rb
pact_broker-2.76.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.75.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.74.1 db/ddl_statements/head_pact_tags.rb
pact_broker-2.74.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.73.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.72.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.71.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.70.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.69.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.68.1 db/ddl_statements/head_pact_tags.rb
pact_broker-2.68.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.67.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.66.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.65.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.64.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.63.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.62.0 db/ddl_statements/head_pact_tags.rb
pact_broker-2.61.0 db/ddl_statements/head_pact_tags.rb