gitlab-org--gitlab-foss/lib/banzai
Adam Buckland ace833b31d Add indication for closed or merged issuables in GFM
Example: for issues that are closed, the links will now show '[closed]'
following the issue number. This is done as post-process after the markdown has
been loaded from the cache as the status of the issue may change between
the cache being populated and the content being displayed.

In order to avoid N+1 queries problem when rendering notes ObjectRenderer
populates the cache of referenced issuables for all notes at once,
before the post processing phase.

As a part of this change, the Banzai BaseParser#grouped_objects_for_nodes
method has been refactored to return a Hash utilising the node itself as the
key, since this was a common pattern of usage for this method.
2017-04-07 14:31:43 -05:00
..
filter Add indication for closed or merged issuables in GFM 2017-04-07 14:31:43 -05:00
pipeline Add indication for closed or merged issuables in GFM 2017-04-07 14:31:43 -05:00
reference_parser Add indication for closed or merged issuables in GFM 2017-04-07 14:31:43 -05:00
renderer Merge branch '30125-markdown-security' 2017-04-05 21:03:46 -07:00
cross_project_reference.rb replace find_with_namespace with find_by_full_path 2017-02-03 07:14:04 +07:00
filter.rb
filter_array.rb
issuable_extractor.rb Add indication for closed or merged issuables in GFM 2017-04-07 14:31:43 -05:00
note_renderer.rb
object_renderer.rb Add indication for closed or merged issuables in GFM 2017-04-07 14:31:43 -05:00
pipeline.rb
querying.rb Create directly_addressed Todos when mentioned in beginning of a line 2017-02-08 21:53:34 +05:30
redactor.rb Fix Markdown styling inside reference links 2016-11-01 09:49:30 +00:00
reference_extractor.rb Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
reference_parser.rb
renderer.rb make mentions working when project not specified 2017-01-18 18:38:17 -05:00