Fix dropdown in CI/CD variables not showing the current type
What does this MR do and why?
We were using the wrong constants in the new CI/CD variable dropdown which resulted in the currently selected type not to be shown. This commit now make use of the right constant.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Enable the feature flag
Feature.enable(:ci_variable_settings_graphql)
- Visit
/$user/$Project/-/settings/ci_cd
- Add a variable
- Select a type (example, File)
- Save the variable
- Click to edit the variable
- Notice the selected type is shown
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.