When grouping similar environments, environments aren't shown if they share the name of the "root" environment
Summary
When grouping similar environments, environments aren't shown if they share the name of the "root" environment. I'm unable to determine whether this is a gitlab-ce~3630472.
Steps to reproduce
- Create an environment
foo
- Create another environment
foo/bar
- The environment
foo
is inaccessible through the UI
Example Project
https://gitlab.com/deandre-test-group/environment-test/environments
What is the current bug behavior?
The root environment can't be accessed via UI
What is the expected correct behavior?
The root environment should be accessible.
Display a "block" for the root environment in the Environments page. This block should be displayed on top of the the child, scoped environments, inside the accordion view.
Example:
- review v
- review environment data
- review/123 environment data
- review/456 environment data
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Workaround
Environments remain accessible from https://gitlab.com/<namespace>/<project>/environments/:environment_id
. Get environment_id
from the API: GET /projects/:id/environments
ZD: https://gitlab.zendesk.com/agent/tickets/121437 (internal)