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
ac7dfe9c
Commit
ac7dfe9c
authored
Feb 22, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
1e962cfc
55823c40
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
app/models/network/graph.rb
app/models/network/graph.rb
+6
-3
lib/banzai/filter/relative_link_filter.rb
lib/banzai/filter/relative_link_filter.rb
+4
-1
lib/gitlab/gitaly_client.rb
lib/gitlab/gitaly_client.rb
+1
-1
lib/gitlab/shell.rb
lib/gitlab/shell.rb
+4
-1
No files found.
app/models/network/graph.rb
View file @
ac7dfe9c
...
...
@@ -40,9 +40,12 @@ module Network
# Get commits from repository
#
def
collect_commits
find_commits
(
count_to_display_commit_in_center
).
map
do
|
commit
|
# Decorate with app/model/network/commit.rb
Network
::
Commit
.
new
(
commit
)
# https://gitlab.com/gitlab-org/gitlab-ce/issues/58013
Gitlab
::
GitalyClient
.
allow_n_plus_1_calls
do
find_commits
(
count_to_display_commit_in_center
).
map
do
|
commit
|
# Decorate with app/model/network/commit.rb
Network
::
Commit
.
new
(
commit
)
end
end
end
...
...
lib/banzai/filter/relative_link_filter.rb
View file @
ac7dfe9c
...
...
@@ -150,7 +150,10 @@ module Banzai
end
def
uri_type
(
path
)
@uri_types
[
path
]
||=
current_commit
.
uri_type
(
path
)
# https://gitlab.com/gitlab-org/gitlab-ce/issues/58011
Gitlab
::
GitalyClient
.
allow_n_plus_1_calls
do
@uri_types
[
path
]
||=
current_commit
.
uri_type
(
path
)
end
end
def
current_commit
...
...
lib/gitlab/gitaly_client.rb
View file @
ac7dfe9c
...
...
@@ -28,7 +28,7 @@ module Gitlab
PEM_REGEX
=
/\-+BEGIN CERTIFICATE\-+.+?\-+END CERTIFICATE\-+/m
SERVER_VERSION_FILE
=
'GITALY_SERVER_VERSION'
MAXIMUM_GITALY_CALLS
=
3
5
MAXIMUM_GITALY_CALLS
=
3
0
CLIENT_NAME
=
(
Sidekiq
.
server?
?
'gitlab-sidekiq'
:
'gitlab-web'
).
freeze
MUTEX
=
Mutex
.
new
...
...
lib/gitlab/shell.rb
View file @
ac7dfe9c
...
...
@@ -280,7 +280,10 @@ module Gitlab
# add_namespace("default", "gitlab")
#
def
add_namespace
(
storage
,
name
)
Gitlab
::
GitalyClient
::
NamespaceService
.
new
(
storage
).
add
(
name
)
# https://gitlab.com/gitlab-org/gitlab-ce/issues/58012
Gitlab
::
GitalyClient
.
allow_n_plus_1_calls
do
Gitlab
::
GitalyClient
::
NamespaceService
.
new
(
storage
).
add
(
name
)
end
rescue
GRPC
::
InvalidArgument
=>
e
raise
ArgumentError
,
e
.
message
end
...
...
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