[Frontend] Add humanisation rules for new policy type
Why are we doing this work
Policy drawer has to reflect new policy type consistent with existing types
Policy rules should convert rule object to humanly-readable sentence
Relevant links
Design: #452328[list_view-with_drawer.png]
Non-functional requirements
-
Documentation: -
Feature flag: pipeline_execution_policy_type
-
Performance: -
Testing: unit tests
Implementation plan
- Create new utils.js for
pipeline_execution_policy_type
insecurity_orchestration/components/policy_drawer/new_policy_folder
- Add
methods
to covert rule objects to humanly-readable sentence - Update
details_drawer.vue
to use this utils methods and make sure Summary section is displayed properly.
Edited by Artur Fedorov