Commit Graph
10629 Commits
Author SHA1 Message Date
Dmitriy Zaporozhets 97fd990ecd Merge branch 'fix-email-threading' into 'master'
Fix broken email threading

The email threading support introduced in GitLab CE 6.9 is broken on several popular email clients (including Mail.app and Airmail on Mac OS X).

This MR makes the following changes to improve email threading compatibility:

* Subject of answers to an existing thread begins with `Re: ` (required by Mail.app)
* The recipient of every email in a thread is stable (required by Mail.app ; otherwise it groups emails by sender)
* Send a ‘In-Reply-To’ header along the ‘References’ header (for compatibility with the spec)

In order to do this, these commits:

* Change the `To:` field to `namespace/project` ; the actual receiver is now in the `Cc:` field.
* Introduce the `mail_new_thread` and `mail_answer_thread` methods ; they format the message correctly for threading, and can generate the `Message-ID` automatically from a model instance.
* Refactor the tests to shared behaviors for email threading.

We've been using these patches at @capitainetrain for a few months now ; I just ported them to work nicely with the recent threading commits.
2014-06-10 15:14:16 +00:00
Pierre de La Morinerie de90b572d8 Allow more mail clients to group emails by thread
* send a ‘In-Reply-To’ header along the ‘References’ header
* subject of answers to an existing thread begins with ‘Re: ’

This fixes threading with at least Mail.app and Airmail.
2014-06-10 17:09:15 +02:00
Pierre de La Morinerie 466b768bb3 Send notification emails to the "project", and put people in Cc
This fixes email threading in Mail.app, that doesn't like when a thread
doesn't have stable recipients.

For instance, here is a possible sender-recipient combinations before:

From: A
To: Me
New issue

From: B
To: Me
Reply on new issue

From: A
To: Me
Another reply

Mail.app doesn't see B as a participant to the original email thread,
and decides to break the thread: it will group all messages from A
together, and separately all messages from B.

This commit makes the thread look like this:

From: A
To: gitlab/project
Cc: Me
New issue

From: B
To: gitlab/project
Cc: Me
Reply on new issue

From: A
To: gitlab/project
Cc: Me
Another reply

Mail.app sees a common recipient, and group the thread correctly.
2014-06-10 17:09:15 +02:00
Dmitriy Zaporozhets c4b02642d2 Replace milestone observer with services
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-10 18:07:52 +03:00
Dmitriy Zaporozhets f8ea52c3a0 Remove thread vars usage from API notes and mr's
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-10 17:56:35 +03:00
Marin Jankovski f451a697e0 Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq 2014-06-10 16:56:30 +02:00
Marin Jankovski 3b277364f6 Merge branch 'https-docs' into 'master'
Https docs
2014-06-10 14:55:32 +00:00
Dmitriy Zaporozhets a7be3dfa30 Remove set of thread variables
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-10 17:51:49 +03:00
Sytse Sijbrandij 19a9d9d8f2 Merge pull request #7107 from cirosantilli/clarify-hound-ci-style
Clarify that bbastov is the style of Hound CI 2.
2014-06-10 16:41:56 +02:00
Ciro Santilli 9b346202bc Option B, Rubocop. 2014-06-10 16:34:29 +02:00
Ciro Santilli 123dea35b5 Clarify that bbastov is the style of Hound CI. 2014-06-10 16:34:29 +02:00
Sytse Sijbrandij 5d95fc6726 Link in code sections do not work. 2014-06-10 14:45:03 +02:00
Sytse Sijbrandij 95af7123bb Reformulate some of the https instructions. 2014-06-10 14:43:11 +02:00
Sytse Sijbrandij 772f2f1ac8 Merge branch 'https_documentation' into 'master'
Https in installation document
2014-06-10 12:32:25 +00:00
skv-headless c8e6752414 fix link to notes in merge request diff
http://localhost:3000/gitlabhq/gitlab-ci/merge_requests/1/diffs#note_316
scroll in such links doesn't work. It happens because  on page there are 2 elements with id="note_316" in changes and discussion.
Browser takes first for scroll.
This solution works because changes loads without diffs so tag with id="note_316" just one.
Diffs loads with discussions, but in this case diff tag would be first.
It is dirty but working solution.
2014-06-10 16:23:35 +04:00
skv 20b2102771 notes count in 1 query for mr and commits 2014-06-10 16:10:53 +04:00
Marin Jankovski fa9c39591c Extract gitlab-shell configuration note to gitlab-shell section. 2014-06-10 12:57:50 +02:00
Dmitriy Zaporozhets 476cd0f763 Merge branch 'commit-count' into 'master'
Project commit count for default branch

Currently, the commit count displayed on a project's home page shows the total number of commits on the master branch. This can lead to situations in which a project may have no commits reported or very few if the project workflow does not involve the use of a branch named "master". Since number of commits can be an indicator of project health, showing 0 commits could make it harder to encourage adoption of a project.

This MR alters the repository model's `commit_count` method to return the count for the default branch instead of master.

