Skip to content

Migrate new environments GlDropdown to GlTokenSelector

What does this MR do and why?

This MR migrates the GlDropdown in app/assets/javascripts/feature_flags/components/new_environments_dropdown.vue to a GlTokenSelector

Additionally this MR

  • Ensures an environment can only be selected once
  • Adds All Environments text next to the token selector

Screenshots or screen recordings

Before After
720-new-environemnts-dropdown-old 720-feature-flag-form-with-token-selector

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  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

Loading