gitlab-org--gitlab-foss/spec/services
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
..
auth Fix rubocop offenses 2016-05-31 15:38:42 +02:00
ci Merge branch 'fix/status-of-pipeline-without-builds' into 'master' 2016-06-16 11:48:36 +00:00
groups Update tests for the current_application_settings request store changes 2016-05-27 19:05:52 -07:00
issues Fix spec 2016-06-03 17:14:23 -05:00
merge_requests Rename all `[ci_]commit` to `[ci_]pipeline` in specs and features 2016-06-03 16:22:26 +02:00
milestones Tag service specs 2015-12-09 11:55:49 +01:00
notes Fix latests concerns 2016-05-18 08:47:15 -05:00
projects Project members with guest role can't access confidential issues 2016-06-13 19:32:00 -03:00
create_commit_builds_service_spec.rb Remove reduntant method for building pipeline builds 2016-06-15 14:12:25 +02:00
create_deployment_service_spec.rb Make `project_id` and `environment_id` nullable 2016-06-15 13:00:13 +02:00
create_release_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
create_snippet_service_spec.rb Fix more specs 2016-03-20 23:09:33 +01:00
create_tag_service_spec.rb Use a similar approach to branch creation for tag creation 2016-05-04 17:19:13 +02:00
delete_tag_service_spec.rb Delete tags via rugged 2016-04-15 16:05:04 +02:00
delete_user_service_spec.rb Specs for the DeleteUserService 2016-03-15 22:19:51 +01:00
destroy_group_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
event_create_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
git_hooks_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
git_push_service_spec.rb Reduce queries in IssueReferenceFilter 2016-06-16 14:04:45 +02:00
git_tag_push_service_spec.rb Refactor GitTagPushService and fig tags_push system event hook 2016-04-19 11:00:30 +02:00
notification_service_spec.rb Project members with guest role can't access confidential issues 2016-06-13 19:32:00 -03:00
repair_ldap_blocked_user_service_spec.rb Code style fixes and some code simplified 2016-01-08 16:26:04 -02:00
search_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
system_hooks_service_spec.rb Merge branch 'add_username_to_user_system_hooks' of https://github.com/tbeadle/gitlabhq 2016-01-13 10:12:30 +01:00
system_note_service_spec.rb Rename all `[ci_]commit` to `[ci_]pipeline` in specs and features 2016-06-03 16:22:26 +02:00
test_hook_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
todo_service_spec.rb Merge branch 'manual-todos-issuable-sidebar' into 'master' 2016-06-14 22:01:43 +00:00
update_release_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
update_snippet_service_spec.rb Fix more specs 2016-03-20 23:09:33 +01:00