<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/lib, branch fix-markdown-rendering</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Fix header link rendering when containing numbers</title>
<updated>2016-04-06T12:24:30+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2016-04-06T12:24:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=507cbca339444eabdfdd5d6dff1237bd00ee636a'/>
<id>507cbca339444eabdfdd5d6dff1237bd00ee636a</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Wrap images in discussions and wikis with a link to the image source using ImageLinkFilter.</title>
<updated>2016-04-05T01:44:07+00:00</updated>
<author>
<name>connorshea</name>
<email>connor.james.shea@gmail.com</email>
</author>
<published>2016-03-30T22:03:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=b9abf938edf52e762d320b1eb8732155e23d7b72'/>
<id>b9abf938edf52e762d320b1eb8732155e23d7b72</id>
<content type='text'>
Resolves #14411.

See merge request !3464
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolves #14411.

See merge request !3464
</pre>
</div>
</content>
</entry>
<entry>
<title>Cleaned up caching in AbstractReferenceFilter</title>
<updated>2016-04-04T09:39:11+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2016-04-04T09:39:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=915fd3f910921bc97abdda5f2ae63093c11533fd'/>
<id>915fd3f910921bc97abdda5f2ae63093c11533fd</id>
<content type='text'>
Cleaning this up any further is a bit tricky as the caches in question
should only be evaluated if RequestStore is actually enabled.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cleaning this up any further is a bit tricky as the caches in question
should only be evaluated if RequestStore is actually enabled.
</pre>
</div>
</content>
</entry>
<entry>
<title>Cache default_issues_tracker? in Banzai</title>
<updated>2016-04-04T08:44:35+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2016-03-30T12:04:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=7f0fd73eeb983782bac26bb983ec8ea52194b80a'/>
<id>7f0fd73eeb983782bac26bb983ec8ea52194b80a</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Memoize object class titles</title>
<updated>2016-04-04T08:44:35+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2016-03-29T09:58:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=9fa94326dba11ca3b9197a4f084ba2883c29bdff'/>
<id>9fa94326dba11ca3b9197a4f084ba2883c29bdff</id>
<content type='text'>
For an issue with around 200 notes this cuts down timings by around 150
milliseconds.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For an issue with around 200 notes this cuts down timings by around 150
milliseconds.
</pre>
</div>
</content>
</entry>
<entry>
<title>Cache Banzai class methods returning static data</title>
<updated>2016-04-04T08:44:35+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2016-03-24T15:27:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=8c49eaa937ed3d4332c54e8b0929c328a85d7fe4'/>
<id>8c49eaa937ed3d4332c54e8b0929c328a85d7fe4</id>
<content type='text'>
These methods always return the same data for every class so there's no
point in computing their values on every call.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These methods always return the same data for every class so there's no
point in computing their values on every call.
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor processing of various Banzai filters</title>
<updated>2016-04-04T08:44:35+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2016-03-24T14:57:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=141148057703048f5c409c040c80c277f7747273'/>
<id>141148057703048f5c409c040c80c277f7747273</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Cache Banzai projects/objects using RequestStore</title>
<updated>2016-04-04T08:44:35+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2016-03-24T14:53:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=57bde0ce65caf2cbbb6a57f21435639cdaa06225'/>
<id>57bde0ce65caf2cbbb6a57f21435639cdaa06225</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'add-ability-to-archive-a-project-via-api-14296' into 'master'</title>
<updated>2016-04-03T13:19:25+00:00</updated>
<author>
<name>Douwe Maan</name>
<email>douwe@gitlab.com</email>
</author>
<published>2016-04-03T13:19:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=df725aec985dc68007e78ac85970663f692f55d4'/>
<id>df725aec985dc68007e78ac85970663f692f55d4</id>
<content type='text'>

Add endpoints for archiving and unarchiving

Closes #14296

See merge request !3372</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Add endpoints for archiving and unarchiving

Closes #14296

See merge request !3372</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'routing' into 'master'</title>
<updated>2016-04-01T16:51:20+00:00</updated>
<author>
<name>Robert Speicher</name>
<email>robert@gitlab.com</email>
</author>
<published>2016-04-01T16:51:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=5627542fd4f2d24f7f5b13cc6143d2b75aaac0e1'/>
<id>5627542fd4f2d24f7f5b13cc6143d2b75aaac0e1</id>
<content type='text'>

Added &amp; use Gitlab::Routing for URL helpers

Extracted from !3389

See merge request !3486</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Added &amp; use Gitlab::Routing for URL helpers

Extracted from !3389

See merge request !3486</pre>
</div>
</content>
</entry>
</feed>
