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
ab9d0735
Commit
ab9d0735
authored
Sep 08, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve some conflicts
parent
f9f930a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
14 deletions
+4
-14
app/serializers/environment_entity.rb
app/serializers/environment_entity.rb
+2
-3
app/services/groups/create_service.rb
app/services/groups/create_service.rb
+1
-3
app/services/projects/update_service.rb
app/services/projects/update_service.rb
+1
-8
No files found.
app/serializers/environment_entity.rb
View file @
ab9d0735
...
...
@@ -26,14 +26,13 @@ class EnvironmentEntity < Grape::Entity
terminal_project_environment_path
(
environment
.
project
,
environment
)
end
<<<<<<<
HEAD
expose
:rollout_status_path
,
if:
->
(
environment
,
_
)
{
environment
.
deployment_service_ready?
}
do
|
environment
|
can?
(
request
.
current_user
,
:read_deploy_board
,
environment
.
project
)
&&
status_project_environment_path
(
environment
.
project
,
environment
,
format: :json
)
=======
end
expose
:folder_path
do
|
environment
|
folder_project_environments_path
(
environment
.
project
,
environment
.
folder_name
)
>>>>>>>
upstream
/
master
end
expose
:created_at
,
:updated_at
...
...
app/services/groups/create_service.rb
View file @
ab9d0735
...
...
@@ -8,7 +8,6 @@ module Groups
def
execute
@group
=
Group
.
new
(
params
)
<<<<<<<
HEAD
unless
Gitlab
::
VisibilityLevel
.
allowed_for?
(
current_user
,
params
[
:visibility_level
])
deny_visibility_level
(
@group
)
return
@group
...
...
@@ -21,10 +20,9 @@ module Groups
if
@group
.
parent
&&
!
can?
(
current_user
,
:create_subgroup
,
@group
.
parent
)
@group
.
parent
=
nil
@group
.
errors
.
add
(
:parent_id
,
'You don’t have permission to create a subgroup in this group.'
)
end
=======
unless
can_use_visibility_level?
&&
can_create_group?
>>>>>>>
upstream
/
master
return
@group
end
...
...
app/services/projects/update_service.rb
View file @
ab9d0735
module
Projects
class
UpdateService
<
BaseService
include
UpdateVisibilityLevel
<<<<<<<
HEAD
prepend
::
EE
::
Projects
::
UpdateService
def
execute
...
...
@@ -9,10 +9,6 @@ module Projects
limit
=
params
.
delete
(
:repository_size_limit
)
project
.
repository_size_limit
=
Gitlab
::
Utils
.
try_megabytes_to_bytes
(
limit
)
if
limit
=======
def
execute
>>>>>>>
upstream
/
master
unless
valid_visibility_level_change?
(
project
,
params
[
:visibility_level
])
return
error
(
'New visibility level not allowed!'
)
end
...
...
@@ -44,7 +40,6 @@ module Projects
private
<<<<<<<
HEAD
def
changing_storage_size?
new_repository_storage
=
params
[
:repository_storage
]
...
...
@@ -52,8 +47,6 @@ module Projects
can?
(
current_user
,
:change_repository_storage
,
project
)
end
=======
>>>>>>>
upstream
/
master
def
renaming_project_with_container_registry_tags?
new_path
=
params
[
:path
]
...
...
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