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 Enable the Rubocop DeprecatedClassMethods cop 2016-05-08 15:33:34 -06:00
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 Add tests for setting trusted_proxies 2016-05-04 15:49:39 -07:00
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 Merge branch 'health-check-route' 2016-05-12 16:39:03 -05:00
services Merge branch 'banzai-issue-filter-queries' into 'master' 2016-06-16 20:49:13 +00:00
support Fix Error 500 when viewing a blob with binary characters after the 1024-byte mark 2016-06-12 07:36:25 -07:00
tasks/gitlab Switch the gitlab:db:configure task to use tables.any? instead of looking specifically for the schema_migrations table 2016-05-25 10:47:09 -07:00
views
workers Merge branch 'dont-drop-stuck-builds' into 'master' 2016-06-15 02:54:19 +00:00
factories_spec.rb Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04:00
rails_helper.rb
spec_helper.rb Enable Knapsack only in CI environment 2016-06-08 11:43:13 +02:00
teaspoon_env.rb Add leading comment space cop 2016-05-31 19:33:46 -03:00