Commit Graph

10 Commits

Author SHA1 Message Date
Oswaldo Ferreira 2cda5ec838 Render MR commit SHA instead "diffs" when viable 2018-04-04 11:41:09 -03:00
Jarka Kadlecova 0c2fdb1c34 Refactor banzai to support referencing from group context 2017-12-06 19:16:22 +01:00
Douwe Maan fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Rémy Coutable 8efbf534a2 Get rid of a third N+1 query problem
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-28 10:52:14 +02:00
Rémy Coutable 38efe1bf9f Get rid of second N+1 query problem
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-28 10:52:13 +02:00
Rémy Coutable 8e388fca67 Get rid of a first N+1 query problem
Use the same approach in Banzai::Filter::MergeRequestReferenceFilter
as we do with issues.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-28 10:52:13 +02:00
Yorick Peterse 86166d2802
Split Markdown rendering & reference gathering
This splits the Markdown rendering and reference extraction phases into
two distinct code bases. The reference extraction phase no longer relies
on the html-pipeline Gem (and any related code) and allows for
extracting of references from multiple HTML nodes in a single pass. This
means that if you want to extract user references from 200 comments you
no longer need to run 200 times N number of queries, instead only a
handful of queries may be needed.
2016-05-26 17:14:00 +02:00
Yorick Peterse 84b0ab7766 Added & use Gitlab::Routing for URL helpers
Rails' "url_helpers" method creates an anonymous Module (which a bunch
of methods) on every call. By caching the output of this method in a
dedicated method we can shave off about 10 seconds of loading time for
an issue with around 200 comments.
2016-04-01 11:13:48 +02:00
Douwe Maan 2a20c0e590 Prevent circular reference error in Banzai 2016-01-14 11:30:28 +01:00
Douwe Maan 7781bda9bd Move Markdown/reference logic from Gitlab::Markdown to Banzai 2015-12-15 15:51:16 +01:00