gitlab-org--gitlab-foss/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
..
api Merge branch 'environments-and-deployments' into 'master' 2016-06-15 13:48:09 +00:00
assets
backup Only create the backup directory if it is local 2016-06-10 10:17:54 -07:00
banzai Merge branch 'banzai-issue-filter-queries' into 'master' 2016-06-16 20:49:13 +00:00
ci Merge branch 'master' into fix/status-of-pipeline-without-builds 2016-06-15 20:14:25 +02:00
container_registry Add support for Docker Registry manifest v1 2016-06-15 12:53:23 +02:00
gitlab Merge branch 'remove-shell-env' into 'master' 2016-06-15 16:41:13 +00:00
json_web_token Rename JWT to JSONWebToken 2016-05-14 18:23:31 -05:00
omni_auth Fix signin with OmniAuth providers 2015-12-08 14:58:15 +01:00
rouge/formatters Remove custom Lexer. #3945 [ci skip] 2016-01-08 15:20:48 -05:00
support Add note about port needed in NGINX config 2016-05-22 19:20:28 -05:00
tasks Properly quote table name in Rake task for MySQL and PostgreSQL compatibility 2016-06-09 15:06:19 -07:00
banzai.rb Add a PreProcessPipeline 2016-03-02 22:19:36 -05:00
disable_email_interceptor.rb
event_filter.rb Add leading comment space cop 2016-05-31 19:33:46 -03:00
extracts_path.rb
file_size_validator.rb Get rid of more requires, which causes warnings when code is reloaded 2016-04-19 11:48:10 +02:00
file_streamer.rb
gitlab.rb Fix a few places where autoloading would fail 2016-05-10 11:51:19 +02:00
gt_one_coercion.rb
repository_cache.rb
static_model.rb
unfold_form.rb
uploaded_file.rb
version_check.rb Update version check images to use SVG 2016-01-05 14:35:29 -05:00