See issue #299
2014-06-10 09:59:54 +00:00
Marin Jankovski b980ab407e Update installation doc to mention using https. 2014-06-10 11:58:11 +02:00
Dmitriy Zaporozhets 8e5a0b6e92 Merge branch 'master' into 'master'
Fix typo in CHANGELOG
2014-06-10 09:51:45 +00:00
Dmitriy Zaporozhets 1687095db6 Merge branch 'master' of github.com:gitlabhq/gitlabhq 2014-06-10 12:40:28 +03:00
Dmitriy Zaporozhets c4c877e433 Merge branch 'milestone-change-note' into 'master'
Create a note when issue milestone was changed

Part of #1207
2014-06-10 09:40:10 +00:00
Dmitriy Zaporozhets f2353352a2 Test for milestone changed comment
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-10 12:39:48 +03:00
Dmitriy Zaporozhets d205292552 Merge branch 'gitlab_shell_version_file' into 'master'
Gitlab shell version file
2014-06-10 09:35:34 +00:00
Dmitriy Zaporozhets 55440ac9be Make a comment to MR whne milestone was changed
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-10 12:33:17 +03:00
Dmitriy Zaporozhets 525fa6c11b Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-10 12:29:23 +03:00
Dmitriy Zaporozhets 7edf65d1ee Make a system comment when issue milestone changed
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-10 12:25:43 +03:00
Marin Jankovski dca6c490cc Update check task and add to monthly release doc lines about gitlab_shell_version file. 2014-06-10 11:16:47 +02:00
Dmitriy Zaporozhets 03587abca0 Merge branch 'update_installation_doc_python_docutils' into 'master'
Update installation doc with python-docutils

Fixes #1293
2014-06-10 08:43:15 +00:00
Marin Jankovski 3affaa9b98 Add python-docutils to dependency list. 2014-06-10 10:40:28 +02:00
Marin Jankovski 6384344f15 Add gitlab shell version file. 2014-06-10 10:00:12 +02:00
Dmitriy Zaporozhets a93ae9dc61 Merge pull request #7043 from jvanbaarsen/update-installation-dox
We need to change config in step 5
2014-06-09 22:12:45 +03:00
Dmitriy Zaporozhets f055bad513 Merge pull request #7095 from jvanbaarsen/routing-spec-fix
Fix for the broken routing specs
2014-06-09 12:26:46 +03:00
Dmitriy Zaporozhets 9e78fb5bf7 Merge pull request #7094 from jvanbaarsen/project-team-spec-fix
Fixed the project team specs
2014-06-09 12:26:32 +03:00
Dmitriy Zaporozhets 880a86b577 Merge pull request #7093 from jvanbaarsen/spex-fix-notifications-helper
Fixed some broken specs
2014-06-09 12:25:23 +03:00
Jeroen van Baarsen f07f524bad Fix for the broken routing specs
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-06-08 23:42:09 +02:00
Jeroen van Baarsen a705d194fa Fixed the project team specs
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-06-08 23:36:09 +02:00
Jeroen van Baarsen 597836d6cc Fixed some broken specs
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-06-08 23:27:57 +02:00
Michael Grosser 95b786ff79 Fix typo 2014-06-07 16:39:48 +00:00
Dmitriy Zaporozhets 7a89cef601 Merge pull request #7092 from jvanbaarsen/tmp-fix-for-rspec
Temp fix for rspec so the specs are run again
2014-06-07 17:12:17 +03:00
Dmitriy Zaporozhets 4dcf2f1c2d New entries to CHANGELOG
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-07 15:55:31 +03:00
Dmitriy Zaporozhets 9a2fec5273 Merge branch 'public-profile-info' into 'master'
Public profile info

Show small info about your profile being publicly because you joined public project![Screenshot 2014-06-07 15.17.17](https://dev.gitlab.org/uploads/dzaporozhets/gitlabhq/eecf9a0bdc/Screenshot_2014-06-07_15.17.17.png)

Fixes #1321
2014-06-07 12:51:00 +00:00
Dmitriy Zaporozhets bcea7ba331 Merge branch 'namespace-route' into 'master'
Namespace route

Fixes #1312
2014-06-07 12:50:45 +00:00
Dmitriy Zaporozhets 0d13abb1c8 Specify language detection for highlight.js
Because I am tired of CHANGELOG highlighted as sql file :)

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-07 15:46:58 +03:00
Dmitriy Zaporozhets 98d697a1a6 Show small notice at profile page about publicity
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-07 15:18:01 +03:00
Dmitriy Zaporozhets 3dc0bce947 Add users to /:id route
So now when you type site/:username it redirects you to users page.
And if you type site/:groupname it redirects you to group page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-07 15:06:55 +03:00
Jeroen van Baarsen 2838a993da DB cleaner reverted to a known working version
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-06-07 10:09:56 +02:00
Dmitriy Zaporozhets ab094e67ee Merge branch 'faster-diff-rendering' into 'master'
Faster diff rendering

1. Dont render link in separate template but use helper instead
2. Don't build new object but just reuse variables

New note for diff is rendered per each diff line. Such simple improvements gives us 20..100% better performance depends on diff size
2014-06-06 20:43:23 +00:00
Dmitriy Zaporozhets 2aef3b00cf Refactor link to new diff note rendering
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-06 23:15:54 +03:00
Dmitriy Zaporozhets bc6a17a682 Smaller event width for mobile devices
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-06 22:33:52 +03:00