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
ba319b28
Commit
ba319b28
authored
Jul 10, 2018
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in app/serializers/environment_entity.rb
parent
d92f177a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
app/serializers/environment_entity.rb
app/serializers/environment_entity.rb
+0
-9
No files found.
app/serializers/environment_entity.rb
View file @
ba319b28
...
...
@@ -10,11 +10,8 @@ class EnvironmentEntity < Grape::Entity
expose
:environment_type
expose
:last_deployment
,
using:
DeploymentEntity
expose
:stop_action?
,
as: :has_stop_action
<<<<<<<
HEAD
expose
:rollout_status
,
if:
->
(
*
)
{
can_read_deploy_board?
},
using:
RolloutStatusEntity
=======
>>>>>>>
upstream
/
master
expose
:metrics_path
,
if:
->
(
*
)
{
environment
.
has_metrics?
}
do
|
environment
|
metrics_project_environment_path
(
environment
.
project
,
environment
)
...
...
@@ -45,7 +42,6 @@ class EnvironmentEntity < Grape::Entity
private
<<<<<<<
HEAD
alias_method
:environment
,
:object
def
current_user
...
...
@@ -55,9 +51,4 @@ class EnvironmentEntity < Grape::Entity
def
can_read_deploy_board?
can?
(
current_user
,
:read_deploy_board
,
environment
.
project
)
end
=======
def
current_user
request
.
current_user
end
>>>>>>>
upstream
/
master
end
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