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
4e50680d
Commit
4e50680d
authored
Jan 02, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
f9f3ef60
f93f09e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
changelogs/unreleased/s3-directories-get.yml
changelogs/unreleased/s3-directories-get.yml
+6
-0
lib/gitlab/cleanup/remote_uploads.rb
lib/gitlab/cleanup/remote_uploads.rb
+1
-1
spec/lib/gitlab/cleanup/remote_uploads_spec.rb
spec/lib/gitlab/cleanup/remote_uploads_spec.rb
+1
-1
No files found.
changelogs/unreleased/s3-directories-get.yml
0 → 100644
View file @
4e50680d
---
title
:
Allow 'rake gitlab:cleanup:remote_upload_files' to read bucket files without
having permissions to see all buckets.
merge_request
:
23981
author
:
type
:
fixed
lib/gitlab/cleanup/remote_uploads.rb
View file @
4e50680d
...
...
@@ -67,7 +67,7 @@ module Gitlab
end
def
remote_directory
connection
.
directories
.
get
(
configuration
[
'remote_directory'
])
connection
.
directories
.
new
(
key:
configuration
[
'remote_directory'
])
end
def
connection
...
...
spec/lib/gitlab/cleanup/remote_uploads_spec.rb
View file @
4e50680d
...
...
@@ -25,7 +25,7 @@ describe Gitlab::Cleanup::RemoteUploads do
expect
(
::
Fog
::
Storage
).
to
receive
(
:new
).
and_return
(
connection
)
expect
(
connection
).
to
receive
(
:directories
).
and_return
(
double
(
get
:
directory
))
expect
(
connection
).
to
receive
(
:directories
).
and_return
(
double
(
new
:
directory
))
expect
(
directory
).
to
receive
(
:files
).
and_return
(
remote_files
)
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