Skip to content

WIP: Adds `Ci::BuildEnvironmentDeployment` relationship

What does this MR do?

Adds Ci::BuildEnvironmentDeployment relationship

Are there points in the code the reviewer needs to double check?

Architectural review

Why was this MR needed?

On Protected Environments we're fetching an environment per build on certain conditions. This implies a performance issue as fetching environments is very expensive to evaluate. The relationship Ci::Build - Environment - Deployment aims to help with the performance

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

To do

  • Modify CreateDeploymentService to fill Ci::BuildEnvironmentDeployment#deployment_id
  • EE Port

Issue

https://gitlab.com/gitlab-org/gitlab-ce/issues/49954

Edited by 🤖 GitLab Bot 🤖

Merge request reports