Grouping of stopped environments does not work (Operations > Environments)
Summary
By navigating to GitLab / Operations / Environments it is possible to to see the available (deployed) environments. GitLab allows grouping of environments by using the '/' character in the environment name.
group1/environment1, group1/environment2, group2/environment1, group2/environment2
will be listed as
group 1
- environment1
- environment2
group 2
- environment1
- environment2
and can be folded/unfolded.
This works fine in the "Available" tab, but once environments are stopped and listed in the "Stopped" tab, the grouping does not work.
Bug 1: When switching to the "Stopped" tab the environments are listed without grouping, but the group prefix is removed
group1/environment1, group2/environment1 are listed as
- environment1
- environment1
Bug 2: When reloading the page after Bug 1, grouping is visible but cannot be unfolded. So the two environments are shown as
- > group1
- > group2
Steps to reproduce
- Apply provided example .gitlab-ci.yml below
- Go to Operations > Environments
- Have a look at the four available Environments being grouped/folded/unfolded correctly
- Stop all environments
- Go to "Stopped" tab
- Observe how the four stopped environments are not grouped at all in the Stopped tab
- Reload page
- Groups are now visible, but cannot be unfolded
Example
stages:
- test-stage
group1-environment1-job:
stage: test-stage
environment:
name: group1/environment1
script:
- echo "Group 1 Environment 1"
group1-environment2-job:
stage: test-stage
environment:
name: group1/environment2
script:
- echo "Group 1 Environment 2"
group2-environment1-job:
stage: test-stage
environment:
name: group2/environment1
script:
- echo "Group 2 Environment 1"
group2-environment2-job:
stage: test-stage
environment:
name: group2/environment2
script:
- echo "Group 2 Environment 2"
What is the current bug behavior?
Grouping and folding/unfolding of environments does not work in Stopped tab of Environments view.
What is the expected correct behavior?
Grouping and folding/unfolding of environments in Stopped tab works like in Available tab of Environments view.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com


