Commit 53339a7b authored by Valery Sizov's avatar Valery Sizov

Geo: Impossible to delete orphaned registry through Admin

"Remove" button didn't work, now it does
parent 95bf13b1
---
title: 'Geo: Fix broken button to delete orphaned upload registries through Admin'
merge_request: 11156
author:
type: fixed
......@@ -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
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment