Commit Graph
18410 Commits
Author SHA1 Message Date
Robert Speicher 2d72efcd9f Add count to Themes and ColorSchemes 2015-08-26 11:30:38 -07:00
Robert Speicher 6d43308b5a Add Gitlab::Themes.for_user 2015-08-26 11:30:11 -07:00
Robert Speicher d6a145d4b0 Fix two more failing specs 2015-08-25 16:26:20 -07:00
Robert Speicher c401543d02 Fix failing spec 2015-08-25 15:57:55 -07:00
Robert Speicher 2c3e42e4a4 Remove user_color_scheme_class
Instead of rendering this value server-side, we use Javascript and Gon
to apply the user's color scheme (or the default) to any syntax
highlighted code blocks.

This will make it easier to cache these blocks in the future because
they're no longer state-dependent.
2015-08-25 15:32:38 -07:00
Robert Speicher 59180c4f5a Add highlight_word style definition to each color scheme
Now we don't need to override the user color scheme on search results.
They'll look good with any of them.
2015-08-25 15:32:38 -07:00
Robert Speicher 4344b8d2d4 Add Gitlab::ColorSchemes module
Very similar to Gitlab::Theme, this contains all of the definitions for
our syntax highlighting schemes.
2015-08-25 15:32:38 -07:00
Dmitriy Zaporozhets 429c0d1491 Merge branch 'fix-reload-with-full-diff-in-compare-branch' into 'master'
Fix "Reload with full diff" URL button in compare branch view

This button worked when viewing merge requests because the JavaScript
stripped the .html in the Ajax request. However, it left the .html suffix
in the compare branch view.

See merge request !1195
2015-08-25 14:13:05 +00:00
Dmitriy Zaporozhets 1c2ce6efde Merge branch 'improve-abuse-reports' into 'master'
Improve abuse reports management

* Link to user profile instead of user admin page
* One button for remove user and report
* Remove user and report without page reloading

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

See merge request !1196
2015-08-25 10:21:22 +00:00
Dmitriy Zaporozhets c1b490d6ef Merge branch 'handle-smtp-input-errors' into 'master'
Gracefully handle SMTP user input errors (e.g. incorrect email addresses) to prevent Sidekiq retries

### What does this MR do?

This MR gracefully handles SMTP input errors (e.g. incorrect or invalid e-mail addresses) to prevent these types of exceptions from causing Sidekiq to retry the task. If these specific exceptions occur, they will be logged, and the e-mail will be dropped from the queue.

### Why was this MR needed?

If you include an author that has a misspelled e-mail address, Sidekiq will keep sending e-mail to all the recipients even if they have already received the e-mail. The only way to recover is to clear the Sidekiq queue.

Note that other exceptions can still be thrown (e.g. `IOError`, `Net::SMTPAuthenticationError`, `Net::SMTPServerBusy`, `Net::SMTPUnknownError`, and `TimeoutError`). If the worker encounters these, Sidekiq should retry the task.

### What are the relevant issue numbers?

Closes https://github.com/gitlabhq/gitlabhq/issues/9560

See merge request !1163
2015-08-25 09:23:43 +00:00
Dmitriy Zaporozhets 13f8fc9784 Fix remove report button
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-08-25 10:57:56 +02:00
Dmitriy Zaporozhets e02b7bf443 Improve abuse reports management
* Link to user profile instead of user admin page
* One button for remove user and report
* Remove user and report with page reloading

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-08-25 10:52:10 +02:00
Dmitriy Zaporozhets c06cf2bde6 Merge branch 'upgrade-browser-gem' into 'master'
Upgrade browser gem to 1.0.0 to avoid warning in IE11 compatibilty mode

