summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Comment on any expanded diff line on MRsosw-comment-on-any-line-on-diffs-w-feature-flagOswaldo Ferreira2018-11-094-4/+275
|
* Revert "Merge branch 'osw-comment-on-any-line-on-diffs' into 'master'"osw-revert-comment-in-any-diff-lineOswaldo Ferreira2018-11-074-275/+4
| | | | | This reverts commit a82a595728d54bdc12e51dfcfb22e9eddc449143, reversing changes made to e7df959b8f99875edd246c7ac7779c3203e8755e.
* Merge branch 'sh-paginate-bitbucket-server-imports' into 'master'Douglas Barbosa Alexandre2018-11-073-10/+49
|\ | | | | | | | | Paginate Bitbucket Server importer projects See merge request gitlab-org/gitlab-ce!22825
| * Paginate Bitbucket Server importer projectsStan Hu2018-11-073-10/+49
| | | | | | | | | | | | | | To prevent delays in loading the page and reduce memory usage, limit the number of projects shown at 25 per page. Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/50021
* | Merge branch 'jira-ping-differentiate-cloud' into 'master'Sean McGivern2018-11-071-1/+17
|\ \ | | | | | | | | | | | | | | | | | | Usage ping - Differentiate Jira Server and Cloud Closes #51043 See merge request gitlab-org/gitlab-ce!22791
| * | Usage ping - Differentiate Jira Server and Cloudjira-ping-differentiate-cloudMario de la Ossa2018-11-071-1/+17
| | |
* | | Allow limiting quick actions to executeBob Van Landuyt2018-11-071-5/+9
| | | | | | | | | | | | | | | | | | Sometimes we don't want to trigger any quick actions that cause side effects. For example when building a record to validate. This allows listing the quick actions that need to be performed.
* | | Apply patches when creating MR via emailBob Van Landuyt2018-11-076-2/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows users to add patches as attachments to merge request created via email. When an email to create a merge request is sent, all the attachments ending in `.patch` will be applied to the branch specified in the subject of the email. If the branch did not exist, it will be created from the HEAD of the repository. When the patches could not be applied, the error message will be replied to the user. The patches can have a maximum combined size of 2MB for now.
* | | Merge branch 'fj-41213-api-update-submodule-commit' into 'master'Sean McGivern2018-11-074-0/+88
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add endpoint to update a git submodule reference Closes #41213 See merge request gitlab-org/gitlab-ce!20949
| * | | Add submodule update API endpointFrancisco Javier López2018-11-074-0/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new endpoint allow users to update a submodule's reference. The MR involves adding a new operation RPC operation in gitaly-proto (see gitlab-org/gitaly-proto!233) and change Gitaly to use this new version (see gitlab-org/gitaly!936). See gitlab-org/gitlab-ce!20949
* | | | Merge branch 'max_retries_when' into 'master'Grzegorz Bizon2018-11-073-8/+115
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow to configure when to retry builds Closes gitlab-runner#3515 See merge request gitlab-org/gitlab-ce!21758
| * | | | use Ci::Build instead of CommitStatus as per feedbackMarkus Doits2018-11-071-1/+1
| | | | |
| * | | | small fixes to doc and remove on whitespace noiseMarkus Doits2018-11-071-2/+0
| | | | |
| * | | | refactoring after latest feedbackMarkus Doits2018-11-071-1/+15
| | | | |
| * | | | remove now unneeded validationMarkus Doits2018-11-071-1/+0
| | | | |
| * | | | fix wrong retry error messagesMarkus Doits2018-11-071-0/+12
| | | | |
| * | | | refactor validations to a Entry::Retry classMarkus Doits2018-11-073-64/+78
| | | | |
| * | | | one more try to reduce cognitive overheadMarkus Doits2018-11-071-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before: - Method `validate_retry_max` has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. - Method `validate_retry_when` has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
| * | | | refactor for hopefully lower cognitive complexityMarkus Doits2018-11-071-35/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before: - Method `validate_retry` has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. - Method `validate_retry_max` has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. - Method `validate_retry_when` has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
| * | | | fix allowed keys validator to use correct attribute as error base?Markus Doits2018-11-071-2/+2
| | | | |
| * | | | update job config validator to validate new retry syntaxMarkus Doits2018-11-072-6/+61
| | | | |
* | | | | Merge branch 'triggermesh-phase1-knative' into 'master'Grzegorz Bizon2018-11-072-4/+22
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Allow to install Knative as cluster application See merge request gitlab-org/gitlab-ce!22593
| * | | | | Fix double-negationChris Baumbauer2018-11-061-2/+2
| | | | | |
| * | | | | Refactor preinstall/postinstall methods in the helm installerChris Baumbauer2018-11-061-6/+2
| | | | | |
| * | | | | Fix issue with missing knative cluster role binding, and cleanup testsChris Baumbauer2018-11-051-8/+16
| | | | | |
| * | | | | Resolve issues raised by KamilChris Baumbauer2018-11-031-16/+3
| | | | | |
| * | | | | Merge branch 'master' into triggermesh-phase1-knativeChris Baumbauer2018-11-037-24/+19
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into triggermesh-phase1-knativeChris Baumbauer2018-11-02158-274/+1027
| |\ \ \ \ \ \
| * | | | | | | Remove comments from migration script and add usage dataChris Baumbauer2018-11-011-0/+1
| | | | | | | |
| * | | | | | | Revert Helm version bumpChris Baumbauer2018-10-293-5/+21
| | | | | | | |
| * | | | | | | Knative supportChris Baumbauer2018-10-241-0/+1
| | | | | | | |
| * | | | | | | Update helm version 1.7.2 -> 2.11.0Chris Baumbauer2018-10-243-5/+22
| | | | | | | |
* | | | | | | | Merge branch 'dm-api-merge-requests-index-merged-at' into 'master'Sean McGivern2018-11-073-18/+18
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose {closed,merged}_{at,by} in merge requests API index Closes #52031 See merge request gitlab-org/gitlab-ce!22806
| * | | | | | | | Expose {closed,merged}_{at,by} in merge requests API indexDouwe Maan2018-11-053-18/+18
| | | | | | | | |
* | | | | | | | | Merge branch '43521-keep-personal-emails-private' into 'master'Douwe Maan2018-11-071-0/+28
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds option to override commit email Closes #43521 See merge request gitlab-org/gitlab-ce!22560
| * | | | | | | | | User can keep their commit email private43521-keep-personal-emails-privateTiago Botelho2018-11-071-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The private commit email is automatically generated in the format: id-username@noreply.HOSTNAME GitLab instance admins are able to change the HOSTNAME portion, that defaults to Gitlab's hostname, to whatever they prefer.
* | | | | | | | | | Merge branch 'touchup-ci-normalizer' into 'master'Grzegorz Bizon2018-11-071-3/+5
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Touchup Normalizer implementation See merge request gitlab-org/gitlab-ce!22872
| * | | | | | | | | | Move extracting job names outside the looptouchup-ci-normalizerMatija Čupić2018-11-071-1/+1
| | | | | | | | | | |
| * | | | | | | | | | Return untouched hash if no job is parallelizedMatija Čupić2018-11-071-2/+4
| | |_|_|_|_|/ / / / | |/| | | | | | | |
* | | | | | | | | | Merge branch 'refactor-snippets-finder' into 'master'Douwe Maan2018-11-071-1/+1
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite SnippetsFinder to improve performance Closes #52639 See merge request gitlab-org/gitlab-ce!22606
| * | | | | | | | | Merge branch 'master' into 'refactor-snippets-finder'refactor-snippets-finderDouwe Maan2018-11-0661-176/+265
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # spec/models/project_spec.rb
| * | | | | | | | | | Rewrite SnippetsFinder to improve performanceYorick Peterse2018-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This completely rewrites the SnippetsFinder class from the ground up in order to improve its performance. The old code was beyond salvaging. It was complex, included various Rails 5 workarounds, comments that shouldn't be necessary, and most important of all: it produced a really poorly performing database query. As a result, I opted for rewriting the finder from scratch, instead of trying to patch the existing code. Instead of trying to reuse as many existing methods as possible, I opted for defining new methods specifically meant for the SnippetsFinder. This requires some extra code here and there, but allows us to have much more control over the resulting SQL queries. It is these changes that then allow us to produce a _much_ more efficient query. To illustrate how bad the old query was, we will use my own snippets as an example. Currently I have 52 snippets, most of which are global ones. To retrieve these, you would run the following Ruby code: user = User.find_by(username: 'yorickpeterse') SnippetsFinder.new(user, author: user).execute On GitLab.com the resulting query will take between 10 and 15 seconds to run, producing the query plan found at https://explain.depesz.com/s/Y5IX. Apart from the long execution time, the total number of buffers (the sum of all shared hits) is around 185 GB, though the real number is probably (hopefully) much lower as I doubt simply summing these numbers produces the true total number of buffers used. The new query's plan can be found at https://explain.depesz.com/s/wHdN, and this query takes between 10 and 100-ish milliseconds to run. The total number of buffers used is only about 30 MB. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/52639
* | | | | | | | | | | Merge branch 'osw-comment-on-any-line-on-diffs' into 'master'Douwe Maan2018-11-074-4/+275
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Comment on any expanded diff line on MRs See merge request gitlab-org/gitlab-ce!22398
| * | | | | | | | | | Apply additional guard-clauses for unfold_required?Oswaldo Ferreira2018-11-061-1/+2
| | | | | | | | | | |
| * | | | | | | | | | Comment on any expanded diff line on MRsOswaldo Ferreira2018-11-064-4/+274
| | | | | | | | | | |
* | | | | | | | | | | Merge branch '21480-parallel-job-keyword-mvc' into 'master'Grzegorz Bizon2018-11-073-6/+75
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "`parallel` job keyword MVC" Closes #21480 See merge request gitlab-org/gitlab-ce!22631
| * | | | | | | | | | | Avoid creating intersection if there's no arrayMatija Čupić2018-11-061-2/+2
| | | | | | | | | | | |
| * | | | | | | | | | | Use instance based approach for NormalizerMatija Čupić2018-11-062-38/+40
| | | | | | | | | | | |
| * | | | | | | | | | | Refactor Normalizer specsMatija Čupić2018-11-061-1/+1
| | | | | | | | | | | |
| * | | | | | | | | | | Refactor Gitlab::Ci::Config::NormalizerMatija Čupić2018-11-052-43/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use Hash#each_with_object to manipulate job hashes.