gitlab-org--gitlab-foss/app
Robert Speicher dac2e0c43d Merge branch 'ability-batch-issue-checking' into 'master'
Optimize checking if a user can read multiple issues

## What does this MR do?

This optimizes various parts of the code so it can more efficiently check if a user can read a list of issues.

## Are there points in the code the reviewer needs to double check?

Yes, in particular `Ability.issues_readable_by_user` should be checked to make sure it correctly allows/restricts access to issues.

## Why was this MR needed?

Currently the general approach to checking if one can read an issue is to iterate over the issues to check and call `can?(user, :read_issue, issue)` for every issue. This is not efficient as the same work has to be done for every issue.

## What are the relevant issue numbers?

* #15607 
* #17463

See merge request !5370
2016-07-29 16:54:37 +00:00
..
assets Implement final review comments from @rymai. 2016-07-29 15:20:39 +05:30
controllers Merge branch 'rubocop/enable-access-modifiers-cops' into 'master' 2016-07-29 15:58:09 +00:00
finders
helpers Merge branch 'rubocop/enable-access-modifiers-cops' into 'master' 2016-07-29 15:58:09 +00:00
mailers
models Merge branch 'ability-batch-issue-checking' into 'master' 2016-07-29 16:54:37 +00:00
services Merge branch 'rubocop/enable-access-modifiers-cops' into 'master' 2016-07-29 15:58:09 +00:00
uploaders Remove magic comments from Ruby files (!5456) 2016-07-24 07:08:45 +02:00
validators
views Check for Ci::Build artifacts at database level 2016-07-29 14:08:41 +02:00
workers Merge remote-tracking branch 'upstream/master' into new-issue-by-email 2016-07-27 18:11:50 +08:00