[FF] use_new_branches_finder_api - Cleanup

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

This issue is to cleanup the use_new_branches_finder_api feature flag, after the feature flag has been enabled by default for an appropriate amount of time in production.

The flag was enabled by default in !247566 (merged). The feature will be productized as part of this cleanup: Gitlab::Git::Finders::BranchesFinder becomes the only code path and the legacy BranchesFinder fallback is removed.

Related:

Owners

  • Team: Create:Source Code
  • Most appropriate slack channel to reach out to: #g_create_source-code
  • Best individual to reach out to: @vyaklushin

Stakeholders

Expectations

What might happen if this goes wrong?

Branch listing and search via the Branches API and UI could return incorrect results, incorrect pagination headers (X-Total, X-Total-Pages), or empty pages. Rollback would require reverting the cleanup MR, since the flag no longer exists to disable the new code path.

Cleaning up the feature flag

  • Specify in the issue description if this feature will be removed completely or will be productized as part of the Feature Flag cleanup
  • Verify that external API consumers (for example, IDE extensions, Duo CLI, or CI integrations) that may query this feature flag have been updated or can gracefully handle its removal. See the external API consumer guidance for details on fail-open patterns and upgrade timing considerations.
  • Create a merge request to remove use_new_branches_finder_api feature flag. Ask for review and merge it.
    • Remove all references to the feature flag from the codebase.
    • Remove the YAML definitions for the feature from the repository.
    • Create a changelog entry.
  • Ensure that the cleanup MR has been deployed to both production and canary. If the merge request was deployed before the code cutoff, the feature can be officially announced in a release blog post.
    • /chatops gitlab run auto_deploy status <merge-commit-of-cleanup-mr>
  • Close the feature issue to indicate the feature will be released in the current milestone.
  • If not already done, clean up the feature flag from all environments by running these chatops command in #production channel: /chatops gitlab run feature delete use_new_branches_finder_api --dev --pre --staging --staging-ref --production
  • Close the rollout issue.
Edited by 🤖 GitLab Bot 🤖