summaryrefslogtreecommitdiff
path: root/lib/gitlab
Commit message (Collapse)AuthorAgeFilesLines
* Implement OperationService.UserAddBranch Gitaly RPCgitaly-add-branchAlejandro Rodríguez2017-09-302-7/+47
|
* Populate `Gitlay::Repository`'s `gl_repository` fieldAlejandro Rodríguez2017-09-302-2/+3
|
* Create repositories via GitalyJacob Vosmaer2017-09-293-7/+21
|
* Merge branch ↵Rémy Coutable2017-09-291-5/+27
|\ | | | | | | | | | | | | | | | | '36631-activerecord-statementinvalid-pg-querycanceled-error-canceling-statement-due-to-statement-timeout' into 'master' Insert at most 1,000 rows at once in MR diff background migration Closes #36631 et #37505 See merge request gitlab-org/gitlab-ce!13661
| * Make MR diff background migration less likely to time outSean McGivern2017-09-291-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This version does not use transactions, but individual statements. As we have unique constraints on the target tables for the inserts, we can just ignore uniqueness violations there (as long as we always insert the same batch size, in the same order). This means the spec now must use truncation, not a transaction, as the uniqueness violation means that the whole transaction for that spec would be invalid, which isn't what we'd want. In real-world use, this isn't run in a transaction anyway. This commit also wraps unhandled exceptions, for easier finding in Sentry, and logs with a consistent format, for easier searching.
| * Insert at most 1,000 rows at once in MR diff background migrationSean McGivern2017-09-291-3/+9
| | | | | | | | | | | | We were hitting the statement timeout for very large MR diffs. Now we insert at most 1,000 rows to `merge_request_diff_commits` in a single statement, or 100 rows to `merge_request_diff_files`.
* | Make Repository#has_visible_content more efficientJacob Vosmaer (GitLab)2017-09-292-1/+33
|/
* Migrate Gitlab::Git::Repository#add_tag to Gitalyfeature/migrate-repository-add-tag-to-gitalyAhmad Sherif2017-09-294-30/+70
| | | | Closes gitaly#601
* Merge branch 'feature/migrate-repository-rm-tag-to-gitaly' into 'master'Robert Speicher2017-09-283-1/+45
|\ | | | | | | | | | | | | Migrate Git::Repository#rm_tag to Gitaly Closes gitaly#562 See merge request gitlab-org/gitlab-ce!14388
| * Migrate Git::Repository#rm_tag to GitalyAhmad Sherif2017-09-283-1/+45
| | | | | | | | Closes gitaly#562
* | Merge branch 'hashed-storage-migration-path' into 'master'Douwe Maan2017-09-281-1/+6
|\ \ | | | | | | | | | | | | | | | | | | Hashed storage migration path Closes gitlab-ee#3118 See merge request gitlab-org/gitlab-ce!14067
| * | [Backported from EE] Readonly flag for ProjectsGabriel Mazetto2017-09-281-1/+6
| | | | | | | | | | | | | | | This is used in EE for the storage migration, and we want to use this in CE as well to be able to migrate projects to hashed_storage.
* | | Handle error when fetching ref for MR with deleted source branch38319-nomethoderror-undefined-method-sha-for-nil-nilclassSean McGivern2017-09-281-2/+7
|/ / | | | | | | | | | | If the ref doesn't exist, and the source branch is deleted, we can't get it back easily. Previously, we ignored this error by shelling out, so replicate that behaviour.
* | Merge branch 'zj-repo-gitaly' into 'master'Sean McGivern2017-09-281-2/+12
|\ \ | | | | | | | | | | | | | | | | | | RepositoryExists is always called with #gitaly_migration Closes #38333 See merge request gitlab-org/gitlab-ce!14513
| * | Rolling back change to n+1 detectionan-repo-gitalyAndrew Newdigate2017-09-271-7/+1
| | |
| * | RepositoryExists is always called with #gitaly_migrationZeger-Jan van de Weg2017-09-261-2/+12
| | |
| * | Don't enforce gitaly request limits for distinct callsAlejandro Rodríguez2017-09-261-1/+7
| | |
* | | refactor users update serviceJames Lopez2017-09-282-2/+2
| | |
* | | refactor services to match EE signatureJames Lopez2017-09-282-2/+2
| |/ |/|
* | Merge branch 'backstage/gb/refactor-pipeline-create-service' into 'master'Kamil Trzciński2017-09-2710-141/+412
|\ \ | |/ |/| | | | | | | | | Refactor a service responsible for creating a pipeline Closes #37563 and #34415 See merge request gitlab-org/gitlab-ce!14482
| * Add some minor improvements to pipeline creation chainbackstage/gb/refactor-pipeline-create-serviceGrzegorz Bizon2017-09-272-5/+2
| |
| * Add specs for builder chain step that skipps pipelinesGrzegorz Bizon2017-09-261-1/+1
| |
| * Fix coding style offenses in pipeline chain classesGrzegorz Bizon2017-09-262-4/+2
| |
| * Move pipeline builder validation chain to a moduleGrzegorz Bizon2017-09-266-115/+121
| |
| * Split pipeline chain builder validation classGrzegorz Bizon2017-09-266-102/+143
| |
| * Add class that handles pipeline creation sequenceGrzegorz Bizon2017-09-261-0/+37
| |
| * Extract pipeline persistence to a separate chain classGrzegorz Bizon2017-09-261-0/+29
| |
| * Fix code style offenses in pipeline create servicesGrzegorz Bizon2017-09-261-1/+1
| |
| * Use tag/branch methods to check if pipeline ref existsGrzegorz Bizon2017-09-251-8/+2
| |
| * Extract pipeline chain builder classes from serviceGrzegorz Bizon2017-09-253-0/+167
| |
| * Move related pipeline class to new pipeline moduleGrzegorz Bizon2017-09-252-141/+143
| |
* | Merge branch 'dm-bitbucket-import-truncated-shas' into 'master'Robert Speicher2017-09-263-10/+32
|\ \ | | | | | | | | | | | | | | | | | | Fix bug that caused merge requests with diff notes imported from Bitbucket to raise errors Closes #38100 See merge request gitlab-org/gitlab-ce!14438
| * | Remove unnecessary commentsDouwe Maan2017-09-251-2/+2
| | |
| * | Properly compare diff refs and diff positions when shas are truncatedDouwe Maan2017-09-252-8/+25
| | |
| * | Expand truncated Bitbucket pull request source/target SHA if possibleDouwe Maan2017-09-251-2/+7
| | |
* | | Remove dead `Gitlab::Markdown::Pipeline` classrs-remove-dead-markdown-pipelineRobert Speicher2017-09-251-32/+0
| |/ |/|
* | Migrate Gitlab::Git::Repository#log to GitalyKim "BKC" Carlbäcker2017-09-253-1/+35
|/
* Merge branch '36549-circuit-breaker-handles-missing-storages' into 'master'Douwe Maan2017-09-225-10/+72
|\ | | | | | | | | | | | | Allow the git circuit breaker to correctly handle missing repository storages Closes #36549 See merge request gitlab-org/gitlab-ce!14417
| * Allow the git circuit breaker to correctly handle missing repository storagesNick Thomas2017-09-225-10/+72
| |
* | Workaround for #38259Andrew Newdigate2017-09-221-2/+5
| |
* | Merge branch 'feature/migrate-repository-diff' into 'master'Douwe Maan2017-09-224-15/+60
|\ \ | | | | | | | | | | | | | | | | | | Migrate Gitlab::Git::Repository#diff to Gitaly Closes gitaly#524 See merge request gitlab-org/gitlab-ce!14251
| * | Migrate Gitlab::Git::Repository#diff to Gitalyfeature/migrate-repository-diffAhmad Sherif2017-09-214-15/+60
| | | | | | | | | | | | Closes gitaly#524
* | | Merge branch '33328-usage-ping-for-gitlab-features-and-components' into 'master'Rémy Coutable2017-09-221-10/+36
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Adds gitlab features and components to usage ping data. Closes #33328 See merge request gitlab-org/gitlab-ce!14305
| * | | Adds gitlab features and components to usage ping data.33328-usage-ping-for-gitlab-features-and-componentsTiago Botelho2017-09-211-10/+36
| | | |
* | | | Merge branch 'sh-blob-raw-check' into 'master'Douwe Maan2017-09-221-0/+2
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | Ensure that Blob.raw returns always returns a valid blob object See merge request gitlab-org/gitlab-ce!14412
| * | | Ensure that Blob.raw returns always returns a valid blob objectsh-blob-raw-checkStan Hu2017-09-211-0/+2
| |/ / | | | | | | | | | | | | | | | | | | In gitlab-org/gitlab-ee!2976, we saw that a given OID could point to a commit, which would cause the delta size check to fail. Gitaly already returns nil if the OID isn't a blob, so this change makes the Rugged implementation consistent.
* | | Resolve "Better SVG Usage in the Frontend"Tim Zallmann2017-09-221-0/+1
| | |
* | | Merge branch 'fix-multi-line-hook-output' into 'master'Rémy Coutable2017-09-221-3/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Display full pre-receive and post-receive hook output in GitLab UI Closes #25214 See merge request gitlab-org/gitlab-ce!14222
| * | | Display full pre-receive and post-receive hook output in GitLab UIRobin Bobbitt2017-09-211-3/+4
| |/ /
* | | Merge branch 'bvl-transient-failure-health-controller-spec' into 'master'Douwe Maan2017-09-211-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Don't memoize storage configuration on `FsShardsCheck` Closes #38140 See merge request gitlab-org/gitlab-ce!14419