FE: Add humanised text for merge request option selector in rules of scan result policy in policy drawer
Why are we doing this work
We are adding any merge request
option for rules section in scan result policy
Now we only have 2 options security scan and license scan.
We need to add humanised strings for new scan option in policy drawer
Relevant links
- See epic for more information
Design
Designs are attached in parent epic
Non-functional requirements
-
Documentation: -
Testing:
Implementation plan
-
frontend Add humanisation for new filters in security_orchestration/components/policy_drawer/scan_result/utils.js
. UpdatehumanizeRule
method fornew rule type
for any merge request option -
frontend Make sure it is implemented both for group
andproject
level
Verification steps
- Upload a GitLab Ultimate license
- Navigate to a project =>
Security & Compliance
=>Policies
=>New policy
=>Scan result Policy
- Select
any merge request
in rules section, make sure new rule is in place - Create new policy with
any merge request
rule - Go to
Security & Compliance
=>Policies
, select created policy - Make sure that humanised strings for
any merge request
are in place - Test it both on
project
andgroup
level
Edited by Artur Fedorov