Skip to content

Add default branch to Pipelines page filter if no search term provided

What does this MR do and why?

This MR changes the "branch name" filter on the Pipelines page so that if no search term has been provided, it will add the default branch name as the first option.

Without this change, one must search for the default branch name using autocompletion until it appears in the list. Filtering the pipelines list on the default branch name is a common use case, so this should improve the UX a bit.

Screenshots or screen recordings

Before After
Screen_Shot_2022-03-04_at_22.05.59 Screen_Shot_2022-03-04_at_22.13.49

How to set up and validate locally

  1. Visit http://localhost:3000/flightjs/Flight/-/pipelines
  2. Use the "Filter pipelines" feature and select "Branch name"
  3. Without entering a search term, confirm that the main branch name "master" appears at the top of the results
  4. Enter "a" as your search term and confirm that the main branch name disappears from the top of the results
  5. Enter "mast" as your search term and confirm that "master" does not appear twice in the results

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #354473 (closed)

Merge request reports