Add ability to create custom variable
What does this MR do and why?
Add ability to create custom variable
- allow user to toggle between defined variable and custom variable
- update translations
- remove error for custom variables
Changelog: added
EE: true
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
Just pre-defined keys | custom_key |
Related to !122979 (merged)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Navigate to a project/group => Secure => Policies => New policy => Scan execution policy
- Verify a user can add CI variables in rule mode, modify them in yaml mode and have them reflected in rule mode, etcetera
- Save the policy with variables
- Navigate to a project/group => Secure => Policies => Edit policy
- Verify the editor populates the variables and are editable
- Modify variables to use custom keys
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.
Related to #412790 (closed)
Edited by Alexander Turinske