Commit Graph

38448 Commits

Author SHA1 Message Date
Yorick Peterse 1a7ba2a5e8
Merge remote-tracking branch 'origin/sh-flush-cache-after-import' 2016-10-24 12:00:08 +02:00
Yorick Peterse 352ab2fac6 Merge branch 'sh-fix-mailroom-config' into 'master'
Fix reply-by-email not working due to queue name mismatch

See merge request !7068
2016-10-24 09:50:13 +00:00
Fatih Acet 501bd94de0 Merge branch '23557-remove-extra-line-for-empty-issue-description' into 'master'
removes extra line for empty description

## What does this MR do?
This MR removes an odd line for empty description 
## Are there points in the code the reviewer needs to double check?
Not necessary
## Why was this MR needed?
Improve UX 
## Screenshots (if relevant)
**Before**
![ss__2016-10-19_at_11.04.45_PM](/uploads/12b376c772115c2e5eef2fe0c0d1992f/ss__2016-10-19_at_11.04.45_PM.png)
**After**
![edi](/uploads/89fea59ef5267974af4cbe1064dc521a/edi.png)
## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [ ] Added for this feature/bug
  - [ ] All builds are passing
- [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?


Closes #23557 #23695

See merge request !7045
2016-10-24 09:21:21 +00:00
Nur Rony 2fc2be9b7b removes extra line for empty milestone description 2016-10-24 13:58:46 +06:00
Rémy Coutable 9af0dd5ee4 Merge branch 'document-absolute-links' into 'master'
Document link syntax introduced by !5586.

See merge request !7049
2016-10-24 07:57:10 +00:00
Nur Rony 884d49ea99 code formatting corrected 2016-10-24 13:02:15 +06:00
Nur Rony fd28ff5c04 Merge branch 'master' into 23557-remove-extra-line-for-empty-issue-description
* master: (22 commits)
  Fix status code expectation
  Stop clearing the database cache on rake cache:clear
  Fix error in generating labels
  Fix bug where e-mails were not being sent out via Sidekiq
  Fix documents and comments on Build API `scope`. #23146 #19131
  Re-organize queues to use for Sidekiq
  Fix wrong endpoint in api/users documentation, fix same typo in spec describe blocks
  Update CHANGELOG
  Fix object data to be sent to fetch analytics data
  Fixed compare ellipsis messing with layout
  Change "Group#web_url" to return "/groups/twitter" rather than "/twitter".
  fix font weight of project feature settings
  Add hover to trash icon in notes
  Ensure custom provider tab labels don't break layout.
  Fixed issue when images are loading it would push off the tabs
  Fixed issues with sticky mr tabs & sidebar
  Refactor and add new functionality to CI yaml reference
  Ignore external issues when bulk assigning issues to author of merge request.
  Changed gitlab-shell version to avoid warning when precompiling the assets.
  Grammar fixes in docs
  ...
2016-10-24 12:52:29 +06:00
Stan Hu 59ed1d3cbb Fix reply-by-email not working due to queue name mismatch
mail_room was configured to deliver mail to the `incoming_email`
queue while `EmailReceiveWorker` was reading the `email_receiver`
queue. Adds a migration that repeats the work of a previous
migration to ensure all mails that wound up in the old
queue get processed.

Closes #23689
2016-10-23 21:35:52 -07:00
Stan Hu 8a3710f452 Remove duplicate code in repository cache clearing 2016-10-23 10:45:08 -07:00
Stan Hu 4ea1973f59 Expire and build repository cache after project import
After a project import, there's a chance that the UI checks the
branch count before the project has been imported. This change
causes more of the keys to be flushed after an import and forces
a rebuild of the repository cache.

Closes #13518
2016-10-23 10:31:18 -07:00
Rémy Coutable a98ad03ba1 Merge branch 'sh-fix-broken-label-controller' into 'master'
Fix error in generating labels

Attempting to generate default set of labels would result in
an error:

ArgumentError: wrong number of arguments (given 1, expected 0)

Closes #23649

See merge request !7055
2016-10-22 12:52:02 +00:00
Yorick Peterse b89ae8305b Merge branch '23653-dont-clear-db-cache-every-release' into 'master'
Stop clearing the database cache on rake cache:clear

See merge request !7056
2016-10-22 12:44:53 +00:00
Rémy Coutable fc03440650 Merge branch '23146_19131_build-api_scope-doc' into 'master'
Fix documents and comments on Build API `scope`

Fixes #23146
Fixes #19131

See merge request !7044
2016-10-22 11:51:01 +00:00
Rémy Coutable e696896487
Fix status code expectation
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-22 13:46:23 +02:00
Nick Thomas c0eb2cbbb4 Stop clearing the database cache on rake cache:clear 2016-10-22 12:42:19 +01:00
Rémy Coutable e4937e2800 Merge branch 'patch-3' into 'master'
Fix docker.sock reference in config.toml

## What does this MR do?

`config.toml` sample did not correctly represent the `/var/run/docker.sock` mapping, causing it to be created as a volume instead.

## Why was this MR needed?

It was broken.

See merge request !5172
2016-10-22 11:42:02 +00:00
Jacob Schatz 1eb4f20ca1 Merge branch 'ldap-login-styles' into 'master'
Support LDAP login tabs wrapping to second line (and a few other login fixes)

## What does this MR do?

Fixes some regressions introduced for customers with multiple servers configured for login and/or long label names.

Also, improves styling for the login page on small screens. 

## Are there points in the code the reviewer needs to double check?

## Why was this MR needed?

See the bad behavior here: https://gitlab.com/gitlab-org/gitlab-ce/issues/23435#note_17117893

## Screenshots (if relevant)

![2016-10-19_16.34.00](/uploads/2816545b4db60ddb6430c458c2c41582/2016-10-19_16.34.00.gif)

![2016-10-19_18.07.26](/uploads/53340d5894db6441cc82b182fb47cf18/2016-10-19_18.07.26.gif)

## Does this MR meet the acceptance criteria?

- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] All builds are passing
- [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?
https://gitlab.com/gitlab-org/gitlab-ce/issues/23435#note_17117677

See merge request !6993
2016-10-22 11:29:03 +00:00
Fatih Acet 7dd21a8bfd Merge branch '22892-cycle-analytics-date-filter-is-not-working' into 'master'
Resolve "Cycle analytics date filter is not working"

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

See merge request !6906
2016-10-22 09:39:55 +00:00
Achilleas Pipinellis a970f8c65d Merge branch 'docs/dynamic-envs-yaml' into 'master'
Refactor and add new environment functionality to CI yaml reference

## What does this MR do?

Add new `environment` functionality to the yaml reference.

## What are the relevant issue numbers?

Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/23484

See merge request !7026
2016-10-22 09:22:28 +00:00
Stan Hu 0890aeb61a Fix error in generating labels
Attempting to generate default set of labels would result in
an error:

ArgumentError: wrong number of arguments (given 1, expected 0)

Closes #23649
2016-10-22 02:16:21 -07:00
Stan Hu 4ae57e0b37 Merge branch 'sh-add-mailers-to-sidekiq-config' into 'master'
Fix bug where e-mails were not being sent out via Sidekiq

Fix bug where e-mails were not being sent out via Sidekiq

By default, ActionMailer uses the "mailers" queue, but this entry
was not included in the list of queues for Sidekiq to use.

For more details:

* https://github.com/plataformatec/devise/wiki/How-To:-Send-devise-emails-in-background-(Resque,-Sidekiq-and-Delayed::Job)
* http://guides.rubyonrails.org/active_job_basics.html

See merge request !7053
2016-10-22 05:51:09 +00:00
Stan Hu d79c41e762 Fix bug where e-mails were not being sent out via Sidekiq
By default, ActionMailer uses the "mailers" queue, but this entry
was not included in the list of queues for Sidekiq to use.

For more details:

* https://github.com/plataformatec/devise/wiki/How-To:-Send-devise-emails-in-background-(Resque,-Sidekiq-and-Delayed::Job)
* http://guides.rubyonrails.org/active_job_basics.html
2016-10-21 22:28:39 -07:00
Rémy Coutable 77ea6909fa Merge branch 'fix-example-in-api-documentation' into 'master'
Fix wrong example in api/users documentation

## What does this MR do?

Just a small typo fix in API docs. While greping for this typo I also found couple more places with same mistake and included them in the MR too.

See merge request !7043
2016-10-22 03:22:47 +00:00
Winnie 94ceadb4a3 Document link syntax introduced by !5586 2016-10-21 20:18:03 +00:00
Annabel Dunstone Gray baec0353df Merge branch 'project-settings--features-weight' into 'master'
fix font weight of project feature settings

## What does this MR do?
Fixes font weight for project feature settings

## Screenshots (if relevant)
Before:
![Screen_Shot_2016-10-14_at_9.49.06_AM](/uploads/76e1f91cd8f6fcf9197a51215b497e4a/Screen_Shot_2016-10-14_at_9.49.06_AM.png)

After:
![Screen_Shot_2016-10-14_at_11.43.44_AM](/uploads/ecb378400d787c50dba2c3833bb72964/Screen_Shot_2016-10-14_at_11.43.44_AM.png)

## Does this MR meet the acceptance criteria?

- [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [ ] API support added
- Tests
  - [ ] Added for this feature/bug
  - [ ] All builds are passing
- [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [ ] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?
https://gitlab.com/gitlab-org/gitlab-ce/issues/19734#note_16964612

See merge request !6902
2016-10-21 19:45:19 +00:00
Lemures Lemniscati 3a29ea9da0 Fix documents and comments on Build API `scope`. #23146 #19131 2016-10-22 03:07:26 +09:00
Douwe Maan 083f9f8c0a Merge branch 'separate-sidekiq-queues' into 'master'
Use separate queues for all Sidekiq workers

## What does this MR do?

This MR updates all workers so that they (mostly) use their own Sidekiq queues. This in turn allows us to monitor queues more accurately and in the future impose queue specific throttles, limits, etc.

This is a critical part we need in 8.13, despite it being so close to release day.

See https://gitlab.com/gitlab-org/gitlab-ce/issues/23370 for more information.

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/23370

See merge request !7006
2016-10-21 17:42:50 +00:00
Nur Rony 0ca0697a9c adds entry in CHANGELOG 2016-10-21 23:21:31 +06:00
Nur Rony e32858e773 removes extra line for empty issue description 2016-10-21 23:08:44 +06:00
Rémy Coutable 9cf5b1cc99 Merge branch 'patch-6' into 'master'
Grammar fixes in docs

Some minor grammar fixes in a page in the docs

See merge request !6645
2016-10-21 16:48:44 +00:00
Rémy Coutable 4abb495f45 Merge branch 'patch-6' into 'master'
Changed gitlab-shell version to avoid warning when precompiling the assets.

## What does this MR do?

Changes installation instructions from source to install v3.6.1 of gitlab-shell to avoid a pre-compile warning on gitlab.

See merge request !6747
2016-10-21 16:47:58 +00:00
Yorick Peterse 97731760d7
Re-organize queues to use for Sidekiq
Dumping too many jobs in the same queue (e.g. the "default" queue) is a
dangerous setup. Jobs that take a long time to process can effectively
block any other work from being performed given there are enough of
these jobs.

Furthermore it becomes harder to monitor the jobs as a single queue
could contain jobs for different workers. In such a setup the only
reliable way of getting counts per job is to iterate over all jobs in a
queue, which is a rather time consuming process.

By using separate queues for various workers we have better control over
throughput, we can add weight to queues, and we can monitor queues
better. Some workers still use the same queue whenever their work is
related. For example, the various CI pipeline workers use the same
"pipeline" queue.

This commit includes a Rails migration that moves Sidekiq jobs from the
old queues to the new ones. This migration also takes care of doing the
inverse if ever needed. This does require downtime as otherwise new jobs
could be scheduled in the old queues after this migration completes.

This commit also includes an RSpec test that blacklists the use of the
"default" queue and ensures cron workers use the "cronjob" queue.

Fixes gitlab-org/gitlab-ce#23370
2016-10-21 18:17:07 +02:00
Sean McGivern 6ff3625f63 Merge branch 'fix-bulk-assign-issues-for-external-issues' into 'master'
Ignore external issues when bulk assigning issues to author of merge request.

Fixes #23552

See merge request !7020
2016-10-21 15:15:33 +00:00
Sean McGivern 3fd3f85bc0 Merge branch 'adam-fix-group-web-url' into 'master'
Change "Group#web_url" to return "/groups/twitter" rather than "/twitter"

Fixes #23527

See merge request !7035
2016-10-21 15:14:08 +00:00
Annabel Dunstone Gray 4b2cc8dc96 Merge branch 'bugfix/add_hover_to_trash_icon' into 'master'
Add hover to trash icon in notes

## What does this MR do?

Adds hover to trash icon in notes (fixes a ~regression).

## Screenshots (if relevant)

### Before
![Peek_2016-10-20_16-02](/uploads/5b7b94e0a0a3cd7c33d60084ff364f42/Peek_2016-10-20_16-02.gif)

### After
![Peek_2016-10-20_16-01](/uploads/b365eea616efdb7de98900e2925a4813/Peek_2016-10-20_16-01.gif)

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?

Closes #23487

See merge request !7008
2016-10-21 15:11:04 +00:00
Airat Shigapov b939529c2a
Fix wrong endpoint in api/users documentation, fix same typo in spec describe blocks 2016-10-21 18:05:36 +03:00
Fatih Acet 0ba365f745 Merge branch 'compare-ellipsis-line' into 'master'
Fixed compare ellipsis messing with layout

## What does this MR do?

Fixed a bug where the ellipsis would cause the form to mess with the layout.

## Screenshots (if relevant)

![Screen_Shot_2016-10-21_at_13.45.37](/uploads/d1dc18d294dace599b8036541b70ccaf/Screen_Shot_2016-10-21_at_13.45.37.png)

See merge request !7042
2016-10-21 15:03:39 +00:00
Rémy Coutable 434ad2b927 Merge branch 'runners-paginate' into 'master'
Fixes error 500 on Runners page (`ActionView::Template::Error (Missing partial kaminari/_paginator`)

Originally reported downstream: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819903

See merge request !5701
2016-10-21 14:58:26 +00:00
Fatih Acet 3a6a646550 Merge branch 'fixed-mr-tabs-fixes' into 'master'
Fixed issues with sticky mr tabs & sidebar

## What does this MR do?

- Fixes an issue where opening the sidebar wouldn't update the merge request tabs width & positioning
- Fixes issues when resizing the browser

Rather than updating the JS to react to different methods, this way allows the CSS to keep control of the positioning & sizes.

## What are the relevant issue numbers?

Closes #23504

See merge request !6990
2016-10-21 14:54:30 +00:00
Sean McGivern 6c09fbd889 Merge branch 'fix_project_member_access_levels' into 'master'
Fix project member access levels

Migrate invalid project members (owner -> master)

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/18616

See merge request !6957
2016-10-21 12:51:44 +00:00
Alfredo Sumaran 6c2ab27aea Update CHANGELOG 2016-10-21 15:46:59 +03:00
Alfredo Sumaran 1a53511a34 Fix object data to be sent to fetch analytics data 2016-10-21 15:46:59 +03:00
Phil Hughes a74dfa301e Fixed compare ellipsis messing with layout 2016-10-21 13:43:52 +01:00
Rémy Coutable 1e66061b1e Merge branch 'master' into 'master'
Update Documentation image when configuring Build emails in Services

## What does this MR do?

Replace old GitLab image in documentation with a new image showing the new position of Services and the module 'Build emails'

## Why was this MR needed?

GitLab's layout changed with version 8.9 and the buttons were moved.

See merge request !5139
2016-10-21 12:40:48 +00:00
Rémy Coutable 075b6ba5e1 Merge branch 'sh-fix-label-uniquness-migration' into 'master'
Fix broken label uniqueness label migration

The previous implementation of the migration failed on staging because
the migration was attempted to remove labels from projects that did not
actually have duplicates. This occurred because the SQL query did not
account for the project ID when selecting the labels.

To replicate the problem:

1. Disable the uniqueness validation in app/models/label.rb.
2. Create a duplicate label "bug" in project A.
3. Create the same label in project B with label "bug".

The migration will attempt to remove the label in B even if there are no duplicates.

To fix the issue, include the project ID when selecting the labels.

Closes #23609

See merge request !7030
2016-10-21 12:39:32 +00:00
Adam Niedzielski c81ff152e0 Change "Group#web_url" to return "/groups/twitter" rather than "/twitter".
Bring back the old behaviour which was changed by 6b90ccb9.
Fixes #23527.
2016-10-21 13:53:38 +02:00
Robert Speicher cd2275ce91 Merge branch 'change-rubocop-to-2-1' into 'master'
Change target Ruby version for RuboCop to 2.1

We have to use the lowest common denominator to check the supported syntax and in our case it is Ruby 2.1. Please note that it will not help with unsupported syntax in HAML files because they are not checked by Rubocop.

See merge request !6978
2016-10-21 11:26:16 +00:00
Rémy Coutable 257789e9b7 Merge branch 'patch-1' into 'master'
[Doc] Fix `ref` parameter name for `commits/statuses`

The attribute to filter by branch or tag needs to be named `ref`, not `ref_name`. And indeed the attribute in the JSON response is `ref` (and not `ref_name`).

Tested on Gitlab CE 8.9.

See merge request !4876
2016-10-21 11:12:33 +00:00
Yorick Peterse 60adbef4af Merge branch '14192-issues-closed-by-merge-requests-using-metrics-data' into 'master'
Use MergeRequestsClosingIssues cache data on Issue#closed_by_merge_requests method

See merge request !6996
2016-10-21 11:07:04 +00:00
Stan Hu b332931af3 Fix broken label uniqueness label migration
The previous implementation of the migration failed on staging because
the migration was attempted to remove labels from projects that did not
actually have duplicates. This occurred because the SQL query did not
account for the project ID when selecting the labels.

To replicate the problem:

1. Disable the uniqueness validation in app/models/label.rb.
2. Create a duplicate label "bug" in project A.
3. Create the same label in project B with label "bug".

The migration will attempt to remove the label in B even if there are no duplicates.

Closes #23609
2016-10-21 12:45:10 +02:00