Skip to content

Scoping policy conditions on subject or user

Max Fan requested to merge 460263-update-policies-for-pipeline into master

What does this MR do and why?

Refactoring on the policies within /ci

Adding scope to the conditions will improve performance by caching

docs: https://docs.gitlab.com/ee/development/policies.html#scope

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.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Everything should work as normal, running the pipeline with all the pipeline::run all xyz labels for better test coverage

Related to #460263 (closed)

Edited by Max Fan

Merge request reports