FE: Add license type filtering
Why are we doing this work
- customers want to be able to choose the license type of license scans they get notified for
Relevant links
Implementation plan
MR 1
-
frontend create license type filter from the generic filter - title:
License type:
- description: Move the two existing dropdowns from the license_scan_rule_builder.vue
- title:
-
frontend it is conditionally shown - hidden before the scanner is chosen
- when
Security Scan
is chosen, it is hidden - when
License Scan
is chosen, it shows below the main section
-
frontend ensure the description is set to the correct values when the values are changed in yaml mode -
frontend ensure rule mode is disabled if incorrect values are added in yaml mode -
frontend ensure the description is set to the correct values for pre-existing policies
Verification steps
- Ensure the GitLab Ultimate license is enabled
- Navigate to a project/group => Security & Compliance => Policies => New policy => Scan result policy
- Verify the filter is hidden
- Choose
License Scan
- Verify the filter is hidden
- Choose
Security Scan
- Verify the filter can be changed and the yaml is updated appropriately
- Navigate to yaml mode, make changes to values to a value that does exist, navigate to rule mode and ensure the description has been updated
- Navigate to yaml mode, make changes to the values to a value that does not exist, navigate to rule mode and ensure that rule mode is disabled
- Create the policy, edit it, verify the description is assigned the appropriate values
Edited by Alexander Turinske