Environment search doesn't work as expected if directory name and beginning of the environment name is the same
Summary
When the directory name is the same as the first part of the environment name, it seems like it is only searching for the directory name.
Steps to reproduce
- Create 2 environments with the following names:
aaa/aaa-1234-lalala
andbbb/aaa-1234-lalala
- Search for
aaa-
oraaa-1234-lalala
- Results return only
bbb/aaa-1234-lalala
environment
Example Project
https://gitlab.com/anagayama_ultimate_group/zd469825/-/environments?page=1&scope=active&search=
What is the current bug behavior?
The environment name search doesn't work as expected.
What is the expected correct behavior?
The environment name search should return the correct results.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
There is no fix at the moment.