gitlab-org--gitlab-foss/spec
Douwe Maan 84632f0aff Merge branch 'banzai-issue-filter-queries' into 'master'
Reduce SQL query counts in IssueReferenceFilter

## What does this MR do?

This MR adds a preparation phase for reference filters that allows them to prepare/create data structures used while iterating over HTML nodes. In this particular case the preparation phase is used for issue references to greatly cut down the amount of queries executed to get projects/issues for Markdown references.

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

No.

## Why was this MR needed?

Rendering Markdown containing issue references would run at most two queries for every issue reference: one to get the project and one to get the issue from said project. When rendering Markdown with lots of issue references this would result in _a lot_ of queries being executed.

## What are the relevant issue numbers?

#18042

See merge request !4410
2016-06-16 20:49:13 +00:00
..
config
controllers Merge branch 'stanhu/gitlab-ce-fix-error-500-false-binary-negative' 2016-06-15 15:56:02 +02:00
factories Improve validations 2016-06-15 12:03:49 +02:00
features Merge branch 'template_dropdown' into 'master' 2016-06-16 17:29:45 +00:00
finders Fix notes on confidential issues through JSON to users without access 2016-06-14 17:51:17 -03:00
fixtures Add support for Docker Registry manifest v1 2016-06-15 12:53:23 +02:00
helpers Fix permission checks in member row 2016-06-15 18:17:45 +02:00
initializers
javascripts Merge branch '13525-sane-defaults-for-merge-request-js-class-constructor' into 'master' 2016-06-16 18:32:23 +00:00
lib Merge branch 'banzai-issue-filter-queries' into 'master' 2016-06-16 20:49:13 +00:00
mailers UI and copywriting improvements 2016-06-14 13:18:14 +02:00
models Merge branch 'fix/status-of-pipeline-without-builds' into 'master' 2016-06-16 11:48:36 +00:00
requests Merge branch '18451-track-new-redis-connections' into 'master' 2016-06-15 09:56:42 +00:00
routing
services Merge branch 'banzai-issue-filter-queries' into 'master' 2016-06-16 20:49:13 +00:00
support
tasks/gitlab
views
workers Merge branch 'dont-drop-stuck-builds' into 'master' 2016-06-15 02:54:19 +00:00
factories_spec.rb
rails_helper.rb
spec_helper.rb
teaspoon_env.rb