Skip to content

Add "release" filter to merge request search

What does this MR do?

Adds a "release" filter to the merge request search interface as part of #32632 (closed). This filter allows merge requests to be filtered like release:v1.2, where 1.2 is the tag the release is based on.

This is the same change as !18761 (merged), but for merge requests instead of issues. This change turned out to be way smaller than I expected. 99% of the work for this feature was completed in !18761 (merged) 🎉

The list of releases shown after selecting the "release" filter (see the second screenshot below) is ordered by "released at" date.

In addition to a tag name, the user can select "All" or "None". This works identically to the current milestone filter:

  • All: Show all merge requests associated to at least one release
  • None: Show all merge requests not associated to at least one release

Feature flag

This feature is hidden behind a new feature flag: :release_search_filter. It is disabled by default.

Screenshots

See the screenshots in the description of !18761 (merged).

Edited by Nathan Friend

Merge request reports

Loading