Sha256: 09faed91178fd23aae26c8e1fa2fd827656de6d7736e672724381767c7bda185

Contents?: true

Size: 940 Bytes

Versions: 72

Compression:

Stored size: 940 Bytes

Contents

module Katello
  class AnsibleCollection < Katello::Model
    include Concerns::PulpDatabaseUnit

    self.table_name = 'katello_ansible_collections'
    CONTENT_TYPE = 'ansible_collection'.freeze

    has_many :ansible_collection_tags, :class_name => "Katello::AnsibleCollectionTag", :dependent => :delete_all
    has_many :tags, :through => :ansible_collection_tags

    scoped_search :on => :name, :complete_value => true
    scoped_search :on => :namespace, :complete_value => true, :rename => :author
    scoped_search :on => :version, :complete_value => true
    scoped_search :on => :checksum, :complete_value => true
    scoped_search :on => :name, :complete_value => true, :relation => :tags, :rename => :tag

    def self.default_sort
      order(:name)
    end

    def self.unit_id_field
      'ansible_collection_id'
    end

    def self.total_for_repositories(repos)
      self.in_repositories(repos).count
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
katello-4.14.2 app/models/katello/ansible_collection.rb
katello-4.15.0 app/models/katello/ansible_collection.rb
katello-4.15.0.rc2 app/models/katello/ansible_collection.rb
katello-4.15.0.rc1 app/models/katello/ansible_collection.rb
katello-4.14.1 app/models/katello/ansible_collection.rb
katello-4.14.0 app/models/katello/ansible_collection.rb
katello-4.14.0.rc3 app/models/katello/ansible_collection.rb
katello-4.14.0.rc2 app/models/katello/ansible_collection.rb
katello-4.14.0.rc1.1 app/models/katello/ansible_collection.rb
katello-4.14.0.rc1 app/models/katello/ansible_collection.rb
katello-4.13.1 app/models/katello/ansible_collection.rb
katello-4.13.0 app/models/katello/ansible_collection.rb
katello-4.12.1 app/models/katello/ansible_collection.rb
katello-4.13.0.rc1 app/models/katello/ansible_collection.rb
katello-4.12.0 app/models/katello/ansible_collection.rb
katello-4.12.0.rc3 app/models/katello/ansible_collection.rb
katello-4.12.0.rc2 app/models/katello/ansible_collection.rb
katello-4.12.0.rc1 app/models/katello/ansible_collection.rb
katello-4.11.1 app/models/katello/ansible_collection.rb
katello-4.11.0 app/models/katello/ansible_collection.rb