Add scope column in policy list
Why are we doing this work
As part of security policies scope epic, policy list now has policy scope
column
For policies, existed before feature was introduced, column should display default mode
Relevant links
Non-functional requirements
-
Documentation: -
Feature flag: security_policies_policy_scope
security_policies_policy_scope
-
Performance: -
Testing: unit tests
Implementation plan
- Reuse existing component
compliance_frameworks_toggle_list
for compliance frameworks - Extend
compliance_frameworks_toggle_list
with functionality to show only distinct number of labels - Add new component
list_component_scope.vue
containing logic to show relevant text in column based on policy_scope - Add
list_component_scope.vue
tolist_component.vue
. Make sure to consider feature flags mentioned above