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
AgeCommit message (Collapse)Author
2020-07-20Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot
2020-03-12Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-03-11Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-02-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-02-07Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-02-05Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-01-16Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-01-08Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-07Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-03Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-10-09Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-30Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-08-28Fix moving issues API failing when text includes commit URLsStan Hu
When a issue is moved from one project to another, all associated Markdown text is rewritten in the context of the new project. If the note contained a link to a commit URL, `CommitRewriter#rewrite` would fail because `Commit#link_reference_pattern` would match `nil` `commit` values in the HTML generated from the Markdown. These `nil` values were passed along to `Project#commits_by` because `Commit#reference_valid?` was always returning `true`. To prevent this issue from happening, we tighten up the check for `Commit#reference_valid?` to look for valid SHA values. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66666
2019-08-02Fix inline rendering of SVGs from current repoHeinrich Lee Yu
Changes generated URL to raw instead of blob
2019-06-14Speed up commit loads by disabling BatchLoader replace_methodsStan Hu
We've seen a significant performance penalty when using `BatchLoader#__replace_with!`. This defines methods on the batch loader that proxy to the 'real' object using send. The alternative is `method_missing`, which is slower. However, we've noticed that `method_missing` can be faster if: 1. The objects being loaded have a large interface. 2. We don't call too many methods on the loaded object. In production, we've seen the rendering times of the merge request widget increase as a result of loading commit data. BatchLoader attempts to call replace_methods on the lazy object, but this has a significant performance penalty. Disabling this mode (https://github.com/exAspArk/batch-loader/pull/45) appears to cut load times by about 50% for MergeRequestsController#show. Relates to https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6941
2019-04-01Add # frozen_string_literal to spec/modelsThong Kuah
Adds `# frozen_string_literal: true` to spec/models ruby files
2019-03-09Add back Rugged support for retrieving a commit tree entryStan Hu
This brings back some of the changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20176/diffs. We discovered another N+1 that hits Gitaly `TreeEntry` via the `RelativeLinkFilter`: https://gitlab.com/gitlab-org/gitlab-ce/issues/58657. When a blob is loaded with many relative links, `TreeEntry` is called for each link to scan the URI type. There are multiple paths that hit Gitaly `TreeEntry`, and https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25706 did not cover all cases. This commit covers another common use case. For users using Gitaly on top of NFS, accessing the Git data directly via Rugged may be faster than going through than Gitaly. This merge request introduces the feature flag `rugged_commit_tree_entry` to activate the Rugged method.
2019-01-31[master] Pipelines section is available to unauthorized usersKamil Trzciński
2018-12-07Truncate merge request titles with periods instead of ellipsisStan Hu
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54862
2018-11-19Match users better by their private commit emailNick Thomas
Private commit emails were introduced in !22560, but some parts of GitLab were not updated to take account of them. This commit adds support in places that were missed.
2018-09-25Merge branch 'fix-committer-typo' into 'master'Rémy Coutable
Fix committer typo Closes #51808 See merge request gitlab-org/gitlab-ce!21899
2018-09-25Fix committer typoGeorge Tsiolis
2018-09-24Use `Gitlab::SafeRequestStore` in more placesMichael Kozono
Even if it doesn’t save lines of code, since people will tend to use code they’ve seen. And `SafeRequestStore` is safer since you don’t have to remember to check `RequestStore.active?`.
2018-08-21Make it clearer when Commit#description returns no_commit_messageSean McGivern
2018-08-21to avoid “NoMethodError (undefined method `split' for nil:NilClass)” ↵yisiliang
while safe_message is nil.
2018-06-26Client-side fix for Gitaly TreeEntry bugJacob Vosmaer
2018-05-17Preload pipeline data for project pipelinesYorick Peterse
When displaying the pipelines of a project we now preload the following data: 1. Authors of the commits that belong to these pipelines 2. The number of warnings per pipeline, which is used by Ci::Pipeline#has_warnings? == Commit Authors Previously this data was queried for every Commit separately, leading to 20 SQL queries being executed in the worst case. With an average of 3 to 5 milliseconds per SQL query this could result in 100 milliseconds being spent in _just_ getting Commit authors. To preload this data Commit#author now uses BatchLoader (through Commit#lazy_author), and a separate module Gitlab::Ci::Pipeline::Preloader is used to ensure all authors are loaded before they are used. == Number of warnings This changes Ci::Pipeline#has_warnings? so it supports preloading of the number of warnings per pipeline. This removes the need for executing a COUNT(*) query for every pipeline just to see if it has any warnings or not.
2018-05-16Workhorse to send raw diff and patch for commitsZeger-Jan van de Weg
Prior to this change, this was done through unicorn. In theory this could time out. Workhorse has been sending these raw patches and diffs for a long time and is stable in doing so. Added bonus is the fact that `Commit#to_patch` can be removed. `Commit#to_diff` too, which closes https://gitlab.com/gitlab-org/gitaly/issues/324 Closes https://gitlab.com/gitlab-org/gitaly/issues/1196
2018-04-17Return nil on empty pathZeger-Jan van de Weg
The execution path wasn't clear from the error, but either way this is a fix. Closes gitlab-org/gitaly#1115
2018-01-29Fix an order dependency in a specNick Thomas
2018-01-15Migrate Commit#uri_type to GitalyAhmad Sherif
Closes gitaly#915
2018-01-12Display related merge requests in commit detail pageHiroyuki Sato
2018-01-04Remove the Commit#tree methodJacob Vosmaer
2017-12-22Replace '.team << [user, role]' with 'add_role(user)' in specsblackst0ne
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-11-16Optimise getting the pipeline status of commitsYorick Peterse
This adds an optimised way of getting the latest pipeline status for a list of Commit objects (or just a single one).
2017-09-15Prepare Repository#merge for migration to GitalyJacob Vosmaer
2017-08-22Improve description of a Commit#cherry_pick_message UTSaverio Miroddi
2017-08-21Fix rubocop errors in spec/models/commit_spec.rbSaverio Miroddi
2017-08-21Add UT for cherry-pick of an existing merge that is not foundSaverio Miroddi
2017-08-21Reverse order of commits in MR cherry-pick messageSaverio Miroddi
Also improved the UT for better documenting this change.
2017-08-18Remove redundant statement part in a test suiteSaverio Miroddi
2017-08-17Correct the cherry-pick message for merge commitsSaverio Miroddi
The list of commits must be generated from the merge request, not from a diff of the branches.
2017-08-16Extended UTs for the new cherry-pick message formatSaverio Miroddi
2017-08-08Incorporate Gitaly's CommitService.FindCommit RPCAlejandro Rodríguez
2017-08-08Refactor Gitlab::Git::Commit to include a repositoryAlejandro Rodríguez
2017-08-03Change all `:empty_project` to `:project`Robert Speicher
2017-08-01Rename many path_with_namespace -> full_pathGabriel Mazetto
2017-07-27Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable
services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>