Skip to content

Support ci_forward_deployment_enabled in edit project API

Amy Troschinetz requested to merge forward_deployment_enabled-api into master

What does this MR do?

Related to #212621 (closed)

Ok. So a couple things:

  1. This parameter is being changed to ci_forward_deployment_enabled throughout the codebase to indicate that this is a property of project.ci_cd_settings rather than a property that's directly on project itself.
  2. Because ci_cd_settings is created in an after_create hook, you can not provide this parameter in the API at project creation time. As such this parameter will not work with POST /api/v4/projects.
  3. After creation of the project however, you can update this parameter via the API PUT /api/v4/projects/:id.
  4. This is an iteration. A subsequent step in the iteration process for this might be to somehow make it so ci_forward_deployment_enabled can be allowed in the creation API as well. But for now that is outside the scope of this MR.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Amy Troschinetz

Merge request reports