Skip to content

Provide default path for protected environments

Andrew Fontaine requested to merge afontaine/fix-new-environments-form into master

What does this MR do and why?

Due to the conditional nature of protected environments (ee required, license check, editing an environment), we should provide a default fallback value that hides the link if it isn't provided at all.

Changelog: fixed

Screenshots or screen recordings

before after
console error no error

How to set up and validate locally

  1. Navigate to a project's environments page: ** Deployments > Environments**
  2. Click on New environment
  3. Verify console + form works

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Andrew Fontaine

Merge request reports