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 Move Markdown/reference logic from Gitlab::Markdown to Banzai 2015-12-15 15:51:16 +01:00
filter_array_spec.rb Add FilterArray class to Banzai 2016-03-01 15:54:35 -05:00
querying_spec.rb Optimize CSS expressions produced by Nokogiri 2015-12-31 15:46:47 +01:00