gitlab-org--gitlab-foss/spec/lib
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
..
banzai Merge branch 'banzai-issue-filter-queries' into 'master' 2016-06-16 20:49:13 +00:00
ci Merge remote-tracking branch 'origin/master' into environments-and-deployments 2016-06-14 16:19:29 +02:00
container_registry Add support for Docker Registry manifest v1 2016-06-15 12:53:23 +02:00
gitlab Filter out classes without names in the sampler 2016-06-14 18:09:06 +02:00
json_web_token Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04: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 Add `Gitlab.com?` method 2016-04-12 17:30:11 -04:00
repository_cache_spec.rb Tag lib specs 2015-12-09 11:55:42 +01:00