FE: Update policy drawer with information about branch exceptions
Why are we doing this work
In the scope of this issue, we would like to extend the current functionality to support branch_exceptions
in policy drawer to properly display information about policy and when it is applicable when branch_exceptions
are defined.
Relevant links
Non-functional requirements
-
Documentation: no documentation changes are needed until feature flag is enabled by default -
Feature flag: overall feature should be released behind feature flag security_policies_branch_exceptions
, if FF is disabled we should not considerbranch_exceptions
when evaluating if policy is applicable, -
Performance: -
Testing: -
Test if policy drawer is properly displayed without exceptions defined, -
Test if policy drawer is properly displayed with exceptions defined on group level, -
Test if policy drawer is properly displayed with exceptions defined on project level, -
Test if policy drawer is properly displayed with exceptions defined on group level when full_path of the project is specified, -
Test if policy drawer is properly displayed with exceptions defined on project level when full_path of the project is specified,
-
Implementation plan
- MR1:
- frontend ...
Verification steps
- Create a new Project
- Create a new Scan Result Policy in YAML mode and add
branch_exceptions: ["dev", { full_path: "path/to/project", "name": "main" }]
- Create a new Scan Execution Policy in YAML mode and add
branch_exceptions: ["dev", { full_path: "path/to/project", "name": "main" }]
- Go to Policies page and look how Policy Drawer is updated
Edited by Alan (Maciej) Paruszewski