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
2017-12-20Merge branch '38318-search-merge-requests-with-api' into 'master'Rémy Coutable
Resolve "Search merge-requests with API" Closes #38318 See merge request gitlab-org/gitlab-ce!16029
2017-12-20Add optional `search` param for Merge Requests APIMark Fletcher
2017-12-20Employ declared_params in finder methods for MR and Issue API listsMark Fletcher
- Ensure that unwanted params are no passed to actual finder classes
2017-12-20Only include the user's ID in the time_spent command's update hashRobert Speicher
Previously, this would include the entire User record in the update hash, which was rendered in the response using `to_json`, erroneously exposing every attribute of that record, including their (now removed) private token. Now we only include the user ID, and perform the lookup on-demand.
2017-12-19Merge branch 'zj-gitaly-pipelines-n-1' into 'master'Robert Speicher
Improve performance of Pipelines#index.json See merge request gitlab-org/gitlab-ce!14846
2017-12-19Load commit in batches for pipelines#indexZeger-Jan van de Weg
Uses `list_commits_by_oid` on the CommitService, to request the needed commits for pipelines. These commits are needed to display the user that created the commit and the commit title. This includes fixes for tests failing that depended on the commit being `nil`. However, now these are batch loaded, this doesn't happen anymore and the commits are an instance of BatchLoader.
2017-12-18Merge branch 'sh-add-schedule-pipeline-run-now' into 'master'Kamil Trzciński
Add button to run scheduled pipeline immediately Closes #38741 See merge request gitlab-org/gitlab-ce!15700
2017-12-15Merge branch 'no-ivar-in-modules' into 'master'Robert Speicher
Add cop to make sure we don't use ivar in a module See merge request gitlab-org/gitlab-ce!12800
2017-12-15Merge branch 'dm-ldap-email-readonly' into 'master'Sean McGivern
Make sure user email is read only when synced with LDAP Closes #41033 See merge request gitlab-org/gitlab-ce!15915
2017-12-15Make sure user email is read only when synced with LDAPDouwe Maan
2017-12-15Backport changes from EELin Jen-Shin
2017-12-15Merge branch 'gitaly-conflicts-prep' into 'master'Sean McGivern
Simplify conflict resolver interface See merge request gitlab-org/gitlab-ce!15897
2017-12-15Merge branch '41016-import-gitlab-shell-projects' into 'master'Douwe Maan
Import gitlab-shell gitlab_projects.rb as at v5.10.2 Closes #41016 See merge request gitlab-org/gitlab-ce!15853
2017-12-15Merge remote-tracking branch 'upstream/master' into no-ivar-in-modulesLin Jen-Shin
* upstream/master: (671 commits) Make rubocop happy Use guard clause Improve language Prettify Use temp branch Pass info about who started the job and which job triggered it Docs: add indexes for monitoring and performance monitoring clearer-documentation-on-inline-diffs Add docs for commit diff discussion in merge requests sorting for tags api Clear BatchLoader after each spec to prevent holding onto records longer than necessary Include project in BatchLoader key to prevent returning blobs for the wrong project moved lfs_blob_ids method into ExtractsPath module Converted JS modules into exported modules spec fixes Bump gitlab-shell version to 5.10.3 Clear caches before updating MR diffs Use new Ruby version 2.4 in GitLab QA images moved lfs blob fetch from extractspath file Update GitLab QA dependencies ...
2017-12-15Merge branch 'lfs-badge' into 'master'Douwe Maan
Added LFS badge to indicate LFS tracked files Closes #15567 See merge request gitlab-org/gitlab-ce!15845
2017-12-14Simplify conflict resolver interfaceAlejandro Rodríguez
This does two things: - Pass commit oids instead of `Gitlab::Git::Commit`s. We only need the former. - Depend on only the target repository for conflict listing. For conflict resolution, treat one repository as a remote one so that we can implement it as such in Gitaly.
2017-12-14Merge branch 'feature/migrate-merge-base-to-gitaly' into 'master'Robert Speicher
Migrate Gitlab::Git::Repository#merge_base_commit to Gitaly Closes gitaly#808 See merge request gitlab-org/gitlab-ce!15770
2017-12-14Merge branch 'rc/update-flipper' into 'master'Robert Speicher
Update flipper to 0.11.0 and take advantage of the new features See merge request gitlab-org/gitlab-ce!15920
2017-12-14Import gitlab_projects.rb from gitlab-shellNick Thomas
By importing this Ruby code into gitlab-rails (and gitaly-ruby), we avoid 200ms of startup time for each gitlab_projects subprocess we are eliminating. By not having a gitlab_projects subprocess between gitlab-rails / sidekiq and any git subprocesses (e.g. for fork_project, fetch_remote, etc, calls), we can also manage these git processes more cleanly, and avoid sending SIGKILL to them
2017-12-14sorting for tags apihaseeb
2017-12-14moved lfs_blob_ids method into ExtractsPath modulePhil Hughes
2017-12-14Merge branch 'dm-dedicated-sidekiq-queues' into 'master'Sean McGivern
Use a dedicated queue for each Sidekiq worker See merge request gitlab-org/gitlab-ce!15882
2017-12-14moved lfs blob fetch from extractspath filePhil Hughes
2017-12-14Update flipper to 0.11.0 and take advantage of the new featuresRémy Coutable
- Added an ActiveSupport (using Rails.cache) caching adapter - Overview of the new features can be found at https://johnnunemaker.com/flippin-features-at-runtime/ - Full Changelog can be found at https://github.com/jnunemaker/flipper/blob/v0.11.0/Changelog.md Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-13Merge branch '13695-order-contributors-in-api' into 'master'Rémy Coutable
Adds ordering to projects contributors in API Closes #13695 See merge request gitlab-org/gitlab-ce!15469
2017-12-13Merge branch 'pawel/cache_feature_check_for_5_minutes_for_method_call' into ↵Robert Speicher
'master' Cache feature check for 1 minute for MethodCall instrumentation toggle See merge request gitlab-org/gitlab-ce!15800
2017-12-13Merge branch 'add-tcp-check-rake-task' into 'master'Rémy Coutable
Add a gitlab:tcp_check rake task See merge request gitlab-org/gitlab-ce!15759
2017-12-13Adds ordering to projects contributors in APIJacopo
Allows ordering in GET api/v4/projects/:project_id/repository/contributors through `order_by` and `sort` params. The available `order_by` options are: name|email|commits. The available `sort` options are: asc|desc.
2017-12-13Migrate Gitlab::Git::Repository#merge_base_commit to GitalyAhmad Sherif
Closes gitaly#808
2017-12-13Add a gitlab:tcp_check rake taskNick Thomas
This allows us to avoid relying on telnet / netcat being installed
2017-12-13Address review comments with playing pipeline schedulerStan Hu
2017-12-13Fix Rubocop offense and use a symbol instead of a stringStan Hu
2017-12-13Add spec for ActionRateLimiterStan Hu
2017-12-13Add rate limiting to guard against excessive scheduling of pipelinesStan Hu
2017-12-13Use class variable and add rubocop exceptionPawel Chojnacki
2017-12-12Merge branch ↵Robert Speicher
'tmlee/gitlab-ce-28004-consider-refactoring-member-view-by-using-presenter' into 'master' Refactor member view by using presenter Closes #28004 See merge request gitlab-org/gitlab-ce!15715
2017-12-12Merge branch 'zj-memoization-mr-commits' into 'master'Sean McGivern
Use memoization for commits on diffs See merge request gitlab-org/gitlab-ce!15857
2017-12-12Expire feature flag cache after 1minutePawel Chojnacki
2017-12-12use class variables instead of CONSTANTsPawel Chojnacki
2017-12-12move call_measurement_enabled? method to the bottom of the filePawel Chojnacki
2017-12-12Use AtomicFixNum to implement CAS isolated cache update.Pawel Chojnacki
i.e. Using compare and swap we update the expires_at value. The thread that actually is able to update this value will also set the cache holding method_call enabled state
2017-12-12Implemente measurement enabled cache using AtomicReferencePawel Chojnacki
2017-12-12Set cache expire only once the cache is filled,Pawel Chojnacki
to avoid situation where old result is returned in parallel thread.
2017-12-12Implement simple in memory cache that expires after 5 minutesPawel Chojnacki
2017-12-12Cache feature check for 5 minutes for MethodCall instrumentation togglePawel Chojnacki
2017-12-12Present member collection at the controller levelRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-12Merge branch 'repo-write-ref-client-prep' into 'master'Robert Speicher
Move Repository#write_ref to Git::Repository#write_ref Closes gitaly#793 See merge request gitlab-org/gitlab-ce!15712
2017-12-12Use a dedicated queue for each workerDouwe Maan
2017-12-12Use memoization for commits on diffsZeger-Jan van de Weg
The Gitaly CommitService is being hammered by n + 1 calls, mostly when finding commits. This leads to this gRPC being turned of on production: https://gitlab.com/gitlab-org/gitaly/issues/514#note_48991378 Hunting down where it came from, most of them were due to MergeRequest#show. To prove this, I set a script to request the MergeRequest#show page 50 times. The GDK was being scraped by Prometheus, where we have metrics on controller#action and their Gitaly calls performed. On both occations I've restarted the full GDK so all caches had to be rebuild. Current master, 806a68a81f1baee, needed 435 requests After this commit, 154 requests
2017-12-12Move Repository#write_ref to Git::Repository#write_refKim "BKC" Carlbäcker