summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update VERSION to 8.10.8v8.10.8Ruben Davila2016-09-011-1/+1
|
* Update CHANGELOG with 8.10.8Ruben Davila2016-09-011-215/+1
|
* Merge branch 'fix-backup-restore' into 'master' Stan Hu2016-09-012-1/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib/backup: fix broken permissions when creating repo dir ## What does this MR do? This MR fixes an issue where gitlab:backup:restore will not work because the repositories directory is set up with bad permissions. The bad permissions will prevent access to the repositories by the git user, causing all kinds of troubles (e.g. gitlab-shell won't install hooks). ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? Rake task gitlab:backup:restore would complete successfully, but gitlab:check will report errors and gitlab cannot access repos. ## Screenshots (if relevant) * repositories.old.1472478726 was created without the fix * repositories was created with the fix ![gitlab-repo-permissions](/uploads/6cf2de57fe4f1be0bd5b5e1a13234889/gitlab-repo-permissions.png) ## Does this MR meet the acceptance criteria? - [x] [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 [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - 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? See merge request !6098
* Update VERSION to 8.10.7v8.10.7Robert Speicher2016-08-191-1/+1
|
* Update CHANGELOG for 8.10.7Robert Speicher2016-08-191-0/+4
|
* Merge branch 'rs-update-doorkeeper' into 'master'Robert Speicher2016-08-192-3/+3
| | | | | | | | | Update doorkeeper to 4.2.0 Changelog: https://git.io/v6PnV See merge request !5881 (cherry picked from commit c5aa31c83145366d88ce6d8d91e68467cf5baed4)
* Merge branch 'rs-issue-21017' into 'master'Robert Speicher2016-08-194-3/+48
| | | | | | | | | Update Hamlit to 2.6.1 Fixes gitlab-org/gitlab-ce#21025 and gitlab-org/gitlab-ce#21017 See merge request !5873 (cherry picked from commit e26ce27d5bac302785086d426e7b1a4c5b33f74a)
* Update VERSION to 8.10.6v8.10.6Robert Speicher2016-08-161-1/+1
|
* Merge branch '20317-admin-cant-order-by-size' into 'master'Robert Speicher2016-08-162-1/+8
| | | | | | | | | Allow to sort by project size on admin projects page Fixes #20317 See merge request !5797 (cherry picked from commit dd2088b08dd89001c8b0da387bd1c928f6c69153)
* Merge branch 'fix/import-permissions' into 'master'Douwe Maan2016-08-167-44/+70
| | | | | | | | | | | | | Set permissions to admin for importing a project via Import/Export Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/20802 In order to import a project, it is now required to be an admin Moved from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5766 See merge request !1983 (cherry picked from commit 966b303802e12204f5d32af24b13bd0ceb5342a1)
* Merge branch 'fix/export-att-inclusion' into 'master'Douwe Maan2016-08-164-7/+10
| | | | | | | | | | Fix attribute inclusion import/export config ignored in some cases In the `import_export.yml` file we define the inclusion of some of the attributes. For some reason, this isn't working in certain cases - very unfortunate this includes `user`. This has been introduced in 8.10.3. Related https://gitlab.com/gitlab-org/gitlab-ce/issues/20802 See merge request !1982
* Update CHANGELOG for Rails 4.2.7.1 upgradeRobert Speicher2016-08-161-0/+3
| | | | [ci skip]
* Merge branch 'rails-4-2-7-1' into 'master' Robert Speicher2016-08-152-32/+32
| | | | | | | | | | | Upgrade Rails to 4.2.7.1 for security fixes. Upgrades Rails from 4.2.7 to 4.2.7.1 for security fixes. For more information: http://weblog.rubyonrails.org/2016/8/11/Rails-5-0-0-1-4-2-7-2-and-3-2-22-3-have-been-released/ This should be backported to all currently-supported releases. See merge request !5781
* Update VERSION to 8.10.5v8.10.5Rémy Coutable2016-08-101-1/+1
|
* Merge branch 'use-cached-project-count-ce' into 'master'Rémy Coutable2016-08-102-1/+2
| | | | | | | | | | | | | | | | | | | Used cached value of project count to reduce DB load Following !5746, backport a change from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/637/diffs#diff-2. ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] All builds are passing - [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 you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5754 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'add-caching-for-project-count' into 'master' Robert Speicher2016-08-103-0/+27
| | | | | | | | Add a method in Project to return a cached value of total count of projects This is in preparation to address the DB load caused by the counting in gitlab-com/infrastructure#303. See merge request !5746
* Merge branch 'revert-host-header-overwrite' into 'master'Douwe Maan2016-08-103-12/+3
| | | | | | | | | | Revert "Defend against 'Host' header injection" We reverted this in omnibus but forgot to do it in the source NGINX template. See merge request !5706 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '20568-fix-member-data-again' into 'master'Douwe Maan2016-08-103-2/+24
| | | | | | | | | | | | | | | | Add a data migration to fix some missing timestamps in the members table (again) Repeats an earlier migration to fix historic bad data in the members table (missing created_at and updated_at fields) I'm expecting the WHERE clauses to be fast enough, and to return few enough rows, that the migration doesn't need to use batches, but I'm not too familiar with the size of these tables in the wild, so perhaps that's a poor assumption. 8.10 introduced a dependency on the `members.created_at` field in the project and namespace member view. If bad data is present, viewing the list of members now results in an NoMethodError and a 500 response from GitLab. Although the previous migration should have fixed all bad rows, we have evidence that it didn't in at least one case, despite the migration claiming to have run in the past. Closes #20568 See merge request !5670 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Update VERSION to 8.10.4v8.10.4Rémy Coutable2016-08-041-1/+1
|
* Update CHANGELOG for 8.10.4Rémy Coutable2016-08-041-1/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'fix/import-error' into 'master'Rémy Coutable2016-08-043-1/+32
| | | | | | | | | | | | | | | | | | | | Fix Import/Export error checking versions Fixes small bug preventing the correct error message about Import/Export version being displayed. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/20536 - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [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 you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5638 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'fix/ha-mode-import-issue' into 'master'Rémy Coutable2016-08-049-15/+104
| | | | | | | | | | | | Fix Import/Export not working in HA mode Use a shared path instead of `Tempfile` default `/tmp` so the import file is accessible by any GitLab instance. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/20506 See merge request !5618 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add CHANGELOG entry for !5544Rémy Coutable2016-08-041-0/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '20527-fork-commits-have-impact-on-original-project' into 'master'Rémy Coutable2016-08-043-1/+15
| | | | | | | | | | Don’t close issues on original project Closes #20527 -> https://gitlab.com/gitlab-org/gitlab-ce/issues/20527 See merge request !1981 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'dropdown-enter-fix' into '8-10-stable' Fatih Acet2016-08-011-2/+7
|\ | | | | | | | | | | | | | | | | Dropdown enter key fix ## What does this MR do? Fixes issue with dropdowns enter key not working correctly See merge request !5544
| * Cache the selectorsPhil Hughes2016-08-011-3/+5
| |
| * Removed question mark in if statementdropdown-enter-fixPhil Hughes2016-07-281-1/+1
| |
| * Fixes issue with dropdowns enter key not working correctlyPhil Hughes2016-07-281-2/+5
| |
* | Update VERSION to 8.10.3v8.10.3Rémy Coutable2016-08-011-1/+1
| |
* | Update CHANGELOG for 8.10.3Rémy Coutable2016-08-011-1/+3
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'fix-extra-new-line-crlf' into 'master'Rémy Coutable2016-08-015-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Trim extra displayed carriage returns in diffs and files with CRLFs ## What does this MR do? This MR strips out extra carriage returns at the end of each tokenized string. ## Are there points in the code the reviewer needs to double check? Does this remove more than we need? ## Why was this MR needed? Windows users would see extra lines in their files. Newline characters are already added with every line in the HTML formatter. ## What are the relevant issue numbers? #20440, gitlab-com/support-forum#892, #20468 ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] Added for this feature/bug - [ ] All builds are passing - [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 you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5588 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'fix-invalid-x-forwarded-for-ip' into 'master'Stan Hu2016-08-013-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore invalid IPs in X-Forwarded-For when trusted proxies are configured. ## What does this MR do? Catches IPAddr::InvalidAddressError exceptions in `trusted_proxy?` when a) a trusted proxy is set up in the gitlab config and b) an invalid IP address is passed to the method (e.g. one with a port attached). When caught, returns `false` from the method. Prevents a 500 error in this situation. ## What are the relevant issue numbers? Closes gitlab-org/gitlab-ce#20466. ## Does this MR meet the acceptance criteria? - [X] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [N/A] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [N/A] API support added - Tests - [X] Added for this feature/bug - [X] All builds are passing - [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 you do - rebase it please) - [X] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5584 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'fix-gh-pull-requests' into 'master'Rémy Coutable2016-08-013-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix attr reader to force the intended values for source and target shas ## What does this MR do? When importing a pull request from GitHub, the old and new branches may no longer actually exist by those names, but we need to recreate the merge request diff with the right source and target shas. We use these `target_branch_sha` and `source_branch_sha` attributes to force these to the intended values. But the reader methods were always looking up to the target/source branch head instead of check if these values was previously set, this MR applies a memoization pattern to both of them. ## Are there points in the code the reviewer needs to double check? This [commit](https://gitlab.com/gitlab-org/gitlab-ce/commit/6ce25e7b4caa9e94de74378729178c7060d640b2) introduced this bug in the importer. ## What are the relevant issue numbers? gitlab-org/gitlab-ce#20385 ## Does this MR meet the acceptance criteria? - [X] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) 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 - [ ] All builds are passing - [x] 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 you do - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) /cc @akitaonrails @DouweM See merge request !5573 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'reject-merge-conflicts' into 'master'Robert Speicher2016-08-013-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | Properly abort a merge when merge conflicts occur If somehow a user attempted to accept a merge request that had conflicts (e.g. the "Accept Merge Request" button or the MR itself was not updated), `MergeService` did not properly detect that a conflict occurred. It would assume that the MR went through without any issues and close the MR as though everything was fine. This could cause data loss if the source branch were removed. Closes #20425 See merge request !5569 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'fix/import-project-hooks' into 'master'Douwe Maan2016-08-014-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix repo hooks missing on import Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/19556 Repo hooks are missing from imported projects - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [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 you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5549 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'log-project-deletion' into 'master'Stan Hu2016-08-012-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a log message when a project is scheduled for destruction for debugging We have a lot of projects that are in `pending_delete` state. It's not clear whether they were ever scheduled for destruction, or whether Sidekiq just dropped the job due to `MemoryKiller` or some other reason. Also this will provide a record of which user destroys a project. #20365 See merge request !5540 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'fix/importing-io-timing-issue' into 'master'Rémy Coutable2016-08-012-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | Fix timing problems running imports on production Fixes https://gitlab.com/gitlab-com/infrastructure/issues/151 I've found out that in staging, the imported file is not copied fully by the time sidekiq runs the job, this should hopefully fix it. (Tested against staging). See merge request !5523 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'fix/labels-milestones-import' into 'master'Rémy Coutable2016-08-0112-236/+265
|/ | | | | | | | | | | | | | | | | Fix Importing labels and milestones associations - Import/Export Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/19510 and https://gitlab.com/gitlab-org/gitlab-ce/issues/19447 - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [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 you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5426 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix typo in CHANGELOGRémy Coutable2016-07-271-1/+1
| | | | | | [ci skip] Signed-off-by: Rémy Coutable <remy@rymai.me>
* Update VERSION to 8.10.2v8.10.2Rémy Coutable2016-07-271-1/+1
|
* Fix CHANGELOGRémy Coutable2016-07-271-1/+0
| | | | | | [ci skip] Signed-off-by: Rémy Coutable <remy@rymai.me>
* Prepare CHANGELOG for next patchRémy Coutable2016-07-271-1/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'update-gitlab-shell-version-in-doc' into 'master'Rémy Coutable2016-07-272-1/+2
| | | | | | | | Update gitlab-shell version to 3.2.1 in the 8.9->8.10 update guide See merge request !5516 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'fix-missing-schema-update' into 'master'Stan Hu2016-07-272-1/+2
| | | | | | | | | | Fix missing schema update for 20160722221922 20160722221922 was merged in 8.10.1 but the schema.rb was not updated. See merge request !5512 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '20302-forking-a-project-from-one-storage-to-another-fails' ↵Douwe Maan2016-07-277-11/+47
| | | | | | | | | | into 'master' Fix a bug where forking a project from a repository storage to another would fail See merge request !5509 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '20233-confidential-issue' into 'master'Rémy Coutable2016-07-273-1/+23
| | | | | | | | Show release notes in tag list See merge request !5503 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '20241-expand-all-button-breaks-diff-comparison-view' into 'master'Rémy Coutable2016-07-272-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix expand all diffs button in compare view ## What does this MR do? Fix the expand all diffs button in compare view. ## Are there points in the code the reviewer needs to double check? Don't think so. ## Why was this MR needed? We can't reuse the existing value of the format parameter, because on the merge request page that's 'json', so the link would go to a JSON file. We can't set it to HTML, because that adds '.html' to the URL, which breaks the compare view (and looks bad). Setting it to `nil` uses the default format, which in all of these cases is HTML anyway. ## What are the relevant issue numbers? Closes #20241. See merge request !5500 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '20156-rescue-reference-create-due-to-file-lock-exists' into ↵Stan Hu2016-07-272-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Rescue Rugged::OSError (lock exists) when creating references. Rescue an exception on concurrent scenarios. I was able to create a spec for this, because if you create the lock file before trying to create the reference the reference is created without a problem and the lock file is removed. So IMHO there is a race condition where more than one process is trying to create the same reference at the same time raising the exception, so I just added the patch without specs. ```ruby it "attempting to call keep_around when exists a lock does not fail" do ref = repository.send(:keep_around_ref_name, sample_commit.id) path = File.join(repository.path, ref) lock_path = "#{path}.lock" FileUtils.mkdir_p(path) File.open(lock_path, 'w') { |f| f.write('') } begin # No exception is raised because the lock file is removed at some point in the process repository.keep_around(sample_commit.id) ensure File.delete(path) File.delete(lock_path) end end ``` See merge request !5497 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add MR reference for !5493 in CHANGELOGRémy Coutable2016-07-271-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'es6-gitlab-sytanx-highlighting' into 'master'Douwe Maan2016-07-272-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added '*.js.es6 gitlab-language=javascript' to .gitattributes ## What does this MR do? According to the branch name this adds the `sytanx` highlighting for `.js.es6` files, but this actually adds the `syntax` highlighting. :laughing: ## Are there points in the code the reviewer needs to double check? Is this the right place? :runner: ## Why was this MR needed? We need pretty ES6 diffs. ## What are the relevant issue numbers? Flyin' solo :airplane_departure: ## Screenshots (if relevant) ## 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 [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if you do - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5486 Signed-off-by: Rémy Coutable <remy@rymai.me>