Enable new branches finder API by default

What does this MR do and why?

The new branches finder API has completed its staged rollout and is ready to be released as the default implementation.

This MR enables use_new_branches_finder_api by default while keeping the feature flag and legacy finder path in place for rollback support. The legacy path remains covered by specs that explicitly disable the flag.

Rollout and validation notes:

  • The feature has completed global rollout on dev, pre, staging, and staging-ref.
  • The feature flag remains available for targeted rollback.
  • Existing specs explicitly covering the disabled state remain unchanged.
  • No database, security, UI, or EE-only changes are included.

References

How to set up and validate locally

  1. Verify that the branches API uses Gitlab::Git::Finders::BranchesFinder when the flag is enabled.
  2. Verify that search and regex requests continue to use the legacy BranchesFinder path as expected.
  3. Verify that disabling the flag with /chatops gitlab run feature set use_new_branches_finder_api false restores the legacy behavior.
  4. Run the relevant branches API request specs.

Risk and rollback

This changes the default branches API finder from the legacy implementation to the Gitaly-backed implementation for user_project actors.

The feature flag and both code paths remain available. A runtime rollback is:

/chatops gitlab run feature set use_new_branches_finder_api false

Because this MR changes the YAML default, a complete rollback is to revert this MR.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vasilii Iakliushin

Merge request reports

Loading
Loading