the date of the last deployment of an environment is not correct when the job was started manually several days after its pipeline
Summary
Hello guys,
I noticed that in the environment page, the date of the last job that deployed is the start date of the job, not the end date. So when in a pipeline we have manual jobs, which are not started on the same day, then we have a time lag.
For example, if I launch a pipeline on 01/06/19 and launch the deployment job manually on 03/06/19, then the last deployment date displayed in the environment page will be 01/06/19 instead of 03/06/19.
I don't know if it's a bug, or if it's an evolution, but in any case it seems to me that using the job end date would be more appropriate because of the famous manual jobs.
Steps to reproduce
- create a pipeline with manual deployment jobs.
- start the pipeline today
- run manual jobs by tomorow
What is the current bug behavior?
wrong latest deployment job date (seems to be start date)
What is the expected correct behavior?
use deployment jobs end date because of manual jobs
Results of GitLab environment info
i am using self hosted Gitlab Community Edition 11.11.3