Skip to content

DRAFT: Fix duplicate environment selection

What does this MR do and why?

Follow up MR to Migrate new environments GlDropdown to GlTokenS... (!107045 - merged), this MR addresses some UX from the original form / dropdown:

  • Prevents selection of the same environment in the new feature flags form
  • Prevents excessive re-rendering of the form strategy rows

Screenshots or screen recordings

Before After
Screen_Recording_2023-01-11_at_8.35.59_pm Screen_Recording_2023-01-11_at_8.37.02_pm

How to set up and validate locally

  1. Create a new project
  2. Create 2 static environments for the project. You only need to fill in the name field for the environment, the url can be blank.
  3. Navigate to the new feature flags form for the project
  4. Create a feature flag, making sure to use the environments dropdown

MR acceptance checklist

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

Related to #384273 (closed)

Edited by Ezekiel Kigbo

Merge request reports