Commit Graph
23735 Commits
Author SHA1 Message Date
Douwe Maan 883bbd61ca Merge branch 'smarter-diverging-commit-cache-flushing' into 'master'
Smarter flushing of branch statistics caches

This basically ensures we only flush caches of branches whenever we really have to. See commit c514f8b850219cd3e5526e73e1d00e6729e2b466 for the details.

cc @joshfng @rspeicher 

See merge request !2769
2016-02-09 17:19:12 +00:00
Robert Speicher c8b6ec47ad Merge remote-tracking branch 'github/master' into 'master' 2016-02-09 12:14:19 -05:00
Robert Speicher 7ea60fbfc8 Merge remote-tracking branch 'dev/master' into 'master' 2016-02-09 12:13:58 -05:00
Douwe Maan d77c3cff36 Merge pull request #10023 from bozaro/smtp-port
Change default smpt port to 465 (default smtps port)
2016-02-09 17:22:47 +01:00
Yorick Peterse 2ce0d06389 Smarter flushing of branch statistics caches
Instead of flushing the behind/ahead counts for all branches upon every
push we now only flush the cache of branches that actually need to have
these statistics recalculated. There are now basically 2 scenarios and
their effects:

1. A user pushes a commit to the default branch, this results in the
   cache being flushed for all branches.
2. A user pushes to a non default branch, this results in _only_ the
   cache for that branch being flushed.

