gitlab-org--gitlab-foss/spec/models/concerns
Alejandro Rodríguez fade1a4cde Fix pseudo n+1 queries with Note and Note Authors in issuables APIs
This was not a clear cut n+1 query, given that if you're directly subscribed to all issues
that the API is returning you never really need to check for the notes. However, if you're
subscribed to _all_ of them, then for each issuable you need to go once to `notes`, and
once to `users` (for the authors). By preemtively loading notes and authors, at worst you have
1 extra query, and at best you saved 2n extra queries. We also took advantage of this preloading
of notes when counting user notes.
2016-06-08 10:26:05 -04: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 Fix pseudo n+1 queries with Note and Note Authors in issuables APIs 2016-06-08 10:26:05 -04:00
mentionable_spec.rb Restrict access to references for confidential issues 2016-03-17 20:55:59 -03:00
milestoneish_spec.rb Restrict access for confidential issues on milestone view 2016-03-17 20:55:59 -03:00
participable_spec.rb Refactor Participable 2016-06-01 16:22:35 +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 Strip attributes for Milestone and Issuable. #3428 2015-11-26 10:16:50 -05: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