Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bd230fb2
Commit
bd230fb2
authored
Apr 08, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
3249ed2d
d2cd566f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
app/controllers/projects/tree_controller.rb
app/controllers/projects/tree_controller.rb
+2
-0
changelogs/unreleased/sh-add-gitaly-ref-name-caching-tree-controller.yml
...leased/sh-add-gitaly-ref-name-caching-tree-controller.yml
+5
-0
spec/controllers/projects/tree_controller_spec.rb
spec/controllers/projects/tree_controller_spec.rb
+2
-0
No files found.
app/controllers/projects/tree_controller.rb
View file @
bd230fb2
...
...
@@ -6,6 +6,8 @@ class Projects::TreeController < Projects::ApplicationController
include
CreatesCommit
include
ActionView
::
Helpers
::
SanitizeHelper
around_action
:allow_gitaly_ref_name_caching
,
only:
[
:show
]
before_action
:require_non_empty_project
,
except:
[
:new
,
:create
]
before_action
:assign_ref_vars
before_action
:assign_dir_vars
,
only:
[
:create_dir
]
...
...
changelogs/unreleased/sh-add-gitaly-ref-name-caching-tree-controller.yml
0 → 100644
View file @
bd230fb2
---
title
:
Enable Gitaly FindCommit caching for TreeController
merge_request
:
27100
author
:
type
:
performance
spec/controllers/projects/tree_controller_spec.rb
View file @
bd230fb2
...
...
@@ -16,6 +16,8 @@ describe Projects::TreeController do
render_views
before
do
expect
(
::
Gitlab
::
GitalyClient
).
to
receive
(
:allow_ref_name_caching
).
and_call_original
get
(
:show
,
params:
{
namespace_id:
project
.
namespace
.
to_param
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment