Empty environment rows are making view unusable
Problem to solve
Empty environment rows with no real value make view unusable
Target audience
Further details
Our gitlab-ci.yml has two jobs:
lde-sandbox-deploy:
# ...
only:
refs:
- branches
kubernetes: active
environment:
name: r/$CI_COMMIT_REF_NAME
url: https://$CI_ENVIRONMENT_SLUG.$REVIEWAPPS_DOMAIN/
on_stop: lde-sandbox-delete
# ...
lde-proddb-deploy:
# ...
when: manual
only:
refs:
- branches
kubernetes: active
environment:
name: r/$CI_COMMIT_REF_NAME-proddb
url: https://$CI_ENVIRONMENT_SLUG.$PRODUCTION_DOMAIN/
on_stop: lde-proddb-delete
# ...
After last run, two environments show up:
lde-proddb-deploy
job never run because it's when: manual
. Yet, the environment specified inside that job is created, and is empty.
First, that environment was never deployed so it should not exist.
Second, that environment cannot be easily deleted which is a PITA. https://gitlab.com/gitlab-org/gitlab-ce/issues/25388
Solution
The environment list is severely limited in its display/sorting capabilities. Currently, the list is sorted alphabetically which isn't really serving anyone.
- Let's sort on last updated to automatically fix the problem of this issue
- Protected and grouped environments will continue to show up on top
What does success look like, and how can we measure that?
Links / references
Edited by Jason Yavorska