gitlab-org--gitlab-foss/spec/models/concerns
Yorick Peterse 002ad21581
Method for returning issues readable by a user
The method Ability.issues_readable_by_user takes a list of users and an
optional user and returns an Array of issues readable by said user. This
method in turn is used by
Banzai::ReferenceParser::IssueParser#nodes_visible_to_user so this
method no longer needs to get all the available abilities just to check
if a user has the "read_issue" ability.

To test this I benchmarked an issue with 222 comments on my development
environment. Using these changes the time spent in nodes_visible_to_user
was reduced from around 120 ms to around 40 ms.
2016-07-29 12:51:18 +02:00
..
access_requestable_spec.rb Exclude requesters from Project#members, Group#members and User#members 2016-07-01 17:44:46 +02:00
awardable_spec.rb Fix rubocop offense in awardable specs 2016-06-06 07:42:12 +02:00
case_sensitivity_spec.rb trick rubocop and temporarily add ruby 2.1 images for any branch 2016-01-28 11:41:58 +01:00
issuable_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
mentionable_spec.rb Method for returning issues readable by a user 2016-07-29 12:51:18 +02:00
milestoneish_spec.rb Project members with guest role can't access confidential issues 2016-06-13 19:32:00 -03:00
participable_spec.rb Cache Participable#participants in instance variable 2016-06-21 12:54:12 +02:00
statuseable_spec.rb Render canceled status if any of the jobs canceled 2016-04-27 14:16:01 +02:00
strip_attribute_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
subscribable_spec.rb Add API endpoints for un/subscribing from/to a label 2016-05-12 22:48:09 +02:00
token_authenticatable_spec.rb Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04:00