summaryrefslogtreecommitdiff
path: root/spec/models/repository_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Migrate Gitlab::Git::Repository#cherry_pick to GitalyAhmad Sherif2017-12-041-25/+35
| | | | Closes gitaly#737
* Move identical merged branch check to merged_branch_namesLin Jen-Shin2017-11-231-18/+0
|
* Use Redis cache for branch existence checksJacob Vosmaer (GitLab)2017-11-211-0/+25
|
* Create a Wiki Repository's raw_repository properlyAlejandro Rodríguez2017-11-031-0/+20
|
* Fetch the merged branches at onceLin Jen-Shin (godfat)2017-10-271-0/+18
|
* Merge branch 'zj-commit-cache' into 'master'Sean McGivern2017-10-271-0/+20
|\ | | | | | | | | Cache commits on the repository model See merge request gitlab-org/gitlab-ce!14863
| * Cache commits on the repository modelZeger-Jan van de Weg2017-10-271-0/+20
| | | | | | | | | | | | | | | | | | | | | | Now, when requesting a commit from the Repository model, the results are not cached. This means we're fetching the same commit by oid multiple times during the same request. To prevent us from doing this, we now cache results. Caching is done only based on object id (aka SHA). Given we cache on the Repository model, results are scoped to the associated project, eventhough the change of two repositories having the same oids for different commits is small.
* | Avoid calling underlying methods on non-existing reposnon-existing-repo-optimizationAlejandro Rodríguez2017-10-201-6/+28
|/ | | | This saves us Rugged/gRPC invocations
* Merge Merge Requests via GitalyJacob Vosmaer2017-10-131-10/+20
|
* Cache issuable template namesSean McGivern2017-10-121-1/+3
| | | | | | | We were looking these up on each request to an issue page, because the form is pre-filled, as is the template dropdown. That was unnecessary: we could just treat these as 'special' repository files (like the rendered README) and cache them in Redis until they change on a push.
* Replaces `tag: true` into `:tag` in the specsJacopo2017-10-071-16/+16
| | | | | | Replaces all the explicit include metadata syntax in the specs (tag: true) into the implicit one (:tag). Added a cop to prevent future errors and handle autocorrection.
* Gitaly namespace service enabled for GitLabZeger-Jan van de Weg2017-10-051-0/+4
|
* Let fetch_ref pull from Gitaly instead of from diskJacob Vosmaer2017-10-041-5/+5
|
* Merge branch 'gitaly-delete-branch' into 'master'Douwe Maan2017-10-041-46/+67
|\ | | | | | | | | Implement OperationService.UserDeleteBranch Gitaly RPC See merge request gitlab-org/gitlab-ce!14603
| * Add OperationService.UserDeleteBranch Gitaly RPCgitaly-delete-branchAlejandro Rodríguez2017-10-031-46/+67
| |
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ff_port_from_eeValery Sizov2017-10-021-64/+128
|\ \ | |/
| * Merge branch 'gitaly-add-branch' into 'master'Sean McGivern2017-10-021-25/+50
| |\ | | | | | | | | | | | | | | | | | | Implement OperationService.UserAddBranch Gitaly RPC Closes gitaly#544 See merge request gitlab-org/gitlab-ce!14522
| | * Implement OperationService.UserAddBranch Gitaly RPCgitaly-add-branchAlejandro Rodríguez2017-09-301-25/+50
| | |
| * | Merge branch 'remote_user' into 'master'Douwe Maan2017-10-021-3/+3
| |\ \ | | | | | | | | | | | | | | | | Add GL_USERNAME environment variable for hooks See merge request gitlab-org/gitlab-ce!13264
| | * | Add username as GL_USERNAME in hooks (http)David Turner2017-09-291-3/+3
| | |/ | | | | | | | | | | | | | | | | | | | | | When calling pre-receive, post-receive, and update hooks, add the GitLab username as the GL_USERNAME environment variable. This patch only handles cases where pushes are over http, or via the web interface. Later, we will address the ssh case.
| * | Fix pushes to an empty repository not invalidating has_visible_content? cacheStan Hu2017-10-011-1/+12
| |/ | | | | | | | | | | | | `Repository#has_visible_content?` used to rely on the cached count of local branches, but since it is now an independently cached value it needs to be invalidated on its own. Closes #38646
| * Make Repository#has_visible_content more efficientJacob Vosmaer (GitLab)2017-09-291-10/+20
| |
| * Migrate Gitlab::Git::Repository#add_tag to Gitalyfeature/migrate-repository-add-tag-to-gitalyAhmad Sherif2017-09-291-21/+29
| | | | | | | | Closes gitaly#601
| * Merge branch 'feature/migrate-repository-rm-tag-to-gitaly' into 'master'Robert Speicher2017-09-281-4/+14
| |\ | | | | | | | | | | | | | | | | | | Migrate Git::Repository#rm_tag to Gitaly Closes gitaly#562 See merge request gitlab-org/gitlab-ce!14388
| | * Migrate Git::Repository#rm_tag to GitalyAhmad Sherif2017-09-281-4/+14
| | | | | | | | | | | | Closes gitaly#562
* | | Merge branch 'master' into ff_port_from_eeEric Eastwood2017-09-281-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | Conflicts: app/models/project.rb db/schema.rb
| * | Support custom attributes on usersMarkus Koller2017-09-281-1/+1
| |/
* | Add spec for Repository#ff_merge (ported from EE)Valery Sizov2017-09-191-0/+28
|/
* Prepare cherry-pick and revert for migration to GitalyJacob Vosmaer (GitLab)2017-09-191-11/+13
|
* Prepare Repository#merge for migration to Gitalyoperation-service-mergeJacob Vosmaer2017-09-151-14/+8
|
* Rename Gitlab::Git::Committer to UserJacob Vosmaer2017-09-141-12/+12
|
* Merge branch 'move-git-operation-service' into 'master'Sean McGivern2017-09-041-15/+15
|\ | | | | | | | | Move GitOperationService to Gitlab::Git See merge request !13984
| * Move GitOperationService to Gitlab::Gitmove-git-operation-serviceJacob Vosmaer2017-09-011-15/+15
| |
* | Merge branch 'git-operation-service-to-git' into 'master'Sean McGivern2017-09-041-26/+25
|\ \ | |/ | | | | | | Prepare GitOperationService for moving to Gitlab::Git See merge request !13773
| * Fix whitespacegit-operation-service-to-gitJacob Vosmaer2017-09-011-1/+1
| |
| * Remove empty lineJacob Vosmaer2017-09-011-1/+0
| |
| * Restore with_branch cache specJacob Vosmaer2017-09-011-0/+18
| |
| * Prepare GitOperationService for move to Gitlab::GitJacob Vosmaer2017-08-311-40/+22
| |
* | Merge branch 'sm-cherry-pick-list-commits-in-message' into 'master'Sean McGivern2017-09-011-1/+4
|\ \ | |/ |/| | | | | Add 'from commit' information to cherry-picked commits See merge request !13475
| * Extended UTs for the new cherry-pick message formatSaverio Miroddi2017-08-161-1/+4
| |
* | Merge branch 'perf.slow-issuable' into 'master'Sean McGivern2017-08-301-1/+35
|\ \ | | | | | | | | | | | | | | | | | | Perf.slow issuable Closes #32844 See merge request !13685
| * | Further break with_repo_branch_commit into partsperf.slow-issuableLin Jen-Shin2017-08-291-1/+35
| | | | | | | | | | | | | | | So it's more clear what could happen. Also add more tests about the behaviour.
* | | replace `is_ancestor?` with `ancestor?`Maxim Rydkin2017-08-291-11/+11
|/ /
* | Move GitHooksService to Gitlab::GitJacob Vosmaer2017-08-231-8/+8
| |
* | Make gl_repository a G::G::Repository attributeJacob Vosmaer2017-08-231-2/+2
| |
* | Decouple GitOperationService from UserJacob Vosmaer2017-08-231-10/+11
|/
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-08-111-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 36089-handle-ref-failure-better * upstream/master: (62 commits) Update gitlab.po: Missing 'r' in "Fouché" that comes from "Fourcher" verb. Docs: update user docs index Fix minor typos in views Fix Layout/SpaceBeforeBlockBraces violation in bin/changelog_spec Merge branch 'rs-alphanumeric-ssh-params' into 'security-9-4' Merge branch 'import-symlinks-9-3' into 'security-9-3' Fix wrong method call on prometheus histogram Document new all-in-one Helm chart - docs Fix 404 on link path Fix line numbers not matching up to code in code viewer. Hide overflow-x on collapsed sidebar removed global use of breakpoint checker Increase performance of the breakpoint size checker Filter sensitive query string parameters from NGINX access logs Added a template for database changes Render new issue link in failed job as a regular link instead of a UJS one Include RE2 in the upgrade docs Remove affix plugin from issuable sidebar with new navigation Fix linter error alternative route for download archive ...
| * Enable the Layout/SpaceBeforeBlockBraces coprc/enable-the-Layout/SpaceBeforeBlockBraces-copRémy Coutable2017-08-091-1/+1
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Detect if we didn't create the ref soonerLin Jen-Shin2017-08-091-0/+21
|/
* Migrate Repository#find_commits_by_message to Gitalyfeature/migrate-find-commits-by-message-to-gitalyAhmad Sherif2017-08-071-9/+21
| | | | Closes gitaly#443