gitlab-org--gitlab-foss/spec/lib
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
..
banzai Method for returning issues readable by a user 2016-07-29 12:51:18 +02:00
ci Move job dependencies entry to the new CI config 2016-07-20 14:15:18 +02:00
container_registry Explicitly remove authorization token and make sure that invalid addresses are properly handled 2016-07-15 17:35:23 +02:00
gitlab Merge branch 'refactor/ci-config-move-job-entries' into 'master' 2016-07-29 13:53:35 +00:00
json_web_token Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
disable_email_interceptor_spec.rb Fix failing EmailOnPush spec. 2016-06-10 14:11:02 +05:30
extracts_path_spec.rb Added & use Gitlab::Routing for URL helpers 2016-04-01 11:13:48 +02:00
file_size_validator_spec.rb Tag lib specs 2015-12-09 11:55:42 +01:00
git_ref_validator_spec.rb Tag lib specs 2015-12-09 11:55:42 +01:00
gitlab_spec.rb Update Gitlab.com? to support staging 2016-06-27 15:10:36 -04:00
repository_cache_spec.rb Use project ID in repository cache to prevent stale data from persisting across projects 2016-07-25 05:09:28 -07:00