e7b1d201dd
read_project can be prevented by a very expensive condition, which we want to avoid, while still not writing manual SQL queries. read_project_for_iids is used by read_issue_iid and read_merge_request_iid to satisfy both of those constraints, and allow the declarative policy runner to use its normal caching strategy. |
||
---|---|---|
.. | ||
ci | ||
clusters | ||
base_policy_spec.rb | ||
deploy_key_policy_spec.rb | ||
environment_policy_spec.rb | ||
global_policy_spec.rb | ||
group_policy_spec.rb | ||
issuable_policy_spec.rb | ||
issue_policy_spec.rb | ||
namespace_policy_spec.rb | ||
note_policy_spec.rb | ||
personal_snippet_policy_spec.rb | ||
project_policy_spec.rb | ||
project_snippet_policy_spec.rb | ||
protected_branch_policy_spec.rb | ||
user_policy_spec.rb |