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
- Rollout issue: #594929 (closed)
- Feature issue: #578546 (closed)
- Epic: &11057
How to set up and validate locally
- Verify that the branches API uses
Gitlab::Git::Finders::BranchesFinderwhen the flag is enabled. - Verify that search and regex requests continue to use the legacy
BranchesFinderpath as expected. - Verify that disabling the flag with
/chatops gitlab run feature set use_new_branches_finder_api falserestores the legacy behavior. - 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 falseBecause 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.