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
5d555305
Commit
5d555305
authored
Jul 06, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts in presenters and serializers
parent
03cc7404
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
12 deletions
+0
-12
app/presenters/merge_request_presenter.rb
app/presenters/merge_request_presenter.rb
+0
-6
app/serializers/environment_entity.rb
app/serializers/environment_entity.rb
+0
-3
app/serializers/merge_request_entity.rb
app/serializers/merge_request_entity.rb
+0
-3
No files found.
app/presenters/merge_request_presenter.rb
View file @
5d555305
...
...
@@ -73,15 +73,12 @@ class MergeRequestPresenter < Gitlab::View::Presenter::Delegated
def
conflict_resolution_path
if
conflicts
.
can_be_resolved_in_ui?
&&
conflicts
.
can_be_resolved_by?
(
current_user
)
conflicts_project_merge_request_path
(
project
,
merge_request
)
<<<<<<<
HEAD
end
end
def
rebase_path
if
!
rebase_in_progress?
&&
should_be_rebased?
&&
user_can_push_to_source_branch?
rebase_project_merge_request_path
(
project
,
merge_request
)
=======
>>>>>>>
ce
/
master
end
end
...
...
@@ -94,15 +91,12 @@ class MergeRequestPresenter < Gitlab::View::Presenter::Delegated
def
source_branch_path
if
source_branch_exists?
project_branch_path
(
source_project
,
source_branch
)
<<<<<<<
HEAD
end
end
def
approvals_path
if
requires_approve?
approvals_project_merge_request_path
(
project
,
merge_request
)
=======
>>>>>>>
ce
/
master
end
end
...
...
app/serializers/environment_entity.rb
View file @
5d555305
...
...
@@ -24,14 +24,11 @@ class EnvironmentEntity < Grape::Entity
expose
:terminal_path
,
if:
->
(
environment
,
_
)
{
environment
.
deployment_service_ready?
}
do
|
environment
|
can?
(
request
.
current_user
,
:admin_environment
,
environment
.
project
)
&&
terminal_project_environment_path
(
environment
.
project
,
environment
)
<<<<<<<
HEAD
end
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
)
=======
>>>>>>>
ce
/
master
end
expose
:created_at
,
:updated_at
...
...
app/serializers/merge_request_entity.rb
View file @
5d555305
...
...
@@ -180,7 +180,6 @@ class MergeRequestEntity < IssuableEntity
expose
:commit_change_content_path
do
|
merge_request
|
commit_change_content_project_merge_request_path
(
merge_request
.
project
,
merge_request
)
<<<<<<<
HEAD
end
# EE-specific
...
...
@@ -196,8 +195,6 @@ class MergeRequestEntity < IssuableEntity
merge_request
.
base_codeclimate_artifact
,
path:
'codeclimate.json'
)
end
=======
>>>>>>>
ce
/
master
end
private
...
...
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