Add scan result policies into the policy drawer
What does this MR do and why?
Add a parsed version of scan result policies in the policy drawer.
Follow up from !77778 (merged)
Related issue: #346072 (closed)
Screenshots or screen recordings
For documentation
Example of sentences for the following yaml:
Input one:
...
approvals_required: 2,
user_approvers: ['o.leticia.conner'],
...
Output:
Require 2 approvals from o.leticia.conner if ...
Input two:
...
approvals_required: 2,
group_approvers: ['security_group/all_members'],
...
Output:
Require 2 approvals from members of the group security_group/all_members if ...
Input three:
...
approvals_required: 2,
group_approvers_ids: [10],
...
Output:
Require 2 approvals from members of the group with id 10 if ...
Input four:
...
approvals_required: 2,
user_approvers_ids: [5],
...
Output:
Require 2 approvals from user with id 5 if ...
Input five:
...
approvals_required: 2,
user_approvers: ['o.leticia.conner'],
group_approvers: ['security_group/all_members'],
group_approvers_ids: [10],
user_approvers_ids: [5],
...
Output:
Require 2 approvals from o.leticia.conner or user with id 5 or members of the group security_group/all_members or members of the group with id 10 if ...
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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.
Edited by Zamir Martins