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
a40c0a40
Commit
a40c0a40
authored
May 12, 2020
by
Lee Tickett
Committed by
Michael Kozono
May 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Admin -> Settings -> Geo navigation
parent
5898f3c6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
28 deletions
+7
-28
app/views/layouts/nav/sidebar/_admin.html.haml
app/views/layouts/nav/sidebar/_admin.html.haml
+0
-5
changelogs/unreleased/remove_admin_settings_geo_navigation.yml
...elogs/unreleased/remove_admin_settings_geo_navigation.yml
+5
-0
ee/app/controllers/ee/admin/application_settings_controller.rb
...p/controllers/ee/admin/application_settings_controller.rb
+0
-5
ee/config/routes/admin.rb
ee/config/routes/admin.rb
+1
-1
ee/spec/controllers/admin/application_settings_controller_spec.rb
...controllers/admin/application_settings_controller_spec.rb
+0
-16
ee/spec/routing/admin_routing_spec.rb
ee/spec/routing/admin_routing_spec.rb
+1
-1
No files found.
app/views/layouts/nav/sidebar/_admin.html.haml
View file @
a40c0a40
...
@@ -271,11 +271,6 @@
...
@@ -271,11 +271,6 @@
=
link_to
network_admin_application_settings_path
,
title:
_
(
'Network'
),
data:
{
qa_selector:
'admin_settings_network_item'
}
do
=
link_to
network_admin_application_settings_path
,
title:
_
(
'Network'
),
data:
{
qa_selector:
'admin_settings_network_item'
}
do
%span
%span
=
_
(
'Network'
)
=
_
(
'Network'
)
-
if
template_exists?
(
'admin/geo/settings/show'
)
=
nav_link
do
=
link_to
geo_admin_application_settings_path
,
title:
_
(
'Geo'
)
do
%span
=
_
(
'Geo'
)
=
nav_link
(
path:
'application_settings#preferences'
)
do
=
nav_link
(
path:
'application_settings#preferences'
)
do
=
link_to
preferences_admin_application_settings_path
,
title:
_
(
'Preferences'
),
data:
{
qa_selector:
'admin_settings_preferences_link'
}
do
=
link_to
preferences_admin_application_settings_path
,
title:
_
(
'Preferences'
),
data:
{
qa_selector:
'admin_settings_preferences_link'
}
do
%span
%span
...
...
changelogs/unreleased/remove_admin_settings_geo_navigation.yml
0 → 100644
View file @
a40c0a40
---
title
:
Remove Admin -> Settings -> Geo navigation
merge_request
:
21005
author
:
Lee Tickett
type
:
other
ee/app/controllers/ee/admin/application_settings_controller.rb
View file @
a40c0a40
...
@@ -65,11 +65,6 @@ module EE
...
@@ -65,11 +65,6 @@ module EE
attrs
attrs
end
end
def
geo_redirection
redirect_to
admin_geo_settings_url
,
notice:
'You were automatically redirected to <strong>Admin Area > Geo > Settings</strong><br /> '
\
'From GitLab 13.0 on, this will be the only place for Geo settings and <strong>Admin Area > Settings > Geo</strong> will be removed.'
.
html_safe
end
def
seat_link_payload
def
seat_link_payload
data
=
::
Gitlab
::
SeatLinkData
.
new
data
=
::
Gitlab
::
SeatLinkData
.
new
...
...
ee/config/routes/admin.rb
View file @
a40c0a40
...
@@ -30,7 +30,7 @@ namespace :admin do
...
@@ -30,7 +30,7 @@ namespace :admin do
resource
:application_settings
,
only:
[]
do
resource
:application_settings
,
only:
[]
do
get
:seat_link_payload
get
:seat_link_payload
match
:templates
,
via:
[
:get
,
:patch
]
match
:templates
,
via:
[
:get
,
:patch
]
get
:geo
,
to:
"
application_settings#geo_redirection
"
get
:geo
,
to:
"
geo/settings#show
"
end
end
namespace
:geo
do
namespace
:geo
do
...
...
ee/spec/controllers/admin/application_settings_controller_spec.rb
View file @
a40c0a40
...
@@ -224,22 +224,6 @@ describe Admin::ApplicationSettingsController do
...
@@ -224,22 +224,6 @@ describe Admin::ApplicationSettingsController do
end
end
end
end
end
end
describe
'GET #geo_redirection'
do
subject
{
get
:geo_redirection
}
it
'redirects the user to the admin_geo_settings_url'
do
subject
expect
(
response
).
to
redirect_to
(
admin_geo_settings_url
)
end
it
'fires a notice about the redirection'
do
subject
expect
(
response
).
to
set_flash
[
:notice
]
end
end
end
end
describe
'GET #seat_link_payload'
do
describe
'GET #seat_link_payload'
do
...
...
ee/spec/routing/admin_routing_spec.rb
View file @
a40c0a40
...
@@ -72,7 +72,7 @@ describe 'EE-specific admin routing' do
...
@@ -72,7 +72,7 @@ describe 'EE-specific admin routing' do
describe
Admin
::
ApplicationSettingsController
,
'routing'
do
describe
Admin
::
ApplicationSettingsController
,
'routing'
do
it
'redirects #geo to #geo_redirection'
do
it
'redirects #geo to #geo_redirection'
do
expect
(
get
(
'/admin/application_settings/geo'
)).
to
route_to
(
'admin/
application_settings#geo_redirection
'
)
expect
(
get
(
'/admin/application_settings/geo'
)).
to
route_to
(
'admin/
geo/settings#show
'
)
end
end
it
'routes to #templates'
do
it
'routes to #templates'
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