An error occurred while fetching the assigned iteration of the selected issue.
Cache policy.yml in security policy project
Why are we doing this work
As a part of Refine Policy Application Limits (&8084), we want to increase the limit in number of policies that can be created for a group/project. As a first step for that, we want to reduce the time it takes to read the yaml file from gitaly. Since we already have cache for files/methods from gitaly, we could cache .gitlab/security-policies/policy.yml
to reduce the time to read from gitaly everytime.
Relevant links
Non-functional requirements
- Documentation:
- Feature flag:
- Performance:
- Testing:
Implementation plan
-
backend Update
app/models/repository.rb
to cache security policy yaml file.
Verification steps
- Verify in this dashboard if the duration is reduced