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
c285500d
Commit
c285500d
authored
May 08, 2020
by
allison.browne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename variable for readability
parent
39b8fe6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/app/services/status_page/publish_details_service.rb
ee/app/services/status_page/publish_details_service.rb
+2
-2
ee/spec/support/shared_examples/status_page/publish_shared_examples.rb
...rt/shared_examples/status_page/publish_shared_examples.rb
+1
-1
No files found.
ee/app/services/status_page/publish_details_service.rb
View file @
c285500d
...
...
@@ -69,8 +69,8 @@ module StatusPage
next
if
existing_image_keys
.
include?
key
uploader
=
UploadFinder
.
new
(
@project
,
$~
[
:secret
],
$~
[
:file
]).
execute
uploader
.
open
do
|
f
|
storage_client
.
multipart_upload
(
key
,
f
)
uploader
.
open
do
|
open_file
|
storage_client
.
multipart_upload
(
key
,
open_file
)
end
end
end
...
...
ee/spec/support/shared_examples/status_page/publish_shared_examples.rb
View file @
c285500d
...
...
@@ -28,7 +28,7 @@ RSpec.shared_examples 'publish incidents' do
it
'publishes details as JSON'
do
expect
(
result
).
to
be_success
expect
(
result
.
payload
[
:json_object_key
]).
to
eq
(
key
)
expect
(
storage_client
).
to
receive
(
:upload_object
).
with
(
key
,
content_json
)
end
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