summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2023-05-151-0/+90
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2023-04-251-25/+37
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-12-221-14/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-11-231-0/+17
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-09-141-0/+16
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-07-281-13/+31
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-05-241-5/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-02-031-11/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-01-251-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-11-231-56/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-10-131-11/+7
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-06-291-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-06-151-0/+86
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-06-101-3/+12
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-04-071-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-02-011-0/+13
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-01-191-0/+13
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-01-131-21/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-12-211-0/+21
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-081-1/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-241-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-121-81/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-111-0/+25
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-131-50/+179
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-071-0/+21
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-051-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-161-3/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-081-0/+11
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-181-0/+14
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-071-1/+38
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-031-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-091-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-301-72/+0
|
* Fix moving issues API failing when text includes commit URLssh-fix-issue-move-apiStan Hu2019-08-281-0/+18
| | | | | | | | | | | | | | | 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
* Fix inline rendering of SVGs from current repo17276-breakage-in-displaying-svg-in-the-same-repositoryHeinrich Lee Yu2019-08-021-0/+1
| | | | Changes generated URL to raw instead of blob
* Speed up commit loads by disabling BatchLoader replace_methodsStan Hu2019-06-131-0/+8
| | | | | | | | | | | | | | | | | | | | 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
* Add # frozen_string_literal to spec/modelsThong Kuah2019-04-011-0/+2
| | | | Adds `# frozen_string_literal: true` to spec/models ruby files
* Add back Rugged support for retrieving a commit tree entryStan Hu2019-03-081-1/+15
| | | | | | | | | | | | | | | | | | | | 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.
* [master] Pipelines section is available to unauthorized usersKamil Trzciński2019-01-311-0/+1
|
* Truncate merge request titles with periods instead of ellipsisStan Hu2018-12-061-1/+1
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54862
* Match users better by their private commit emailNick Thomas2018-11-191-1/+23
| | | | | | 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.
* Merge branch 'fix-committer-typo' into 'master'Rémy Coutable2018-09-251-4/+4
|\ | | | | | | | | | | | | Fix committer typo Closes #51808 See merge request gitlab-org/gitlab-ce!21899
| * Fix committer typoGeorge Tsiolis2018-09-251-4/+4
| |
* | Use `Gitlab::SafeRequestStore` in more placesMichael Kozono2018-09-241-1/+1
|/ | | | | | 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?`.
* Make it clearer when Commit#description returns no_commit_messageSean McGivern2018-08-211-4/+5
|
* to avoid “NoMethodError (undefined method `split' for nil:NilClass)” ↵yisiliang2018-08-211-0/+5
| | | | while safe_message is nil.
* Client-side fix for Gitaly TreeEntry buggitaly-tree-entry-dot-dotJacob Vosmaer2018-06-261-20/+11
|
* Preload pipeline data for project pipelinesYorick Peterse2018-05-171-4/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Workhorse to send raw diff and patch for commitsZeger-Jan van de Weg2018-05-161-1/+0
| | | | | | | | | | | | | 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
* Return nil on empty pathZeger-Jan van de Weg2018-04-171-0/+5
| | | | | | | The execution path wasn't clear from the error, but either way this is a fix. Closes gitlab-org/gitaly#1115