gitlab-org--gitlab-foss/lib/banzai
Stan Hu af3727b34a Optimize system note visibility checking by hiding notes that
have been fully redacted and contain cross-project references.

The previous implementation relied on Note#cross_reference_not_visible_for?,
which essentially tries to render all the Markdown references in a system note
and only displays the note if the user can see the referring project. But this
duplicated the work that Banzai::NotesRenderer was doing already. Instead, for
each note we render, we memoize the number of visible user references and
use it later if it is available.

Improves #19273
2016-07-11 15:09:21 -07:00
..
filter Add more comments to regex 2016-07-10 14:47:53 -05:00
pipeline Add blockquote fence syntax to Markdown 2016-07-09 21:23:05 -04:00
reference_parser Re-use queries in reference parsers 2016-07-08 21:54:35 +02:00
cross_project_reference.rb Prevent circular reference error in Banzai 2016-01-14 11:30:28 +01:00
filter.rb Remove redundant `require`s from Banzai files 2016-03-24 13:23:47 -04:00
filter_array.rb Add FilterArray class to Banzai 2016-03-01 15:54:35 -05:00
note_renderer.rb Support for rendering/redacting multiple documents 2016-06-24 11:46:39 +02:00
object_renderer.rb Optimize system note visibility checking by hiding notes that 2016-07-11 15:09:21 -07:00
pipeline.rb Prevent circular reference error in Banzai 2016-01-14 11:30:28 +01:00
querying.rb Optimize CSS expressions produced by Nokogiri 2015-12-31 15:46:47 +01:00
redactor.rb Optimize system note visibility checking by hiding notes that 2016-07-11 15:09:21 -07:00
reference_extractor.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
reference_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
renderer.rb Move pre_process into render_result 2016-06-21 17:39:01 +02:00