Consolidate methods and constants from policy drawer and policy editor

Why are we doing this work

From this discussion

I was a little confused when I was looking through the code locally as I found I was looking at constants and functions with identical names in the policy_drawer and policy_editor directories — I wonder if there are some things there that could be pulled out and shared between these components?

Relevant links

Non-functional requirements

  • Documentation:
  • Feature flag:
  • Performance:
  • Testing:

Implementation plan

  • frontend investigate methods and constants between policy drawers and policy editors and abstract out similar values
    • scan execution
    • merge request approval
    • pipeline execution

Verification steps