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
53339a7b
Commit
53339a7b
authored
Apr 17, 2019
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo: Impossible to delete orphaned registry through Admin
"Remove" button didn't work, now it does
parent
95bf13b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
ee/changelogs/unreleased/11017-geo-impossible-to-delete-orphaned-registry-through-admin.yml
...-impossible-to-delete-orphaned-registry-through-admin.yml
+5
-0
ee/lib/ee/gitlab/middleware/read_only/controller.rb
ee/lib/ee/gitlab/middleware/read_only/controller.rb
+2
-1
ee/spec/lib/ee/gitlab/middleware/read_only_spec.rb
ee/spec/lib/ee/gitlab/middleware/read_only_spec.rb
+2
-0
No files found.
ee/changelogs/unreleased/11017-geo-impossible-to-delete-orphaned-registry-through-admin.yml
0 → 100644
View file @
53339a7b
---
title
:
'
Geo:
Fix
broken
button
to
delete
orphaned
upload
registries
through
Admin'
merge_request
:
11156
author
:
type
:
fixed
ee/lib/ee/gitlab/middleware/read_only/controller.rb
View file @
53339a7b
...
...
@@ -12,7 +12,8 @@ module EE
}.
freeze
WHITELISTED_GEO_ROUTES_TRACKING_DB
=
{
'admin/geo/projects'
=>
%w{destroy resync recheck force_redownload resync_all recheck_all}
'admin/geo/projects'
=>
%w{destroy resync recheck force_redownload resync_all recheck_all}
,
'admin/geo/uploads'
=>
%w{destroy}
}.
freeze
private
...
...
ee/spec/lib/ee/gitlab/middleware/read_only_spec.rb
View file @
53339a7b
...
...
@@ -64,6 +64,8 @@ describe Gitlab::Middleware::ReadOnly do
it_behaves_like
'whitelisted request'
,
:post
,
'/admin/geo/projects/resync_all'
it_behaves_like
'whitelisted request'
,
:post
,
'/admin/geo/projects/1/force_redownload'
it_behaves_like
'whitelisted request'
,
:delete
,
'/admin/geo/uploads/1'
end
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