Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2018-09-20Add Gitlab::Database::Subquery.self_join to delete_all with limitToon Claes
`delete_all` doesn't support limit, so you'd need to subquery that. And instead of subquerying with `where(id: query)`, it's better to use an `INNER JOIN`. This method also works with MySQL, while subquerying doesn't (without another layer of subquerying) Reference: https://stackoverflow.com/questions/17892762/mysql-this-version-of-mysql-doesnt-yet-support-limit-in-all-any-some-subqu/17892886#17892886
2018-09-19Merge branch 'fix-rubocop-todo' into 'master'Douglas Barbosa Alexandre
Fix rubocop Style/ZeroLengthPredicate See merge request gitlab-org/gitlab-ce!21793
2018-09-19Include post migrations when loading the schemaYorick Peterse
See merge request gitlab-org/gitlab-ce!21689
2018-09-19Use standalone diff stats RPC on every comparison viewOswaldo Ferreira
2018-09-19Merge branch '51571-wrapper-rake-task-uploads-migrate-os' into 'master'Douwe Maan
Add wrapper rake task to migrate all uploads to OS Closes #51571 See merge request gitlab-org/gitlab-ce!21779
2018-09-18Merge branch 'remove-ee-specific-lines-from-plan-concerns' into 'master'Robert Speicher
Remove EE-specific lines from Plan concerns See merge request gitlab-org/gitlab-ce!21448
2018-09-18Add wrapper rake task to migrate all uploads to OSBalasankar "Balu" C
Add a rake task that will trigger gitlab:uploads:migrate rake task with different possible arguments, one by one.
2018-09-18Merge branch '51564-fix-commit-email-usage' into 'master'Douwe Maan
Respect the user commit email in more places Closes #51564 See merge request gitlab-org/gitlab-ce!21773
2018-09-18Fix rubocop Style/ZeroLengthPredicateSemyon Pupkov
2018-09-17Merge branch 'select-from-union' into 'master'Robert Speicher
Replace direct use of Gitlab::SQL::Union with a "from_union" method Closes #51307 See merge request gitlab-org/gitlab-ce!21672
2018-09-17Merge branch 'osw-gitaly-diff-stats-client' into 'master'Douwe Maan
Add Gitaly diff stats RPC client See merge request gitlab-org/gitlab-ce!21732
2018-09-17Add Gitaly diff stats RPC clientOswaldo Ferreira
This adds a basic interface to fetch diff statistics given two SHAs. It's a requirement for #49399 #20282 and #19232.
2018-09-17Remove Gitlab::Git::Repository#user_to_committerNick Thomas
2018-09-17Remove EE-specific code from ProtectedRefAccessSean McGivern
2018-09-17Added FromUnion to easily select from a UNIONYorick Peterse
This commit adds the module `FromUnion`, which provides the class method `from_union`. This simplifies the process of selecting data from the result of a UNION, and reduces the likelihood of making mistakes. As a result, instead of this: union = Gitlab::SQL::Union.new([foo, bar]) Foo.from("(#{union.to_sql}) #{Foo.table_name}") We can now write this instead: Foo.from_union([foo, bar]) This commit also includes some changes to make this new setup work properly. For example, a bug in Rails 4 (https://github.com/rails/rails/issues/24193) would break the use of `from("sub-query-here").includes(:relation)` in certain cases. There was also a CI query which appeared to repeat a lot of conditions from an outer query on an inner query, which isn't necessary. Finally, we include a RuboCop cop to ensure developers use this new module, instead of using Gitlab::SQL::Union directly. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/51307
2018-09-17Fix grammar (setup to set-up) in code comments, spec, views, etc.Marcel Amirault
2018-09-17Merge branch '29398-support-rbac-for-gitlab-provisioned-clusters' into 'master'Kamil Trzciński
Support Kubernetes RBAC for GitLab Managed Apps for creating new clusters Closes #29398 See merge request gitlab-org/gitlab-ce!21401
2018-09-14Merge branch '50824-fix-prepend-concern' into 'master'Robert Speicher
CE: Properly implement prepending for Concern See merge request gitlab-org/gitlab-ce!21444
2018-09-14Merge branch 'sh-fix-multipart-upload-signed-urls' into 'master'Nick Thomas
Fix object storage uploads not working with AWS v2 Closes gitlab-workhorse#181 See merge request gitlab-org/gitlab-ce!21731
2018-09-14Fix object storage uploads not working with AWS v2Stan Hu
Because we were passing query strings as symbols, the fog-aws storage driver was omitting the uploadId and partNumber query strings from the signature in multipart uploads. This fix makes AWS and Ceph work with v2 signatures. See: https://github.com/fog/fog-aws/blob/v3.0.0/lib/fog/aws/storage.rb#L733 Closes https://gitlab.com/gitlab-org/gitlab-workhorse/issues/181
2018-09-14Resolve "Add functionality to change what email address online actions ↵Nick Thomas
commit using"
2018-09-14Merge branch 'feature/runner-state-filter-for-admin-view' into 'master'Grzegorz Bizon
Feature: State filter for admin runners view See merge request gitlab-org/gitlab-ce!19625
2018-09-14Always create `gitlab` service account and service account token regardless ↵Thong Kuah
of ABAC/RBAC This also solves the async nature of the automatic creation of default service tokens for service accounts. It also makes explicit which service account token we always use. create cluster role binding only if the provider has legacy_abac disabled.
2018-09-14Teach GitLab how to create Secret of type ServiceAccountTokenThong Kuah
Add create_secret to KubeClient
2018-09-14Teach GoogleApi::CloudPlatform::Client#projects_zones_clusters_create about ↵Thong Kuah
legacy_abac argument Fix spec warning: removing `initialize' may cause serious problems Actually verify that `service.create_cluster` is called with expected request_body and other args
2018-09-13Merge branch 'rubocop-code-reuse' into 'master'Robert Speicher
Add RuboCop cops to enforce code reusing rules See merge request gitlab-org/gitlab-ce!21391
2018-09-13Merge branch ↵Grzegorz Bizon
'42861-move-include-external-files-in-gitlab-ci-yml-from-starter-to-libre' into 'master' Resolve "Move "include external files in .gitlab-ci.yml" from Starter to Libre" Closes #42861 See merge request gitlab-org/gitlab-ce!21603
2018-09-12Resolve "500 Internal Server Error: Deleting branch of deleted project"🙈 jacopo beschi 🙉
2018-09-12Merge branch 'clean-gitlab-git' into 'master'Douwe Maan
Remove Rugged and shell code from Gitlab::Git Closes gitaly#1124 See merge request gitlab-org/gitlab-ce!21488
2018-09-12replace cond. assignment by default param valueAlexis Reigel
2018-09-12Remove Rugged and shell code from Gitlab::GitAlejandro Rodríguez
2018-09-12Initialize projects with readmeSteve
2018-09-12Merge branch ↵Stan Hu
'51271-error-500-due-to-encoding-issues-when-when-attempting-to-access-issues-api' into 'master' Resolve "Error 500 due to encoding issues when when attempting to access issues API" Closes #51271 See merge request gitlab-org/gitlab-ce!21680
2018-09-12Ensure the schema is loaded with post_migrations includedDJ Mountney
If doing a schema load, the post_migrations should also be marked as up, even if SKIP_POST_DEPLOYMENT_MIGRATIONS was set, otherwise future migration runs will be broken.
2018-09-12'code_block' closer to original implementationBrett Walker
- utilize the 'out' method to output the 'fence_info', which converts to utf8 - output 'sourcepos' again
2018-09-12Resolve "500 Internal Server Error: Cherrypick commit with empty branch name"🙈 jacopo beschi 🙉
2018-09-11Merge branch 'sh-support-adding-confirmed-emails' into 'master'Robert Speicher
Add ability to skip user email confirmation with API Closes #50876 See merge request gitlab-org/gitlab-ce!21630
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11Stack rescue blocks for Gitlab::Ci::Config#initializeMatija Čupić
2018-09-11Add missing frozen string literal commentsMatija Čupić
2018-09-11Following the feedbacksLin Jen-Shin
2018-09-11Explain why we need PrependableLin Jen-Shin
2018-09-11Preserve prepend semantics for RubyLin Jen-Shin
However we still want to make ClassMethods work! And we'll need to fix codes using the wrong include/prepend along the way. There were a lot of misuses.
2018-09-11Fix Override. Properly define prependedLin Jen-Shin
We should never be sloppy!
2018-09-11Properly implement prepending for ConcernLin Jen-Shin
2018-09-11Merge branch '51318-project-export-broken-when-avatar-is-set' into 'master'Grzegorz Bizon
Resolve "Project export broken when avatar is set" Closes #51318 See merge request gitlab-org/gitlab-ce!21649
2018-09-11use find instead of reject in avatar export fileJames Lopez
2018-09-11fix avatar restorerJames Lopez
2018-09-11Add ability to skip user email confirmation with APIStan Hu
This gives admins the ability to send a `skip_confirmation` flag in the `POST /users/:id/email` API endpoint to skip the verification step and assume the given e-mail address is verified. Closes #50876
2018-09-11Add additional stub methods for FakeApplicationSettingStan Hu
In a migration spec, a default ApplicationSetting object may fail to create due to an unknown attribute and fall back to FakeApplicationSetting. FakeApplicationSetting appears to be missing a number of methods that are needed (https://gitlab.com/gitlab-org/gitlab-ce/issues/47491). This commit adds the ones needed to make an EE spec pass. Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/7543