BigW Consortium Gitlab
This refactors the Markdown pipeline so it supports the rendering of multiple documents that may belong to different projects. An example of where this happens is when displaying the event feed of a group. In this case we retrieve events for all projects in the group. Previously we would group events per project and render these chunks separately, but this would result in many SQL queries being executed. By extending the Markdown pipeline to support this out of the box we can drastically reduce the number of SQL queries. To achieve this we introduce a new object to the pipeline: Banzai::RenderContext. This object simply wraps two other objects: an optional Project instance, and an optional User instance. On its own this wouldn't be very helpful, but a RenderContext can also be used to associate HTML documents with specific Project instances. This work is done in Banzai::ObjectRenderer and allows us to reuse as many queries (and results) as possible.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
markdown_engines | Loading commit data... | |
wiki_link_filter | Loading commit data... | |
absolute_link_filter.rb | Loading commit data... | |
abstract_reference_filter.rb | Loading commit data... | |
ascii_doc_post_processing_filter.rb | Loading commit data... | |
autolink_filter.rb | Loading commit data... | |
blockquote_fence_filter.rb | Loading commit data... | |
color_filter.rb | Loading commit data... | |
commit_range_reference_filter.rb | Loading commit data... | |
commit_reference_filter.rb | Loading commit data... | |
commit_trailers_filter.rb | Loading commit data... | |
emoji_filter.rb | Loading commit data... | |
epic_reference_filter.rb | Loading commit data... | |
external_issue_reference_filter.rb | Loading commit data... | |
external_link_filter.rb | Loading commit data... | |
gollum_tags_filter.rb | Loading commit data... | |
html_entity_filter.rb | Loading commit data... | |
image_lazy_load_filter.rb | Loading commit data... | |
image_link_filter.rb | Loading commit data... | |
inline_diff_filter.rb | Loading commit data... | |
issuable_reference_filter.rb | Loading commit data... | |
issuable_state_filter.rb | Loading commit data... | |
issue_reference_filter.rb | Loading commit data... | |
label_reference_filter.rb | Loading commit data... | |
markdown_filter.rb | Loading commit data... | |
math_filter.rb | Loading commit data... | |
merge_request_reference_filter.rb | Loading commit data... | |
mermaid_filter.rb | Loading commit data... | |
milestone_reference_filter.rb | Loading commit data... | |
plantuml_filter.rb | Loading commit data... | |
redactor_filter.rb | Loading commit data... | |
reference_filter.rb | Loading commit data... | |
relative_link_filter.rb | Loading commit data... | |
sanitization_filter.rb | Loading commit data... | |
set_direction_filter.rb | Loading commit data... | |
snippet_reference_filter.rb | Loading commit data... | |
syntax_highlight_filter.rb | Loading commit data... | |
table_of_contents_filter.rb | Loading commit data... | |
task_list_filter.rb | Loading commit data... | |
user_reference_filter.rb | Loading commit data... | |
video_link_filter.rb | Loading commit data... | |
wiki_link_filter.rb | Loading commit data... | |
yaml_front_matter_filter.rb | Loading commit data... |