Skip to content

Remove pre-filled search terms in MR revert modal

What does this MR do and why?

Without removing the currently selected branch, this MR removes the currently filtered branch on display, so that when a user clicks into the dropdown, the full list is available (which can then be filtered).

N.B.: This only changes the behavior on first load. This component still "pre-filters" once you pick an option from the list, which is definitely sub-par.

For #358218 (closed)

Screenshots or screen recordings

Before After
revert-mr-branch-filter-master revert-mr-branch-filter-fix

How to set up and validate locally

  1. Go to any closed MR that you have the permissions to revert
  2. The closed widget shows the "Revert" button
  3. Click it

MR acceptance checklist

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

Edited by Thomas Randolph

Merge request reports