The existing code (Repository#expire_cache) remains backwards compatible
with the previous behaviour, the new behaviour is only applied when a
branch name is passed as an argument. This ensures that when for example
a project is deleted the cache for all branches is flushed.
2016-02-09 17:17:56 +01:00
Douwe Maan a52c5778bb Merge branch 'index_snippet' into 'master'
Add index for snippet's updated_at

@DouweM We are ordering by `updated_at` but there is no index.

cc @yorickpeterse 

See merge request !2768
2016-02-09 16:12:58 +00:00
Douwe Maan 6b0801d4f3 Merge branch 'develop7/add-merge_status-to-merge-request-in-api' into 'master'
Expose MergeRequest#merge_status

_Originally opened at !2478 by @develop7._

- - -

This enables API users to see whether a merge request can be merged without conflicts.

See merge request !2756
2016-02-09 16:01:20 +00:00
Douwe Maan f86ff1b833 Merge branch 'fix/max-attachment-size-setting-validation' 2016-02-09 16:52:20 +01:00
Douwe Maan 706b101f51 Merge branch 'huacnlee/gitlab-ce-feature/option-to-include-author-info-in-mail' into 'master'
Add option to include the sender name in body of Notify email

_Originally opened at !2495 by @huacnlee._

- - -

Fixes #7824.

See merge request !2767
2016-02-09 14:12:56 +00:00
Douwe Maan 80352b783c Merge branch '3kami3/gitlab-ce-root_email' into 'master'
Add an option to supply root email through an environmental variable.

_Originally opened at !2499 by @3kami3._

---

Add an option to supply root email through an environmental variable.

See merge request !2751
2016-02-09 13:55:52 +00:00
Valery Sizov 6c3cd241e8 Add index for snippet's updated_at 2016-02-09 15:10:22 +02:00
Douwe Maan 643c61867c Merge branch 'zj/gitlab-ce-unique-milestone-title-per-project' 2016-02-09 13:15:37 +01:00
Douwe Maan e0f923a172 Merge branch 'add-tooltip-to-stuck-builds' into 'master'
Add a tooltip to the stuck warning build symbol

We want to give people an idea of what is wrong with their build, we do this by
adding a tooltip telling them where they can find more information about their
broken builds.

Fixes #10919

See merge request !2680
2016-02-09 12:12:44 +00:00
Jason LeeandRémy Coutable 9474e36f46 Add option to include the sender name in body of Notify email. fix #7824 2016-02-09 12:58:13 +01:00
Douwe Maan 2837f5c179 Merge branch 'fix/split-ci-jobs' into 'master'
split gitlab-ci builds for ruby 2.1

Added breakdown of builds for Ruby 2.1 in .gitlab-ci.yml config file.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/13252

See merge request !2746
2016-02-09 11:52:24 +00:00
Douwe Maan aacde42d55 Merge branch 'rs-broadcast-markdown' into 'master'
Allow limited Markdown in Broadcast Messages

Closes #11853

See merge request !2695
2016-02-09 11:44:08 +00:00
Grzegorz Bizon dd3b9feafa Add Changelog entry for new maximum attachment size validator 2016-02-09 12:18:33 +01:00
Grzegorz Bizon 1cbc75b53c Validate maximum attachment size in application settings
`max_attachment_size` in `ApplicationSetting` should be present,
only integers greater than zero are valid.

Closes #13188
2016-02-09 12:11:16 +01:00
Douwe Maan ceb342c716 Merge branch 'increase_import_timeout' into 'master'
Increase project import timeout from 4 minutes to 15 minutes

Many users were experiencing timeouts when we only allowed
4 minutes before a timeout. A 15 minute timeout is more
than reasonable and prevents us from having to add a
configuration for this.

Fixes gitlab-org/gitlab-ee#246

## Import screenshot

![Screen_Shot_2016-02-04_at_1.45.20_PM](/uploads/d9d71ec953afae31e6fbe54a8932b945/Screen_Shot_2016-02-04_at_1.45.20_PM.png)


See merge request !2717
2016-02-09 10:41:11 +00:00
Douwe Maan a5c2e7a486 Merge branch 'fix/atom-url-issue' into 'master'
do not rename .aToM but only .atom projects in migration

Sorry @DouweM forgot to add this.

See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2651/diffs#bc35672f73f4ee025132aee428f383acdf0f755e_0_51

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/3699

See merge request !2712
2016-02-09 10:39:20 +00:00
Valery Sizov 16ff8858c4 update changelog 2016-02-09 12:05:47 +02:00
Valery Sizov e0d7d2e9b4 Merge branch 'snippet_search_refactoring' 2016-02-09 12:04:59 +02:00
Yorick Peterse 366f617ecf Merge branch 'caching-repository-git-operations' into 'master'
See merge request !2752
2016-02-09 09:39:20 +00:00
Kamil Trzciński 7383453b78 Merge branch 'ci/improve-ci-build-api' into 'master'
Improve CI builds API specs

This modifies a CI Runners Builds API, to improve performance, and add few missing examples.
Extracted from !2560 (cherry-picked + extended).

cc @ayufan 

See merge request !2698
2016-02-09 08:50:49 +00:00
Artem V. Navrotskiy e080fdad6e Change default smpt port to 465 (default smtps port) 2016-02-09 07:30:06 +03:00
Robert Speicher 76fbb42a47 Merge branch 'backup-database-timeout-fix' into 'master'
Fix timeout issue for rake task gitlab:backup:create

This is a fix for a database timeout which can occur when the backup
create task is taking very long (1-2 hours).
It seems that ActiveRecord is loosing the connection after a hour
idleness and need to be reconnected before use.

See merge request !2757
2016-02-08 23:50:10 +00:00
Robert Speicher 201fb4c7e3 Merge branch 'ci-permissions' into 'master'
Limit guest access to builds

Closes https://dev.gitlab.org/gitlab/gitlabhq/issues/2646

See merge request !1942
2016-02-08 23:33:44 +00:00
Robert Speicher 16abacb1f0 Merge branch 'huacnlee/current-settings-autoload-bug-in-development' into 'master'
Fix CurrentSettings autoload bug in development

_Originally opened at !2526 by @huacnlee._

- - -

In development env, when we changed any file hit Rails reload, it will failed with this message:

```
A copy of Gitlab::CurrentSettings has been removed from the module tree but is still active
```

See merge request !2753
2016-02-08 22:58:00 +00:00
Robert Schilling cd47897180 Merge branch 'master' into 'master'
Fix grammar in installation requirements.

Fixes #13274

See merge request !2759
2016-02-08 21:23:24 +00:00
Paul Johnson 910e5fd217 Fix grammar in installation requirements.
Fixes #13274
2016-02-08 22:03:10 +01:00
Rémy Coutable 555b1a621a Merge branch 'fix-init' into 'master'
Fixed init.d script not working on OS X

-s flag of su doesn't work correctly on OS X, logging in as the user
and not running the requested command. By moving the bash shell init
inside the su command we avoid the issue

Fixes Issue #3309 

See merge request !1728
2016-02-08 17:30:10 +00:00
3kami3andRémy Coutable cdcedd5b26 Add an option to supply root email through an environmental variable. 2016-02-08 18:26:29 +01:00
Jacob Vosmaer 4667c169e7 Merge branch 'issues_12693' into 'master'
suppress error in init-script while determining canonical path of gitlab_workhorse_dir

fixes #12693 
fixes #12954

See merge request !2697
2016-02-08 16:42:59 +00:00
Jeroen Nijhof 897f18032a Make sure there is a connection before using ActiveRecord 2016-02-08 17:31:24 +01:00
Rémy Coutable f6a666bdc2 Add an API spec for MergeRequest#merge_status and properly document this resource 2016-02-08 17:18:44 +01:00
Andrei DziahelandRémy Coutable 86d15c1e9a Expose MergeRequest::merge_status to API 2016-02-08 17:04:58 +01:00
ritave 1fab3979b1 Fixed init.d script not working on OS X
-s flag of su doesn't work correctly on some systems, loging in the user
and not running the requested command. By moving the bash shell init
inside the su command we avoid the issue
2016-02-08 16:56:07 +01:00
Yorick Peterse 9a99d8e49d Cache various Repository Git operations
This caches the output of the following methods:

* Repository#empty?
* Repository#has_visible_content?
* Repository#root_ref

The cache for Repository#has_visible_content? is flushed whenever a
commit is pushed to a new branch or an existing branch is removed.
The cache for Repository#root_ref is only flushed whenever a user
changes the default branch of a project. The cache for Repository#empty?
is never explicitly flushed as there's no need for it.
2016-02-08 15:40:19 +01:00
Jason LeeandRémy Coutable e4d276816a Fix CurrentSettings autoload bug in development.
Error: A copy of Gitlab::CurrentSettings has been removed from the module tree but is still active
2016-02-08 15:28:48 +01:00
Harald Spaethe 2694513cfe suppress only errors in init-script while determining canonical path of gitlab_workhorse_dir 2016-02-08 14:58:49 +01:00
Rémy Coutable 9fdd605fd2 Merge branch 'kkm/gitlab-ce-user-diff-view-pref-cookie' into 'master'
Remember user's inline/tabular diff view preference in a cookie

_Originally opened at !1677 by @kkm._

---

As per #3071, some users (we have a local EE installation) prefer 2-column view in diff. In this MR I add an implementation for this feature, using a cookie.

Fixes #3071.

See merge request !2723
2016-02-08 13:34:58 +00:00
Zeger-Jan van de Weg 308c967d0d Validate uniqueness of milestone title per project
Fixes #3903
2016-02-08 12:45:32 +01:00
Achilleas Pipinellis 05519b554a Merge branch 'contributing' into 'master'
Rearrange some sections in CONTRIBUTING.md

- Move 'Merge request description format' and
  'Contribution acceptance criteria' under 'Merge requests'
- Link to doc_styleguide where appropriate
- Provide markdown template for merge requests

See merge request !2748
2016-02-08 10:24:18 +00:00
Achilleas Pipinellis e02f29b59d Rearrange some sections in CONTRIBUTING.md
[ci skip]
2016-02-08 12:12:29 +02:00
James Lopez d7e97a36d2 split gitlab-ci builds for ruby 2.1 2016-02-08 10:36:42 +01:00
Achilleas Pipinellis 7322c5a05b Merge branch 'contributing_toc' into 'master'
Add table of contents in CONTRIBUTING.md



See merge request !2745
2016-02-08 09:25:46 +00:00
Achilleas Pipinellis 7fde90c25b Add table of contents in CONTRIBUTING.md 2016-02-08 11:23:30 +02:00
Jeroen van Baarsen d38c17739e Add a tooltip to the stuck warning build symbol
We want to give people an idea of what is wrong with their build, we do this by
adding a tooltip telling them where they can find more information about their
broken builds.

Fixes #10919

Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2016-02-08 08:16:06 +01:00
Achilleas Pipinellis 66fe68ac7c Merge branch 'jira_when_ce' into 'master'
Clarify when JIRA service was backported to CE



See merge request !2744
2016-02-07 22:42:51 +00:00
Achilleas Pipinellis ed093f1ef0 Clarify when JIRA service was backported to CE
[ci skip]
2016-02-08 00:37:45 +02:00