Skip to content

Use Namespace#all_projects in Project scope

What does this MR do?

This scope is esentially the same as Namespace#all_projects so we can use that method here.

That method has some optimizations like skipping the CTE if a user namespace is passed in. It also has a workaround for the PG planner bug described in https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/12791#note_527286190.

Also see !56078 (merged)

Related to #324220 (closed)

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Heinrich Lee Yu

Merge request reports

Loading