Skip to content

Implement actions in CI Variable drawer

Mireya Andres requested to merge ci-variable-drawer-actions into master

What does this MR do and why?

Resolves #421263 (closed).

The CI Variables drawer is being developed under the ci_variable_drawer feature flag, and will replace the modal for creating, editing, and deleting a CI variables.

This MR makes sure that the following actions are working and has test coverage:

  • Select an environment scope
  • Search environment scope
  • Add a new CI variable (already implemented, just needs more test coverage)
  • Editing an existing CI variable (already implemented, just needs more test coverage)
  • Deleting an existing CI variable

Most of these are already set in the code but were just missing specs. Most of the implementation changes are with the environment scope dropdown and deleting a CI variable.

Implementation Table

Iteration MR
Setup drawer with feature flag !126197 (merged)
Add form validations !129684 (merged)
Ensure that CI variable actions are working with the drawer 👈 You are here!
Rollout #418005 (closed)

Screenshots or screen recordings

ci_variable_drawer

How to set up and validate locally

  1. Enable the ci_variable_drawer feature flag.
  2. Go to Settings > CI/CD > Variables for a group or project. If you're testing on a group, make sure you have a Premium+ license.
  3. Verify that you can search environment scopes as well as add, edit, and delete CI variables.

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 Mireya Andres

Merge request reports