gitlab-org--gitlab-foss/spec/lib/banzai
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
..
filter Reduce Namespace queries in UserReferenceFilter 2016-06-02 14:01:42 +02:00
pipeline little refactor and improvements on specs 2016-04-06 20:09:15 -03:00
reference_parser Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
cross_project_reference_spec.rb
filter_array_spec.rb
querying_spec.rb