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
7114ad8e
Commit
7114ad8e
authored
Feb 04, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@13-8-stable-ee
parent
0b4b96be
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
9 deletions
+31
-9
app/helpers/markup_helper.rb
app/helpers/markup_helper.rb
+2
-1
bin/web_puma
bin/web_puma
+1
-1
changelogs/unreleased/fj-fix-regression-old-uploads.yml
changelogs/unreleased/fj-fix-regression-old-uploads.yml
+5
-0
changelogs/unreleased/sh-revert-multipart-upload-optimization.yml
...gs/unreleased/sh-revert-multipart-upload-optimization.yml
+5
-0
lib/object_storage/direct_upload.rb
lib/object_storage/direct_upload.rb
+1
-1
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+2
-2
spec/helpers/markup_helper_spec.rb
spec/helpers/markup_helper_spec.rb
+15
-0
spec/lib/object_storage/direct_upload_spec.rb
spec/lib/object_storage/direct_upload_spec.rb
+0
-4
No files found.
app/helpers/markup_helper.rb
View file @
7114ad8e
...
...
@@ -126,7 +126,8 @@ module MarkupHelper
text
=
wiki_page
.
content
return
''
unless
text
.
present?
html
=
markup_unsafe
(
wiki_page
.
path
,
text
,
render_wiki_content_context
(
@wiki
,
wiki_page
,
context
))
context
=
render_wiki_content_context
(
@wiki
,
wiki_page
,
context
)
html
=
markup_unsafe
(
wiki_page
.
path
,
text
,
context
)
prepare_for_rendering
(
html
,
context
)
end
...
...
bin/web_puma
View file @
7114ad8e
...
...
@@ -25,7 +25,7 @@ get_puma_pid()
start
()
{
spawn_puma
-d
spawn_puma
&
}
start_foreground
()
...
...
changelogs/unreleased/fj-fix-regression-old-uploads.yml
0 → 100644
View file @
7114ad8e
---
title
:
Fix regression with old wiki image uploads
merge_request
:
52656
author
:
type
:
fixed
changelogs/unreleased/sh-revert-multipart-upload-optimization.yml
0 → 100644
View file @
7114ad8e
---
title
:
Revert multipart URL optimization for AWS S3
merge_request
:
52561
author
:
type
:
fixed
lib/object_storage/direct_upload.rb
View file @
7114ad8e
...
...
@@ -206,7 +206,7 @@ module ObjectStorage
end
def
requires_multipart_upload?
config
.
aws?
&&
!
has_length
&&
!
use_workhorse_s3_client?
config
.
aws?
&&
!
has_length
end
def
upload_id
...
...
lib/support/init.d/gitlab
View file @
7114ad8e
...
...
@@ -138,8 +138,8 @@ wait_for_pids(){
i
=
$((
i+1
))
if
[
$((
i%10
))
=
0
]
;
then
echo
-n
"."
elif
[
$((
i
))
=
3
01
]
;
then
echo
"Waited
3
0s for the processes to write their pids, something probably went wrong."
elif
[
$((
i
))
=
6
01
]
;
then
echo
"Waited
6
0s for the processes to write their pids, something probably went wrong."
exit
1
;
fi
done
...
...
spec/helpers/markup_helper_spec.rb
View file @
7114ad8e
...
...
@@ -355,6 +355,21 @@ RSpec.describe MarkupHelper do
expect
(
doc
.
css
(
'.gl-label-link'
)).
not_to
be_empty
end
end
context
'when content has uploads'
do
let
(
:upload_link
)
{
'/uploads/test.png'
}
let
(
:content
)
{
"![ImageTest](
#{
upload_link
}
)"
}
before
do
allow
(
wiki
).
to
receive
(
:wiki_base_path
).
and_return
(
project
.
wiki
.
wiki_base_path
)
end
it
'renders uploads relative to project'
do
result
=
helper
.
render_wiki_content
(
wiki
)
expect
(
result
).
to
include
(
"
#{
project
.
full_path
}#{
upload_link
}
"
)
end
end
end
context
'when file is Asciidoc'
do
...
...
spec/lib/object_storage/direct_upload_spec.rb
View file @
7114ad8e
...
...
@@ -162,10 +162,6 @@ RSpec.describe ObjectStorage::DirectUpload do
it
'enables the Workhorse client'
do
expect
(
subject
[
:UseWorkhorseClient
]).
to
be
true
end
it
'omits the multipart upload URLs'
do
expect
(
subject
).
not_to
include
(
:MultipartUpload
)
end
end
context
'when only server side encryption is used'
do
...
...
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