Skip to content

Resolve "Don't use recursive root_ancestor in linear mode"

What does this MR do?

The Namespaces::Traversal::Linear#root_ancestor calls super too early, thereby calling the recursive #root_ancestor version even when the use_traversal_ids_for_root_ancestor feature flag is enabled.

This MR follows the precedent set by other methods in the same module.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • 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

Related to #335157 (closed)

Edited by Alex Pooley

Merge request reports