GitLab currently displays the "outdated browser" message if users run Internet Explorer 11 in Compatibility Mode. @fnando [updated the browser gem](https://github.com/fnando/browser/pull/168) to use IE's Trident version to determine the "true" version of IE11.

Closes #2271

See merge request !1188
2015-08-25 08:05:30 +00:00
Stan Hu 3bee4a6712 Fix "Reload with full diff" URL button in compare branch view
This button worked when viewing merge requests because the JavaScript
stripped the .html in the Ajax request. However, it left the .html suffix
in the compare branch view.
2015-08-24 23:35:26 -07:00
Robert Speicher c52fe24c36 Merge branch 'reply-by-email-improvements' into 'master'
Ignore empty incoming messages (Reply by email)

We should also update mail_room when https://github.com/tpitale/mail_room/pull/35 goes in, but that can wait a bit.

See merge request !1190
2015-08-24 21:56:07 +00:00
Robert Speicher f9ac553db1 Merge branch 'rs-changelog-update' into 'master'
Move changelog entry to 7.14.1

[ci skip]

See merge request !1192
2015-08-24 19:31:32 +00:00
Robert Speicher 451873963a Move changelog entry to 7.14.1
[ci skip]
2015-08-24 12:28:46 -07:00
Douwe Maan feab3664f5 Merge branch 'rs-7-14-1-changelog' into 'master'
Move full_host fix changelog entry to 7.14.1

[ci skip]

See merge request !1191
2015-08-24 19:20:25 +00:00
Robert Speicher eeac2aafbc Move full_host fix changelog entry to 7.14.1
[ci skip]
2015-08-24 12:07:14 -07:00
Robert Speicher dd215d7904 Merge branch 'fix-relative-url-omniauth' into 'master'
Only include base URL in OmniAuth full_host parameter

Closes #2335

See merge request !1187
2015-08-24 19:03:53 +00:00
Douwe Maan 2088880383 Ignore empty incoming messages. 2015-08-24 10:57:35 -07:00
Douwe Maan e449426a4e Merge branch 'fix-error-500-groups-with-avatar' into 'master'
Fix Error 500 in API when accessing a group that has an avatar

Closes #2340

See merge request !1189
2015-08-24 15:23:10 +00:00
Stan Hu 19f478e00d Fix Error 500 in API when accessing a group that has an avatar
Closes #2340
2015-08-24 07:46:06 -07:00
Dmitriy Zaporozhets add099b024 Merge branch 'milestone_search' into 'master'
Ability to search milestones

https://dev.gitlab.org/gitlab/gitlabhq/issues/2473

See merge request !1158
2015-08-24 12:53:39 +00:00
Valery Sizov 56527b63e8 Ability to search milestones 2015-08-24 13:59:01 +03:00
Stan Hu 6318a76311 Upgrade browser gem to 1.0.0 to avoid warning in IE11 compatibilty mode
Closes #2271
2015-08-23 16:52:29 -07:00
Douwe Maan 24b282aeea Merge branch 'clear-and-retry-bitbucket-access-token' into 'master'
Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLab and request them each session

Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLab
and request them each session. Pass these tokens to the project import data.

This prevents the need to encrypt these tokens and clear them in case they
expire or get revoked.

For example, if you deleted and re-created OAuth2 keys for Bitbucket, you would get
an Error 500 with no way to recover:

```
Started GET "/import/bitbucket/status" for x.x.x.x at 2015-08-07 05:24:10 +0000
Processing by Import::BitbucketController#status as HTML
Completed 500 Internal Server Error in 607ms (ActiveRecord: 2.3ms)

NameError (uninitialized constant Import::BitbucketController::Unauthorized):
  app/controllers/import/bitbucket_controller.rb:77:in `rescue in go_to_bitbucket_for_permissions'
  app/controllers/import/bitbucket_controller.rb:74:in `go_to_bitbucket_for_permissions'
  app/controllers/import/bitbucket_controller.rb:86:in `bitbucket_unauthorized'
```
Closes #1871

See merge request !1112
2015-08-23 20:40:36 +00:00
Stan Hu 4016a4577c Only include base URL in OmniAuth full_host parameter
Closes #2335
2015-08-23 13:31:02 -07:00
Stan Hu ed1d4fa477 Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLab
and request them each session. Pass these tokens to the project import data.

This prevents the need to encrypt these tokens and clear them in case they
expire or get revoked.

For example, if you deleted and re-created OAuth2 keys for Bitbucket, you would get
an Error 500 with no way to recover:

```
Started GET "/import/bitbucket/status" for x.x.x.x at 2015-08-07 05:24:10 +0000
Processing by Import::BitbucketController#status as HTML
Completed 500 Internal Server Error in 607ms (ActiveRecord: 2.3ms)

NameError (uninitialized constant Import::BitbucketController::Unauthorized):
  app/controllers/import/bitbucket_controller.rb:77:in `rescue in go_to_bitbucket_for_permissions'
  app/controllers/import/bitbucket_controller.rb:74:in `go_to_bitbucket_for_permissions'
  app/controllers/import/bitbucket_controller.rb:86:in `bitbucket_unauthorized'
```

Closes #1871
2015-08-23 09:23:44 -07:00
Stan Hu 97cc91d21d 7.14.0 is released 2015-08-23 05:44:49 -07:00
Sytse Sijbrandij cddf03f717 Specify the branch name of the blog post to prevent the use of spaces. 2015-08-22 19:11:02 +00:00
Stan Hu b85754e319 Merge branch 'master' into 'master'
"Fixes #xxxx" now shows up in the issue log for non-default branches. #2190

I don't understand why the commits containing "closing references" (like `closes #xxxx`) were not mentioned in the corresponding issues **when pushed to a non-default branch**.

So I tried to discover how it works -- hence learning Ruby! I don't expect that MR to pass, this is my very first attempt of contribution.

**Update:** my modifications are now done. To sum up:
- when a commit with a reference `fixes #xxxx` is pushed to a non-default branch, a cross-reference to that issue will be created;
- when that same commit is pushed to a default branch, no cross-reference will be created because a message `This commit closes issue` will be emitted.
- I also refined some of the existing tests and added 2 tests on the new behavior on non-default branches.

See merge request !1150
2015-08-22 15:50:10 +00:00
Maël Valais a9e409179b Create cross-reference for closing references on commits pushed to non-default branches.
I also revamped the tests on "closing reference commits" (= "Fixes #xxxx" for example).
Now, there are two different contexts:
- when the commits with "closing reference" are pushed to the default branch,
- when the commits with "closing reference" are pushed to a non-default branch.

Closes gitlab-org/gitlab-ce#2190.
2015-08-22 16:49:09 +02:00
Robert Speicher f0bdf7f810 Merge branch 'reply-by-email' into 'master'
Reply by email

Fixes #1360.

It's far from done, but _it works_.

See merge request !1173
2015-08-22 00:00:08 +00:00
Douwe Maan 15fc7bd613 No HTML-only email please 2015-08-21 16:09:55 -07:00
Douwe Maan 0daa21ed8c Merge branch 'fix-email-autocomplete' into 'master'
Fix bug preventing invite by e-mail

This was broken in 70f5291808 as a result of introducing the ability to filter by current user.

Closes #2320

See merge request !1181
2015-08-21 22:25:59 +00:00
Douwe Maan 3abb356dd2 Add development documentation for real. 2015-08-21 15:13:22 -07:00
Douwe Maan 0366655311 Fix check task for development. 2015-08-21 15:06:04 -07:00
Douwe Maan 50baa1fdd1 Add development section to doc. 2015-08-21 15:03:16 -07:00
Stan Hu 577df6b8ca List the current user first in issuable dropdowns 2015-08-21 14:27:21 -07:00
Stan Hu 3715a0f29b Fix bug preventing invite by e-mail
This was broken in 70f5291808 as a result of introducing the ability to filter by current user.

Closes #2320
2015-08-21 13:47:56 -07:00
Douwe Maan 1cfc4af31e Merge branch 'rs-dev-issue-2550' into 'master'
Remove trailing HTML entities from non-Rinku autolinks as well.

Addresses internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2550

See merge request !1179
2015-08-21 18:48:18 +00:00
Robert Speicher d0d435a22e Merge branch 'fix-mr-create-permissions' into 'master'
Check permissions on target project in merge request create service.

See merge request !1183
2015-08-21 18:02:16 +00:00
Douwe Maan 69708dab9f Block blocked users from replying to threads by email. 2015-08-21 10:14:45 -07:00
Douwe Maan 414533ca48 Check permissions on target project in merge request create service. 2015-08-21 09:47:39 -07:00
Robert Speicher 1346756f74 Merge branch 'fix-fork-mr-labels' into 'master'
Fix bug where non-project members of the target project could set labels on new merge requests.

Fixes #2292.

See merge request !1180
2015-08-21 16:37:09 +00:00
Robert Speicher f5b3bf84ad Merge branch 'fix-backup-restore' into 'master'
Do not delete the SQL dump too early

The change in baa157926d broke backup
restore fucnctionality. This would not lead to data loss, but it
prevented the restore script from working. This bug exists only in
7.14.0 release candidate versions, not in 7.13.

Reported in https://github.com/gitlabhq/gitlabhq/issues/9571 .

See merge request !1182
2015-08-21 16:10:12 +00:00
Dmitriy Zaporozhets 9bd6c41a02 Merge branch 'commit-image-branch' into 'master'
Fixed JS issue with diff image loading

Fixes #1323

Whilst I couldn't reproduce the error locally, I did manage to get the same JS error message that was in the live env.

See merge request !463
2015-08-21 15:11:09 +00:00
Dmitriy Zaporozhets 7e51ec4f04 Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2015-08-21 16:55:41 +02:00
Dmitriy Zaporozhets d43d7ffd6f Merge branch 'hide-recent-push' into 'master'
Only show recent push event if the branch still exists or a recent merge request has not been created

Closes #2277

See merge request !1167
2015-08-21 14:54:53 +00:00