Grouped similar environments loose environment with base name

Summary

In a grouped similar environments folder an environment with only the base name is lost

Steps to reproduce

  • Create a staging environment
  • run few jobs for the staging environment
  • verify that in the "CI/CD -> Environments" view of your project the staging environment is available
  • Create a staging/foo environment
  • run few jobs for the staging/foo environment
  • verify that in the "CI/CD -> Environments" view of your project the staging environment is not available under the grouped environments folder

What is the current bug behavior?

The environment named like the base environment (in my case staging) disappears together with its history from the list of grouped environments.

What is the expected correct behavior?

The environment named like the base environment (in my case staging) should be listed together with the other (in my case staging/foo) in the list of grouped environments.

Relevant logs and/or screenshots

Screen_Shot_2018-01-03_at_8.04.11_PM

Output of checks

This bug happens on GitLab.com