summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix rubocop offense in pipeline modelmark-as-processableGrzegorz Bizon2016-08-191-1/+1
|
* Fix test for processing pipeline after retrying buildGrzegorz Bizon2016-08-191-1/+1
|
* Add test that shows problem with pipeline processingGrzegorz Bizon2016-08-191-3/+43
|
* Make all future skipped builds as processable when retrying a buildKamil Trzcinski2016-08-183-0/+9
|
* Use have_no_link to test presence of button18681-pipelines-merge-requestKamil Trzcinski2016-08-171-1/+1
|
* Refactor merge_request-tabsAnnabel Dunstone2016-08-161-8/+6
|
* Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Annabel Dunstone2016-08-1654-215/+1012
|\ | | | | | | 18681-pipelines-merge-request
| * Merge branch 'issue_18656' into 'master' Douwe Maan2016-08-1633-106/+875
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Load issue templates from repository part of #18656 ## 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 - [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 !4981
| | * Load issues and merge requests templates from repositoryFelipe Artur2016-08-1633-106/+875
| | |
| * | Merge branch 'ee-581-backport-changes' into 'master' Douwe Maan2016-08-1621-109/+137
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport changes from gitlab-org/gitlab-ee!581 ## What does this MR do? Backports changes that were made in gitlab-org/gitlab-ee!581, to avoid potential merge conflicts in the future. ## What are the relevant issue numbers? - Related to gitlab-org/gitlab-ee!581 ## Does this MR meet the acceptance criteria? ## Tasks - [ ] !5824 Backport changes from EE!581 to CE - [x] Implementation - [x] ::ProtectedBranches::CreateService.new - [x] Can't remove `load_protected_branches_gon_variables` - [x] `has_many` with count enforced - [x] Extract from access levels - [x] project.protected_branches.create(params) - [x] Improve "access_levels.first" - [x] Fix tests - [x] Fix build - [x] Assign to Douwe - [ ] Wait for review/merge See merge request !5824
| | * Merge remote-tracking branch 'origin/master' into ee-581-backport-changesee-581-backport-changesTimothy Andrew2016-08-1615-215/+229
| | |\ | | |/ | |/|
| | * Backport EE assertions in protected branch related specs.Timothy Andrew2016-08-162-10/+10
| | | | | | | | | | | | | | | - Use assertions in the vein of `merge_access_levels.map(&:access_level)` instead of `merge_access_levels.first.access_level`
| | * Fix a missed `before_action` for `AutocompleteController`.Timothy Andrew2016-08-161-0/+1
| | | | | | | | | | | | | | | | | | - `#find_users` depends on a project being loaded. - Missed adding this in 2193ae222b3337f03c18dd7d27408a1b138c2f92
| | * Backport `AutocompleteController#load_project` from EE!581.Timothy Andrew2016-08-161-5/+12
| | | | | | | | | | | | | | | - This is an optimization that was made in !581, and it needs to be backported to CE to avoid merge conflicts in the future.
| | * Fix API::BranchesSpec.Timothy Andrew2016-08-161-1/+1
| | | | | | | | | | | | | | | - Previously created a protected branch manually, without using a factory.
| | * Fix failing tests relating to backporting ee!581.Timothy Andrew2016-08-164-20/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. `GitPushService` was still using `{merge,push}_access_level_attributes` instead of `{merge,push}_access_levels_attributes`. 2. The branches API creates access levels regardless of the state of the `developers_can_{push,merge}` parameters. This is in line with the UI, where Master access is the default for a new protected branch. 3. Use `after(:build)` to create access levels in the `protected_branches` factory, so that `factories_spec` passes. It only builds records, so we need to create access levels on `build` as well.
| | * Fix the protected branches factory.Timothy Andrew2016-08-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Previously, we were using `after_create` to create access levels. 2. At the time of protected branch creation, there are _no_ access levels present, which is invalid, and creation fails. 3. Fixed by setting access levels before the protected branch is created.
| | * Improve EE compatibility with protected branch access levels.Timothy Andrew2016-08-163-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Change a few incorrect `access_level` to `access_levels.first` that were missed in e805a64. 2. `API::Entities` can iterate over all access levels instead of just the first one. This makes no difference to CE, and makes it more compatible with EE.
| | * Move the "update" portion of the protected branch view into a partial.Timothy Andrew2016-08-162-10/+13
| | | | | | | | | | | | 1. To improve EE compatibility.
| | * Don't select an access level if already selected.Timothy Andrew2016-08-161-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. This is in regard to the protected branches feature spec. 2. For example, if "Masters" is already selected, don't re-select "Masters" during the spec. 3. This is due to a bug in the frontend implementation, where selecting an already-selected access level _deselects_ it, which is something we don't need. I'll create a separate issue for this. 4. This hasn't turned up before, because we were manually creating missing access levels prior to e805a64. Now, we just use nested attributes, and missing access levels fail validation.
| | * Backport changes from gitlab-org/gitlab-ee!581 to CE.Timothy Andrew2016-08-1614-70/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | !581 has a lot of changes that would cause merge conflicts if not properly backported to CE. This commit/MR serves as a better foundation for gitlab-org/gitlab-ee!581. = Changes = 1. Move from `has_one {merge,push}_access_level` to `has_many`, with the `length` of the association limited to `1`. This is _effectively_ a `has_one` association, but should cause less conflicts with EE, which is set to `has_many`. This has a number of related changes in the views, specs, and factories. 2. Make `gon` variable loading more consistent (with EE!581) in the `ProtectedBranchesController`. Also use `::` to prefix the `ProtectedBranches` services, because this is required in EE. 3. Extract a `ProtectedBranchAccess` concern from the two access level models. This concern only has a single `humanize` method here, but will have more methods in EE. 4. Add `form_errors` to the protected branches creation form. This is not strictly required for EE compatibility, but was an oversight nonetheless.
* | | Add pipelines badge to MR tabAnnabel Dunstone2016-08-162-6/+2
| | |
* | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Annabel Dunstone2016-08-1615-215/+229
|\ \ \ | |/ / | | | | | | 18681-pipelines-merge-request
| * | Merge remote-tracking branch 'dev/master'Ruben Davila2016-08-1610-51/+81
| |\ \
| | * \ Merge branch 'fix/export-att-inclusion' into 'master' Douwe Maan2016-08-154-7/+12
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | * | refactor parse_hash based on feedbackJames Lopez2016-08-111-3/+3
| | | | |
| | | * | Fix attribute inclusion in import/export config ignored in some casesJames Lopez2016-08-114-7/+12
| | | | |
| | * | | Merge branch 'fix/import-permissions' into 'master' Douwe Maan2016-08-156-44/+69
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | * | | Fix permissions check in controller, added relevant spec and updated docsJames Lopez2016-08-116-44/+69
| | | |/ /
| * | | | Merge branch 'document-when-to-add-indexes' into 'master' Achilleas Pipinellis2016-08-162-0/+127
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added documentation on adding database indexes ## What does this MR do? This MR adds a guide on when to add database indexes, how to approach this problem, etc ## Are there points in the code the reviewer needs to double check? Spelling, grammar, etc ## Why was this MR needed? Blindly adding indexes can be harmful to the database, and I recently had to remove 48-something unused indexes. ## What are the relevant issue numbers? #20767 ## 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) - Tests - [x] 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) See merge request !5771
| | * | | | Added documentation on adding database indexesdocument-when-to-add-indexesYorick Peterse2016-08-112-0/+127
| | | | | |
| * | | | | Revert "Merge branch ↵Rubén Dávila Santos2016-08-162-159/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '19957-write-tests-for-adding-comments-for-different-line-types-in-diff' into 'master'" This reverts merge request !5417
| * | | | | Merge branch '19350-product-map' into 'master' Jacob Schatz2016-08-161-5/+11
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add reference to product map. ## What does this MR do? Mention the product map in the UI Guide and remove a line that says that the GitLab logo and user picture and in the sidebar. ## What are the relevant issue numbers? 19350 - [ ] [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) Closes #19350 See merge request !5769
| | * | | | Add reference to product map. 19350-product-mapChris Peressini2016-08-111-5/+11
| | |/ / / | | | | | | | | | | | | | | | Remove line that says the GitLab logo and user picture are in the sidebar.
* | | | | Hide branch name and status text on mr pipelines; don't use shorter timeagoAnnabel Dunstone2016-08-163-10/+28
| | | | |
* | | | | Update fixtures to make development testing easierKamil Trzcinski2016-08-161-6/+26
| | | | |
* | | | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Kamil Trzcinski2016-08-161000-10165/+20091
|\ \ \ \ \ | |/ / / / | | | | | | | | | | 18681-pipelines-merge-request
| * | | | Merge branch 'cs-upgrade-httpclient' into 'master' Stan Hu2016-08-151-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade httpclient gem from 2.7.0.1 to 2.8.2. Fixes deprecation warnings from Ruby 2.3. Resolves #20950. Changelog: https://github.com/nahi/httpclient/blob/b51d7a8bb78f71726b08fbda5abfb900d627569f/CHANGELOG.md#changes-in-282 cc: @stanhu See merge request !5816
| | * | | | Upgrade httpclient gem from 2.7.0.1 to 2.8.2.Connor Shea2016-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes deprecation warnings from Ruby 2.3. Changelog: https://github.com/nahi/httpclient/blob/b51d7a8bb78f71726b08fbda5abfb900d627569f/CHANGELOG.md#changes-in-282
| * | | | | Merge branch 'akismet-submittable' into 'master' Robert Speicher2016-08-1535-159/+583
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submit to Akismet Part 1 (Issues) Related to #5932 #5573 gitlab-com/infrastructure#14 See merge request !5538
| | * | | | | Further refactor and syntax fixes.Patricio Cano2016-08-1520-169/+160
| | | | | | |
| | * | | | | Refactored AkismetHelper into AkismetService and cleaned up `Spammable`Patricio Cano2016-08-1518-229/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactored SpamCheckService into SpamService
| | * | | | | Added Documentation and CHANGELOGPatricio Cano2016-08-154-0/+24
| | | | | | |
| | * | | | | Allow `Issue` to be submitted as spamPatricio Cano2016-08-1513-10/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added controller actions as reusable concerns - Added controller tests
| | * | | | | Allow `SpamLog` to be submitted as hamPatricio Cano2016-08-158-5/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added `submitted_as_ham` to `SpamLog` to mark which logs have been submitted to Akismet. - Added routes and controller action.
| | * | | | | Refactored spam related code even furtherPatricio Cano2016-08-1515-93/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed unnecessary column from `SpamLog` - Moved creation of SpamLogs out of its own service and into SpamCheckService - Simplified code in SpamCheckService. - Moved move spam related code into Spammable concern
| | * | | | | Complete refactor of the `Spammable` concern and tests:Patricio Cano2016-08-1510-38/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Merged `AkismetSubmittable` into `Spammable` - Clean up `SpamCheckService` - Added tests for `Spammable` - Added submit (ham or spam) options to `AkismetHelper`
| | * | | | | Lay the ground works to submit information to AkismetPatricio Cano2016-08-1510-0/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New concern `AkismetSubmittable` to allow issues and other `Spammable` models to be submitted to Akismet. - New model `UserAgentDetail` to store information needed for Akismet. - Services needed for their creation and tests.
| * | | | | | Merge branch ↵Robert Speicher2016-08-152-10/+159
| |\ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '19957-write-tests-for-adding-comments-for-different-line-types-in-diff' into 'master' Add rspec feature tests for the diff notes feature. ## What are the relevant issue numbers? Closes #19957. See merge request !5417
| | * | | | | Review changes19957-write-tests-for-adding-comments-for-different-line-types-in-diffLuke Bennett2016-08-101-43/+23
| | | | | | |