<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/app/views/notify, branch patch-9</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>Introduce `Ci::Stage`, right now this is artificial object that is build dynamically.</title>
<updated>2016-12-06T13:13:21+00:00</updated>
<author>
<name>Kamil Trzcinski</name>
<email>ayufan@ayufan.eu</email>
</author>
<published>2016-12-05T13:17:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=d865aedafc2282f898b4bd2fdfd3660c47203c37'/>
<id>d865aedafc2282f898b4bd2fdfd3660c47203c37</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use assigned variables better</title>
<updated>2016-11-28T19:40:48+00:00</updated>
<author>
<name>Sean McGivern</name>
<email>sean@gitlab.com</email>
</author>
<published>2016-11-23T16:25:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=87665170eccfc423fc3f7fe2cadd208d808a6847'/>
<id>87665170eccfc423fc3f7fe2cadd208d808a6847</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Tidy up text emails</title>
<updated>2016-11-28T19:40:48+00:00</updated>
<author>
<name>Sean McGivern</name>
<email>sean@gitlab.com</email>
</author>
<published>2016-11-17T22:22:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=854fbbfb07b84394cc952d0ae20b7f29957e6555'/>
<id>854fbbfb07b84394cc952d0ae20b7f29957e6555</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add keyword arguments to truncated_diff method</title>
<updated>2016-11-25T15:23:49+00:00</updated>
<author>
<name>hhoopes</name>
<email>heidih@gmail.com</email>
</author>
<published>2016-08-31T16:18:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a761c59a6bfc4d66649910d01e4c8412bb0b40ec'/>
<id>a761c59a6bfc4d66649910d01e4c8412bb0b40ec</id>
<content type='text'>
* Added keyword arguments to truncated_diff_lines method to allow for using highlighting or not (html templates vs. text)
* Tweaked templates for consistency and format appropriateness
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Added keyword arguments to truncated_diff_lines method to allow for using highlighting or not (html templates vs. text)
* Tweaked templates for consistency and format appropriateness
</pre>
</div>
</content>
</entry>
<entry>
<title>Change diff highlight/truncate for reusability</title>
<updated>2016-11-25T15:23:49+00:00</updated>
<author>
<name>hhoopes</name>
<email>heidih@gmail.com</email>
</author>
<published>2016-08-25T16:38:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=f928dba99b0550cefa7534d7fd5bd1ea16609274'/>
<id>f928dba99b0550cefa7534d7fd5bd1ea16609274</id>
<content type='text'>
Previously the `truncated_diff_lines` method for outputting a discussion diff took in already highlighted lines, which meant it wasn't reuseable for truncating ANY lines. In the way it was used, it also meant that for any email truncation, the whole diff was being highlighted before being truncated, meaning wasted time highlighting lines that wouldn't even be used (granted, they were being memoized, so perhaps this wasn't that great of an issue). I refactored truncation away from highlighting, in order to truncate formatted diffs for text templates in email, using `&gt;`s to designate each line, but otherwise retaining the parsing already done to create `diff_lines`.

Additionally, while notes on merge requests or commits had already been tested, there was no existing test for notes on a diff on an MR or commit. Added mailer tests for such, and a unit test for truncating diff lines.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the `truncated_diff_lines` method for outputting a discussion diff took in already highlighted lines, which meant it wasn't reuseable for truncating ANY lines. In the way it was used, it also meant that for any email truncation, the whole diff was being highlighted before being truncated, meaning wasted time highlighting lines that wouldn't even be used (granted, they were being memoized, so perhaps this wasn't that great of an issue). I refactored truncation away from highlighting, in order to truncate formatted diffs for text templates in email, using `&gt;`s to designate each line, but otherwise retaining the parsing already done to create `diff_lines`.

Additionally, while notes on merge requests or commits had already been tested, there was no existing test for notes on a diff on an MR or commit. Added mailer tests for such, and a unit test for truncating diff lines.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add new template to handle both commit &amp; mr notes</title>
<updated>2016-11-25T15:23:49+00:00</updated>
<author>
<name>hhoopes</name>
<email>heidih@gmail.com</email>
</author>
<published>2016-08-23T05:36:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=24070bac45134c915c13d3e94723a44f59ab4e3a'/>
<id>24070bac45134c915c13d3e94723a44f59ab4e3a</id>
<content type='text'>
Currently comments on commits and merge requests do not require merge request- or commit-specific information, but can use the same template. Rather than change the method which calls the template, I opted to keep the templates separate and create a new template to highlight their identicality, while preserving the option to distinguish them from each other in the future.

Also removed some of the inconsistencies between text and html email versions.

Still needed is a text-only version of git diffs and testing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently comments on commits and merge requests do not require merge request- or commit-specific information, but can use the same template. Rather than change the method which calls the template, I opted to keep the templates separate and create a new template to highlight their identicality, while preserving the option to distinguish them from each other in the future.

Also removed some of the inconsistencies between text and html email versions.

Still needed is a text-only version of git diffs and testing.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add diff hunks to notification emails on MR</title>
<updated>2016-11-25T15:23:49+00:00</updated>
<author>
<name>hhoopes</name>
<email>heidih@gmail.com</email>
</author>
<published>2016-08-17T22:27:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=38ed96e9b1a47dca5aa2590fa9b0ade908337435'/>
<id>38ed96e9b1a47dca5aa2590fa9b0ade908337435</id>
<content type='text'>
Added diff hunks to notification emails of messages on merge requests. This
provides code context to the note. Uses existing template for formatting
a diff for email (from repository push notifications).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added diff hunks to notification emails of messages on merge requests. This
provides code context to the note. Uses existing template for formatting
a diff for email (from repository push notifications).
</pre>
</div>
</content>
</entry>
<entry>
<title>Move partials to links directory, feedback:</title>
<updated>2016-11-22T05:44:25+00:00</updated>
<author>
<name>Lin Jen-Shin</name>
<email>godfat@godfat.org</email>
</author>
<published>2016-11-22T05:44:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=7ec8cc121a9db954a3a0b5c8ebfc05cb471823db'/>
<id>7ec8cc121a9db954a3a0b5c8ebfc05cb471823db</id>
<content type='text'>
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7617#note_18762971
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7617#note_18762971
</pre>
</div>
</content>
</entry>
<entry>
<title>Use local instead of instance variable in partial</title>
<updated>2016-11-22T05:35:05+00:00</updated>
<author>
<name>Lin Jen-Shin</name>
<email>godfat@godfat.org</email>
</author>
<published>2016-11-22T05:35:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a2fb636153669f06083903b473fbe8efc8fe3455'/>
<id>a2fb636153669f06083903b473fbe8efc8fe3455</id>
<content type='text'>
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7617#note_18762989
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7617#note_18762989
</pre>
</div>
</content>
</entry>
<entry>
<title>Use partials instead of simple switch case:</title>
<updated>2016-11-21T17:12:19+00:00</updated>
<author>
<name>Lin Jen-Shin</name>
<email>godfat@godfat.org</email>
</author>
<published>2016-11-21T17:12:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=438f0915e7fbd60e6cc597656e9b25284c52f7de'/>
<id>438f0915e7fbd60e6cc597656e9b25284c52f7de</id>
<content type='text'>
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7617#note_18745137
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7617#note_18745137
</pre>
</div>
</content>
</entry>
</feed>
