gitlab-org--gitlab-foss/spec/lib
Yorick Peterse 01575e9966
Reduce Namespace queries in UserReferenceFilter
This changes UserReferenceFilter so it operates using the following
steps:

1. Grab all username references from the input document.
2. Query the corresponding Namespace objects using a single query.
3. Iterate over all nodes to build links while re-using the objects
   queried in step 2.

The impact of these changes is that a comment mentioning 5 different
usernames no longer runs 5 different queries (1 for every username),
instead it only runs a single query.
2016-06-02 14:01:42 +02:00
..
banzai Reduce Namespace queries in UserReferenceFilter 2016-06-02 14:01:42 +02:00
ci Merge branch 'rs-rubocop-nottonot' into 'master' 2016-05-25 16:46:29 +00:00
container_registry Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04:00
gitlab Merge branch 'separate-banzai-references' into 'master' 2016-06-01 15:51:59 +00:00
json_web_token Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04:00
award_emoji_spec.rb Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04:00
disable_email_interceptor_spec.rb
extracts_path_spec.rb Added & use Gitlab::Routing for URL helpers 2016-04-01 11:13:48 +02:00
file_size_validator_spec.rb
git_ref_validator_spec.rb
gitlab_spec.rb Add `Gitlab.com?` method 2016-04-12 17:30:11 -04:00
repository_cache_spec.rb