summaryrefslogtreecommitdiff
path: root/spec/models
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'feature/migrate-can-be-merged-to-gitaly' into 'master'Grzegorz Bizon2018-01-151-14/+24
|\ | | | | | | | | | | | | Migrate Repository#can_be_merged? to Gitaly Closes gitaly#893 See merge request gitlab-org/gitlab-ce!16316
| * Migrate Repository#can_be_merged? to Gitalyfeature/migrate-can-be-merged-to-gitalyAhmad Sherif2018-01-111-14/+24
| |
* | Display related merge requests in commit detail pageHiroyuki Sato2018-01-123-0/+68
| |
* | Merge branch '41807-15665-consistently-502s-because-it-fetches-every-commit' ↵41988-updating-the-markdown-cache-version-does-not-flush-the-appearances-cacheRémy Coutable2018-01-122-3/+80
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | into 'master' Resolve "!15665 consistently 502s because it fetches every commit" Closes #41807 See merge request gitlab-org/gitlab-ce!16320
| * | Only search for MR revert commits on notes after MR was merged41807-15665-consistently-502s-because-it-fetches-every-commitSean McGivern2018-01-122-3/+80
| |/ | | | | | | | | | | | | | | | | | | If we search for notes before the MR was merged, we have to load every commit that was ever part of the MR, or mentioned in a push. In extreme cases, this can be tens of thousands of commits to load, but we know they can't revert the merge commit, because they are from before the MR was merged. In the (rare) case that we don't have a `merged_at` value for the MR, we can still search all notes.
* | Merge branch 'mk-fix-permanent-redirect-validation' into 'master'Douwe Maan2018-01-121-0/+60
|\ \ | | | | | | | | | | | | | | | | | | Fix Route validation when conflicting permanent redirects exist Closes gitlab-com/support-forum#2883 and #41786 See merge request gitlab-org/gitlab-ce!16397
| * | Add RedirectRoute factoryMichael Kozono2018-01-111-3/+3
| | |
| * | Fix Rubocop offenseMichael Kozono2018-01-111-1/+1
| | |
| * | Revert "Revert "Fix Route validation for unchanged path""Michael Kozono2018-01-111-0/+60
| | | | | | | | | | | | This reverts commit 3576d59ae95a61dd20e997a619dbc6c8e8a70276.
* | | Merge branch 'feature/migrate-is-rebase-in-progress-to-gitaly' into 'master'Robert Speicher2018-01-111-23/+29
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Migrate rebase_in_progress? to Gitaly Closes gitaly#866 See merge request gitlab-org/gitlab-ce!16286
| * | Migrate rebase_in_progress? to Gitalyfeature/migrate-is-rebase-in-progress-to-gitalyAhmad Sherif2018-01-101-23/+29
| | | | | | | | | | | | Closes gitaly#866
* | | Merge branch 'remove-soft-removals' into 'master'Douwe Maan2018-01-114-22/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove soft removals related code Closes #37447 See merge request gitlab-org/gitlab-ce!15789
| * | | Remove soft removals related codeYorick Peterse2018-01-084-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes all usage of soft removals except for the "pending delete" system implemented for projects. This in turn simplifies all the query plans of the models that used soft removals. Since we don't really use soft removals for anything useful there's no point in keeping it around. This _does_ mean that hard removals of issues (which only admins can do if I'm not mistaken) can influence the "iid" values, but that code is broken to begin with. More on this (and how to fix it) can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/31114. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
* | | | Merge branch 'git-write-ref-prep' into 'master'Robert Speicher2018-01-101-3/+2
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Gitlab::Git::Repository#write_ref client-prep take 2 Closes gitaly#793 See merge request gitlab-org/gitlab-ce!16287
| * | | Client-prep Gitlab::Git::Repository#write_refgit-write-ref-prepKim "BKC" Carlbäcker2018-01-091-3/+2
| | |/ | |/|
* | | Fix hooks not being set up properly for bare import Rake tasksh-fix-bare-import-hooksStan Hu2018-01-091-0/+22
| | | | | | | | | | | | Closes #41739
* | | Revert "Fix Route validation for unchanged path"Michael Kozono2018-01-091-60/+0
| | | | | | | | | | | | This reverts commit 8040edcce8b4e736b4f4857e6709f94aeb5e274c.
* | | Revert "Add test for permanent redirects of descendants"Michael Kozono2018-01-091-14/+0
| | | | | | | | | | | | This reverts commit a2cb92495c3149b69eb734596e80fbdd54b0b2dc.
* | | Add test for permanent redirects of descendantsMichael Kozono2018-01-091-0/+14
| | |
* | | Fix Route validation for unchanged pathMichael Kozono2018-01-091-0/+60
|/ /
* | Merge branch '28260-fix-pages-custom-domain-url' into 'master'Grzegorz Bizon2018-01-081-1/+1
|\ \ | |/ |/| | | | | | | | | Resolve "Fix wrong output protocol pattern when adding custom domain to Pages" Closes #28260 See merge request gitlab-org/gitlab-ce!16279
| * Generate HTTP URLs for custom Pages domains when appropriateNick Thomas2018-01-081-1/+1
| |
* | Merge branch 'remove-commit-tree' into 'master'Sean McGivern2018-01-081-1/+0
|\ \ | | | | | | | | | | | | Remove the Commit#tree method See merge request gitlab-org/gitlab-ce!16236
| * | Remove the Commit#tree methodremove-commit-treeJacob Vosmaer2018-01-041-1/+0
| | |
* | | Merge branch '3968-protected-branch-is-not-set-for-default-branch-on-import' ↵Douwe Maan2018-01-081-0/+42
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | into 'master' Protected branch is now created for default branch on import Closes #3968 See merge request gitlab-org/gitlab-ce!16198
| * | Protected branch is now created for default branch on import3968-protected-branch-is-not-set-for-default-branch-on-importTiago Botelho2018-01-061-0/+42
| |/
* | Merge branch '41249-clearing-the-cache' into 'master'Kamil Trzciński2018-01-061-0/+36
|\ \ | | | | | | | | | | | | | | | | | | Resolve "Clearing the cache" Closes #41249 See merge request gitlab-org/gitlab-ce!16067
| * \ Merge branch 'master' into 41249-clearing-the-cacheMatija Čupić2018-01-056-32/+160
| |\ \
| * \ \ Merge branch 'master' into 41249-clearing-the-cacheMatija Čupić2018-01-0426-90/+370
| |\ \ \
| * | | | Fix faulty Ci::Build#cache specMatija Čupić2018-01-041-1/+1
| | | | |
| * | | | Rename Project#cache_index to jobs_cache_indexMatija Čupić2018-01-041-4/+4
| | | | |
| * | | | Use Project.cache_index in Build#cacheMatija Čupić2017-12-221-0/+36
| | | | |
* | | | | Move git operations for multi_action into Gitlab::GitAlejandro Rodríguez2018-01-051-39/+7
| |_|/ / |/| | |
* | | | Use --left-right and --max-count for counting diverging commitsLin Jen-Shin (godfat)2018-01-051-0/+9
| | | |
* | | | Merge branch 'jprovazn-rebase' into 'master'Filipa Lacerda2018-01-052-6/+59
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport 'Rebase' feature from EE to CE Closes #40301 See merge request gitlab-org/gitlab-ce!16071
| * | | | Backport 'Rebase' feature from EE to CEjprovazn-rebaseJan Provaznik2018-01-052-6/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a project uses fast-forward merging strategy user has to rebase MRs to target branch before it can be merged. Now user can do rebase in UI by clicking 'Rebase' button instead of doing rebase locally. This feature was already present in EE, this is only backport of the feature to CE. Couple of changes: * removed rebase license check * renamed migration (changed timestamp) Closes #40301
* | | | | Merge branch 'remove-project-repo' into 'master'Sean McGivern2018-01-052-7/+11
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Remove the Project#repo method See merge request gitlab-org/gitlab-ce!16238
| * | | | Fix specsremove-project-repoJacob Vosmaer2018-01-052-7/+11
| | |_|/ | |/| |
* | | | Create Kubernetes based on Application TemplatesMayra Cabrera2018-01-043-19/+81
| |_|/ |/| |
* | | Merge branch 'mdelaossa/gitlab-ce-31995-project-limit-default-fix'Dmitriy Zaporozhets2018-01-041-0/+17
|\ \ \ | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | User#projects_limit remove DB default and added NOT NULL constraintMario de la Ossa2017-12-301-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is required because otherwise if a user is created with a value for `projects_limit` that matches the DB default, it gets overwritten by `current_application_settings.default_projects_limit`. By removing the default we once again can allow a user to be created with a limit of 10 projects without the risk that it'll change to 10000
* | | | Merge branch 'conditionally-eager-load-event-target-authors' into 'master'Douwe Maan2018-01-041-0/+16
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Eager load event target authors whenever possible Closes #41618 See merge request gitlab-org/gitlab-ce!16199
| * | | Eager load event target authors whenever possibleconditionally-eager-load-event-target-authorsYorick Peterse2018-01-041-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that the "author" association of an event's "target" association is eager loaded whenever the "target" association defines an "author" association. This in turn solves the N+1 query problem we first tried to solve in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15788 but caused problems when displaying milestones as those don't define an "author" association. The approach in this commit does mean that the authors are _always_ eager loaded since this takes place in the "belongs_to" block. This however shouldn't pose too much of a problem, and as far as I can tell there's no real way around this unfortunately.
* | | | Merge branch 'osw-introduce-merge-request-statistics' into 'master'Sean McGivern2018-01-043-10/+50
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Improve closed/merged events queries performance on Projects::MergeRequestsController#show.json See merge request gitlab-org/gitlab-ce!15642
| * | | | Cache merged and closed events data in merge_request_metrics tableOswaldo Ferreira2018-01-023-10/+50
| |/ / /
* | | | 41054-Disallow creation of new Kubernetes integrationsMayra Cabrera2018-01-042-0/+119
| | | |
* | | | Add spec for Project#write_repository_configDouglas Barbosa Alexandre2018-01-031-0/+22
| | | |
* | | | Refactoring Project#write_repository_configDouglas Barbosa Alexandre2018-01-031-11/+11
| | | |
* | | | Fix TestEnv.copy_repo to use disk_path instead of full_pathDouglas Barbosa Alexandre2018-01-032-2/+2
| | | |
* | | | Update project full path in .git/config when renaming namespaceDouglas Barbosa Alexandre2018-01-031-0/+14
| | | |