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
a6e36672
Commit
a6e36672
authored
May 23, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring CE-EE parity to app/services/projects/update_service.rb
parent
ce902b95
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
app/services/projects/update_service.rb
app/services/projects/update_service.rb
+0
-8
ee/app/services/ee/projects/update_service.rb
ee/app/services/ee/projects/update_service.rb
+8
-0
No files found.
app/services/projects/update_service.rb
View file @
a6e36672
...
...
@@ -5,18 +5,10 @@ module Projects
prepend
::
EE
::
Projects
::
UpdateService
def
execute
# Repository size limit comes as MB from the view
limit
=
params
.
delete
(
:repository_size_limit
)
project
.
repository_size_limit
=
Gitlab
::
Utils
.
try_megabytes_to_bytes
(
limit
)
if
limit
unless
valid_visibility_level_change?
(
project
,
params
[
:visibility_level
])
return
error
(
'New visibility level not allowed!'
)
end
if
changing_storage_size?
project
.
change_repository_storage
(
params
.
delete
(
:repository_storage
))
end
if
renaming_project_with_container_registry_tags?
return
error
(
'Cannot rename project because it contains container registry tags!'
)
end
...
...
ee/app/services/ee/projects/update_service.rb
View file @
a6e36672
...
...
@@ -16,6 +16,14 @@ module EE
should_remove_old_approvers
=
params
.
delete
(
:remove_old_approvers
)
wiki_was_enabled
=
project
.
wiki_enabled?
# Repository size limit comes as MB from the view
limit
=
params
.
delete
(
:repository_size_limit
)
project
.
repository_size_limit
=
::
Gitlab
::
Utils
.
try_megabytes_to_bytes
(
limit
)
if
limit
if
changing_storage_size?
project
.
change_repository_storage
(
params
.
delete
(
:repository_storage
))
end
result
=
super
if
result
[
:status
]
==
:success
...
...
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