[go: up one dir, main page]

Skip to content

Return certain branches by default in the initial RefSelector list - such as the default branch and protected branches

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

Proposal

A customer upgraded from 14.8 to 15.8 and noticed differences in behaviour (internal link) using the 'select Git revision' feature in project repositories.

I understand this uses RefSelector, and that this feature has been enhanced to support more use cases (example) and various features have been migrated to it (example: pipelines)

When selecting a branch from the default list, it's likely that certain branches are more likely to be selected than others. The default branch and protected branches, for example. Would it be possible to have these populated in the initial list returned?

The ticket I've linked above contains some feedback from folks using GitLab about the apparent random nature of branches in the list, vs. either previous behaviour of the product or their expectations that it would return a more logical selection of refs.

I'm wondering if we could seed that initial list differently, possibly much more cheaply, and improve UX at the same time:

  • Classes of branch, such as the ones I've suggested (protected branches, default branch)
    • These might be cached in Redis already to support other internal functionality?
  • Populate the list on a per-user basis that makes a lot more sense for them personally.
    • Do user profiles have any branch data that the product could use to derive this list?
Edited by 🤖 GitLab Bot 🤖