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
45c8ba47
Commit
45c8ba47
authored
Oct 20, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix setting Geo sync capacity in the admin panel
parent
c2809c54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
app/services/geo/node_update_service.rb
app/services/geo/node_update_service.rb
+2
-1
ee/app/controllers/admin/geo_nodes_controller.rb
ee/app/controllers/admin/geo_nodes_controller.rb
+8
-1
No files found.
app/services/geo/node_update_service.rb
View file @
45c8ba47
...
...
@@ -5,7 +5,8 @@ module Geo
def
initialize
(
geo_node
,
params
)
@geo_node
=
geo_node
@old_namespace_ids
=
geo_node
.
namespace_ids
@params
=
params
.
slice
(
:url
,
:primary
,
:namespace_ids
)
@params
=
params
.
dup
@params
.
delete
(
:geo_node_key_attributes
)
@params
[
:namespace_ids
]
=
@params
[
:namespace_ids
].
to_s
.
split
(
','
)
end
...
...
ee/app/controllers/admin/geo_nodes_controller.rb
View file @
45c8ba47
...
...
@@ -77,7 +77,14 @@ class Admin::GeoNodesController < Admin::ApplicationController
private
def
geo_node_params
params
.
require
(
:geo_node
).
permit
(
:url
,
:primary
,
:namespace_ids
,
geo_node_key_attributes:
[
:key
])
params
.
require
(
:geo_node
).
permit
(
:url
,
:primary
,
:namespace_ids
,
:repos_max_capacity
,
:files_max_capacity
,
geo_node_key_attributes:
[
:key
]
)
end
def
check_license
...
...
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