diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-23 21:11:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-23 21:11:07 +0300 |
commit | 5e9fe672fa0eda6322bd392e8502d1886804bd07 (patch) | |
tree | e2dbccd4f9b92ead855d87ff4fcffaff4fe9fb72 /app/models/packages | |
parent | a7f478c9b1806a67ec9d991c3f54c242bb596f60 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/packages')
-rw-r--r-- | app/models/packages/package.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/packages/package.rb b/app/models/packages/package.rb index 4ea127fc222..dcc3970c49f 100644 --- a/app/models/packages/package.rb +++ b/app/models/packages/package.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true class Packages::Package < ApplicationRecord + include EachBatch include Sortable include Gitlab::SQL::Pattern include UsageStatistics @@ -104,6 +105,7 @@ class Packages::Package < ApplicationRecord scope :including_build_info, -> { includes(pipelines: :user) } scope :including_project_route, -> { includes(project: { namespace: :route }) } scope :including_tags, -> { includes(:tags) } + scope :including_dependency_links, -> { includes(dependency_links: :dependency) } scope :with_conan_channel, ->(package_channel) do joins(:conan_metadatum).where(packages_conan_metadata: { package_channel: package_channel }) |