Broken search results for long project/group name
What does this MR do and why?
Fix missing links
Screenshots or screen recordings
Long project name (what is currently broken):
before | after |
---|---|
Short project name (is staying the same):
before | after |
---|---|
How to set up and validate locally
- Make sure you have advanced search enabled.
- Create a new empty project:
http://127.0.0.1:3000/projects/new#blank_project
- Give it a comically long name:
this is a super long test project name that is running forever and will hug the whole line in the search results and breaks everything
- In this new project create a new issue. It can be empty but it's more realistic if there is some description. I used
https://www.lipsum.com/feed/html
- In this new issue create a new comment. It should contain the word
YOUR_SEARCHED_TERM
that you want to search for. - Visit any group or project member pages such as
https://gdk:3000/search?scope=notes&search=YOUR_SEARCHED_TERM
- You should see, in the search results, a link that will take you to the comment itself.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #387034
Edited by Tomas Bulva