summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | Fix resultKamil Trzcinski2016-09-131-1/+1
| | | | | | | | |
| | * | | | | | | Make result to return project and capabilities grantedKamil Trzcinski2016-09-132-14/+33
| | | | | | | | |
| | * | | | | | | Use a permissions of user to access all dependent projects from CI jobs ↵Kamil Trzcinski2016-09-133-14/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (this also includes a container images, and in future LFS files)
| * | | | | | | | Merge branch 'fix/import-export-db-errors' into 'master' Rémy Coutable2016-09-194-8/+31
| |\ \ \ \ \ \ \ \ | | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix import/export database errors Fixes protected branches errors when importing a project including them Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/21295 Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/21799 See merge request !6099
| | * | | | | | | Fixed label color issue and added Import/Export versioning tableJames Lopez2016-09-192-1/+2
| | | | | | | | |
| | * | | | | | | squashed - Fix DB exceptions raised importing some specific projects.James Lopez2016-09-194-8/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Better import of labels, milestones and protected branches. Updated relevant specs. Loose pipeline validation on importing, so it does not fail when there are missing fields, which are not validated at DB level. Also, updated spec with relevant test.
| * | | | | | | | Fix validation regexs (+1 squashed commit)Kamil Trzcinski2016-09-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commits: [f9a9315] Use : to test invalid environment name
| * | | | | | | | Fix scope of the CI config key nodes in jobs entryGrzegorz Bizon2016-09-191-13/+13
| | | | | | | | |
| * | | | | | | | Fix environments handlingKamil Trzcinski2016-09-191-2/+2
| | | | | | | | |
| * | | | | | | | Restore validation of CI job environment nameGrzegorz Bizon2016-09-191-0/+9
| | | | | | | | |
| * | | | | | | | Fix CI job environment configuration attributesGrzegorz Bizon2016-09-193-3/+4
| | | | | | | | |
| * | | | | | | | Fix CI job environment configuration entry classGrzegorz Bizon2016-09-191-8/+11
| | | | | | | | |
| * | | | | | | | Cleanup changesKamil Trzcinski2016-09-191-5/+2
| | | | | | | | |
| * | | | | | | | Update support for dynamic environmentsKamil Trzcinski2016-09-193-16/+12
| | | | | | | | |
| * | | | | | | | Verify expandability of variables defined as part of environmentKamil Trzcinski2016-09-191-10/+12
| | | | | | | | |
| * | | | | | | | Properly create deployment using all possible optionsKamil Trzcinski2016-09-191-0/+9
| | | | | | | | |
| * | | | | | | | Add validation of URL and validation of nameKamil Trzcinski2016-09-191-0/+5
| | | | | | | | |
| * | | | | | | | Add new CI configuration entry for the environmentGrzegorz Bizon2016-09-193-10/+32
| | | | | | | | |
| * | | | | | | | Add support for dynamic environmentsKamil Trzcinski2016-09-193-2/+50
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | Environments that can have a URL with predefined CI variables.
| * | | | | | | Replace contributions calendar timezone payload with datesClement Ho2016-09-161-9/+8
| | |_|_|/ / / | |/| | | | |
| * | | | | | Fix API notes endpoint when posting only emojiZ.J. van de Weg2016-09-161-4/+4
| | |_|_|/ / | |/| | | |
* | | | | | Stop putting private tokens in GonNick Thomas2016-09-191-1/+0
| | | | | |
* | | | | | Enable Warden for the Grape APINick Thomas2016-09-191-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The practical effect of this commit is to make the API check the Rails session cookie for authentication details. If the cookie is present and valid, it will be used to authenticate. The API now has several authentication options for users. They follow in this order of precedence: * Authentication token * Personal access token * OAuth2 Bearer token (Doorkeeper - application access) * Rails session cookie
* | | | | | Remove some dead code from the Grape APINick Thomas2016-09-191-43/+13
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | The `guard_all!` method is never called, and `guard!` is not implemented. The `doorkeeper_guard!` method is also never called, and is mostly the same as its non-bang counterpart.
* | | | | Merge branch 'integer_migration_style' into 'master' Yorick Peterse2016-09-161-2/+8
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Integer migration style See merge request !6334
| * | | | | Add support for column limits in add_column_with_defaultDrew Blessing2016-09-151-2/+8
| | |_|/ / | |/| | |
* | | | | Syntax fixes and better tests for helper methods. Updated docs.group-specific-lfs-settingsPatricio Cano2016-09-151-2/+4
| | | | |
* | | | | Added group-specific setting for LFS.Patricio Cano2016-09-152-3/+5
|/ / / / | | | | | | | | | | | | Groups can enable/disable LFS, but this setting can be overridden at the project level. Admin only
* | | | Merge branch 'fix-old-migration-repos-path-key' into 'master' Robert Speicher2016-09-151-4/+0
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update references to deprecated `repos_path` configuration key to avoid ## What does this MR do? Update references to deprecated `repos_path` configuration key to avoid errors when updating GitLab from older versions ## Why was this MR needed? Users were reporting errors when upgrading from GitLab 6.7 ## What are the relevant issue numbers? https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1464 See merge request !6350
| * | | Update references to deprecated `repos_path` configuration key to avoidfix-old-migration-repos-path-keyAlejandro Rodríguez2016-09-141-4/+0
| | | | | | | | | | | | | | | | errors on updates from older versions
* | | | Clean environment variables when running git hooksfix_custom_hook_envsValery Sizov2016-09-151-5/+7
|/ / /
* | | Merge branch 'houqp-master' into 'master' Robert Speicher2016-09-141-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fix wiki headeline linking Fixes #21817 See merge request !6300
| * | | Fix URLs with anchors in wikiQingping Hou2016-09-131-0/+1
| | |/ | |/|
* | | Merge branch 'fix/gitlab-popen-thread-safety' into 'master' Stan Hu2016-09-141-6/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix Gitlab::Popen.popen thread-safety issue ## What does this MR do? It changes the instance variables of `Gitlab::Popen.popen` to a local ones. ## Are there points in the code the reviewer needs to double check? N/A ## Why was this MR needed? It fixes a bug! ## Screenshots (if relevant) N/A ## 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~~ - [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 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? #21842 See merge request !6194
| * | | Fix Gitlab::Popen.popen thread-safety issuefix/gitlab-popen-thread-safetyAhmad Sherif2016-09-131-6/+6
| | | | | | | | | | | | | | | | Fixes #21842
* | | | Merge branch 'workhorse-secret-trailing-newline' into 'master' Stan Hu2016-09-131-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow trailing newline in secret base64 data Fixes https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1575 See merge request !6327
| * | | | Allow trailing newline in secret base64 dataJacob Vosmaer2016-09-131-1/+1
| | |/ / | |/| |
* | | | Merge branch 'rc-use-haml_lint' into 'master' Robert Speicher2016-09-131-0/+5
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use `haml_lint` for views linting ## What does this MR do? Add HAML-linting to the GitLab codebase. ## What are the relevant issue numbers? Closes #19984. See merge request !6307
| * | | Improve .haml-lint.yml, simplify the haml_lint task and remove CHANGELOG entryrc-use-haml_lintRémy Coutable2016-09-131-4/+1
| | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | Add haml_lint rake taskRémy Coutable2016-09-131-0/+8
| | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | Merge branch 'feature/builds-register-change-404-to-204' into 'master' Rémy Coutable2016-09-133-1/+13
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change response for /ci/api/v1/builds/register.json from 404 to 204 ## What does this MR do? To check if there are new builds scheduled for a runner, runner is sending `POST /ci/api/v1/builds/register.json` requests. If there is a build then a `200` response with build data is returned. However if there is no builds scheduled for this runner it receives a `404 Not Found` response. This may end with a lot of `404 Not Found` lines in logs that are an expected behavior (please read #14445 for a reference). Since `v1.0.1` version GitLab Runner is ready to receive a `204 No Content` response in case of no builds. This MR adds a support for this status code for each Runner's version that can be determined while handling `POST /ci/api/v1/builds/register.json` request. ## Are there points in the code the reviewer needs to double check? Specs in `spec/requests/ci/api/builds_spec.rb` ## 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) - [ ] ~~API support added~~ - Tests - [x] Added for this feature/bug - [x] All builds are passing - [ ] ~~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 you do - 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? Fixes #14445 See merge request !6225
| * | | Change response for /ci/api/v1/builds/register.json from 404 to 204Tomasz Maczukin2016-09-133-1/+13
| | | |
* | | | Merge branch 'patch-4' into 'master' Robert Speicher2016-09-131-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update gitlab shell secret file also when it is empty Use `File.size?` instead of `File.exist?` so that secret token is generated when the file is empty. See merge request !3774
| * | | | update gitlab shell secret file also when it is emptyElan Ruusamäe2016-09-131-1/+1
| | |/ / | |/| |
* | | | Merge branch '20780-import-github-release-notes' into 'master' Robert Speicher2016-09-132-0/+36
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import GitHub release notes ## Why was this MR needed? Release notes aren't currently migrated over when importing from GitHub ## What are the relevant issue numbers? #20780 See merge request !5981
| * | | Import GitHub release notesAndrew Smith2016-09-132-0/+36
| |/ / | | | | | | | | | | | | # Conflicts: # lib/gitlab/github_import/importer.rb
* | | Avoid protected branches checks when verifying access without branch namePaco Guzman2016-09-131-0/+1
| | | | | | | | | | | | | | | | | | GitlabShell verify access sending ‘_any’ as the changes made on the git command, in those cases Gitlab::Checks::ChangeAccess won’t receive a branch_name so we don’t need to check for access to the protected branches on that repository. So we avoid some git operations in case the are not cached (empty_repo?) and some database lookups to get protected branches. These request is happening in every push.
* | | Merge branch 'fix-commit-status' into 'master' Rémy Coutable2016-09-131-26/+28
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix an error where we were unable to create a CommitStatus for running state Due to severe refactoring of Pipeline we introduced regression in how CommitStatus is handled. We received an report that it's impossible to create a CommitStatus with state `running` when there were not previous status. The support for Commit Statuses should be simplified. Right now I'm doing minimal change to move forward and fix a bug, but I'll create a new MR that will move all logic that is now part of `lib/api/commit_statuses.rb` to separate service to simplify the implementation. This error happens due to the fact that we introduced additional status of builds: `created`. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/21345 See merge request !6107
| * | Fix an error where we were unable to create a CommitStatus for running statefix-commit-statusKamil Trzcinski2016-09-121-26/+28
| |/
* | Merge branch '21569-dont-add-created-by-for-matched-users' into 'master' Robert Speicher2016-09-124-6/+23
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | Only add original author tag line when importing from GitHub if there isn't a linked GitLab account ## What does this MR do? If there we've found a linked GitLab user for a creator of an issue or comment don't add the 'Created By:' line. ## What are the relevant issue numbers? Closes #21569 See merge request !6081