add new `latestStatus` bool param to GET env endpoints
When set to true
, the new param refresh the status of the
environment(s) before returning the response. The backend will talk
to the K8s cluster to verify the env's health and update the
DB accordingly (only if required in case of a status change). Deleted
envs are excluded from this check.
The change also includes a refactor of the UpdateDeploymentStatusFor
function (now renamed WaitForDeploymentToSucceed
) to take
advantage of the new functionality, in particular the new
UpdateStatus*
function(s)
Bug: T389070