Skip to content

Generate correct link when listing protected environments

What does this MR do?

When listing protected environments on the CI/CD settings page the generated urls are using the protected_environments.name instead of the environments.id and this results in 404 error when following the link.

This MR is fixing this by changing the way protected environments are fetched from the database to JOIN with the environments table so that the environments.id can be selected and available in the view partial.

What are the relevant issue numbers?

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

Does this MR meet the acceptance criteria?

Edited by Krasimir Angelov

Merge request reports