Environment Search not returning all matches
Summary
Currently when searching for environments it is not returning all matches.
According to the documentation results Matching applies from the beginning of the environment name
. However under specific conditions it does not return all the results.
Steps to reproduce
Create the below environments:
dev/static-files-1
dev/static-files-2
stg/static-files-1
stg/static-files-2
uat/static-files-1
uat/static-files-2
Search for static
and notice that none of the matches from the stg
folder are returned.
Example Project
Replicated on GitLab.com
in this test Project
What is the current bug behavior?
The results do not contain all the expected matches.
What is the expected correct behavior?
Return all expected results.
Relevant logs and/or screenshots
static
should match in the stg
folder
However it doesn't when searching
Output of checks
This bug happens on GitLab.com