- 21 Apr, 2016 4 commits
-
-
Alfredo Sumaran authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
Closes #15168
-
Alfredo Sumaran authored
-
- 06 Apr, 2016 4 commits
-
-
Gabriel Mazetto authored
-
Yorick Peterse authored
This fixes the problem where Markdown such as: ### 31st Would get rendered as a link tag pointing to issue number 31 inside a header tag. See gitlab-org/gitlab-ce#14936 for more information.
-
Gabriel Mazetto authored
-
Gabriel Mazetto authored
-
- 05 Apr, 2016 1 commit
-
-
connorshea authored
Resolves #14411. See merge request !3464
-
- 04 Apr, 2016 6 commits
-
-
Yorick Peterse authored
Cleaning this up any further is a bit tricky as the caches in question should only be evaluated if RequestStore is actually enabled.
-
Yorick Peterse authored
Every object processed by ExternalIssueReferenceFilter can return a different Project instance when calling "project". For example, every note processed will have it's own associated Project. If we were to cache Project#default_issues_tracker? on Project level this would have no impact on Markdown rendering timings as the cache would have to be built for every Project instance without it ever being re-used. To work around this we cache Project#default_issues_tracker? in Banzai::Filter::ExternalIssueReferenceFilter using the project's _id_ instead of the whole object. This setup allows re-using of the cached data even when the Project instances used are different, as long as the actual project IDs are the same.
-
Yorick Peterse authored
For an issue with around 200 notes this cuts down timings by around 150 milliseconds.
-
Yorick Peterse authored
These methods always return the same data for every class so there's no point in computing their values on every call.
-
Yorick Peterse authored
These filters now use a single iteration over all the document nodes instead of multiple ones. This in turn allows variables to be re-used (e.g. links only have to be unescaped once). Combined with some other refactoring this can drastically reduce render timings.
-
Yorick Peterse authored
This was originally suggested by @ayufan and modified to be a bit cleaner and use RequestStore instead of a regular Hash. By caching the output of the two methods involved the number of queries is reduced significantly. For example, for an issue with 200 notes (of which 100 reference a number of merge requests) this cuts down the amount of queries from around 6300 to around 3300.
-
- 01 Apr, 2016 2 commits
-
-
Yorick Peterse authored
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.
-
Gabriel Mazetto authored
-
- 30 Mar, 2016 1 commit
-
-
Gabriel Mazetto authored
-
- 24 Mar, 2016 1 commit
-
-
Robert Speicher authored
We're trying to avoid circular dependency errors.
-
- 17 Mar, 2016 6 commits
-
-
Douglas Barbosa Alexandre authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
-
- 14 Mar, 2016 1 commit
-
-
Robert Speicher authored
This prevents false matches on relative links like `[database](database.md)`. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/14220
-
- 04 Mar, 2016 1 commit
-
-
Robert Speicher authored
This filter will detect YAML Front Matter and convert it to an HTML table for prettier formatting.
-
- 03 Mar, 2016 5 commits
-
-
Robert Speicher authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
When `object_class.link_reference_pattern` was `nil` because object being processed do not implemement link references `call` method returned `nil` instead of returning document, even if document has been processed in for basic reference pattern.
-
- 24 Feb, 2016 1 commit
-
-
Robert Speicher authored
Closes https://dev.gitlab.org/gitlab/gitlabhq/issues/2660
-
- 23 Feb, 2016 1 commit
-
-
Robert Speicher authored
Closes #2494
-
- 21 Feb, 2016 1 commit
-
-
Robert Speicher authored
Closes #13625
-
- 12 Feb, 2016 1 commit
-
-
Robert Speicher authored
Now that we're serving assets directly from the Gemojione gem's path, the images are not in an `emoji/` sub-folder.
-
- 03 Feb, 2016 1 commit
-
-
Robert Speicher authored
This allows for future pipelines to more easily define a custom whitelist.
-
- 23 Jan, 2016 1 commit
-
-
Benedict Etzel authored
Closes #12517
-
- 20 Jan, 2016 1 commit
-
-
Stan Hu authored
Closes #6077
-
- 14 Jan, 2016 1 commit
-
-
Douglas Barbosa Alexandre authored
-