Add copy commit SHA to the Environment page
Background & Problem
I would like to quickly identify code changes deployed in a given time period.
Sometimes we discover a problem in production, and upon further investigation we can determine a date/time of first observed incidence. For example, we might identify a correlating log message which may have first appeared a few weeks ago. This gives us the latest that the problematic change could have been deployed.
From here, we can go to the env's deployment page and find which commit we deployed immediately before the above time.
If the observed problem happens infrequently (say, once or twice a week), there may have been a number of deployments made between the problematic change and the first observance. An educated guess can help us choose the earliest commit which is likely to have introduced the problem, and therefore the previous deployment would have the last known good commit.
We now have two commit hashes, which we can compare to see all changes, which can be very useful when trying to work out what when wrong.
The above process is currently possible, but awkward, because:
- The Environment's page shows all deployment jobs, included
successis interesting to me, but often the page is full of other statues
- It's slightly awkward to get the commit hash of a successful deploy from the Environment's page. There is the short hash text with a link to the full hash, but not the little copy to clipboard button like we have on the branch's page.
- To compare the two commits, I have to go to the compare page, which is on another page, and I have to copy over the commit hashes so I need two or three browser tabs open.
From the Environments page - add a copy hash icon that will allow to copy the full SHA of a deployment (similar to what already exists on the commits page)