Commit 55b4cc6f authored by Tiger Watson's avatar Tiger Watson

Merge branch 'sh-fix-npm-package-finder-all-projects' into 'master'

Use `Namespace#all_projects` for NPM package finder

See merge request gitlab-org/gitlab!56415
parents ba2971a6 9d0c4fb7
...@@ -35,8 +35,7 @@ module Packages ...@@ -35,8 +35,7 @@ module Packages
end end
def packages_for_namespace def packages_for_namespace
projects = ::Project.in_namespace(@namespace.self_and_descendants.select(:id)) ::Packages::Package.for_projects(@namespace.all_projects)
::Packages::Package.for_projects(projects.select(:id))
end end
end end
end end
......
---
title: Use `Namespace#all_projects` for NPM package finder
merge_request: 56415
author:
type: performance
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment