Fix loading pipeline execution policies with missing project
What does this MR do and why?
This MR fixes problem when pipeline execution policies are listed in the GraphQL API but configured project is missing/moved.
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Create 2 new projects
- In one of them create new YAML file with some random GitLab CI config (
empty_job: { script: ["echo 'Hello!'"] }) - Create new Pipeline Execution Policy (Secure -> Policies -> Create new) and point to the project created in 2 step
- Move project from step 2. to new full path
- Observe Policies list to ensure it is still loading
Related to #505430 (closed)
