Skip to content

Merge Request reference is wrong in /search

Summary

Merge Request reference notation (e.g., !1 (merged)) is wrong in /search. This is a regression from !46944 (merged) (%13.6).

Steps to reproduce

See https://gitlab.com/search?search=container&group_id=9970&project_id=278964&scope=merge_requests

Example Project

https://gitlab.com/search?search=container&group_id=9970&project_id=278964&scope=merge_requests

What is the current bug behavior?

!1 (merged) is referenced as gitlab-org/gitlab#1 on search results.

search-before

What is the expected correct behavior?

!1 (merged) should be referenced as gitlab-org/gitlab!1 on search results.

search-after

Relevant logs and/or screenshots

Output of checks

This bug happens on GitLab.com (14.0-pre).

Possible fixes

Fix it!

Edited by Takuya Noguchi