BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
67e46e6f
Commit
67e46e6f
authored
Dec 09, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate new stages into ci pipeline serializer
parent
0f40ae5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
pipeline_entity.rb
app/serializers/pipeline_entity.rb
+1
-1
pipeline_stage_entity.rb
app/serializers/pipeline_stage_entity.rb
+3
-8
No files found.
app/serializers/pipeline_entity.rb
View file @
67e46e6f
...
...
@@ -15,7 +15,7 @@ class PipelineEntity < Grape::Entity
expose
:detailed_status
,
as: :status
,
using:
StatusEntity
expose
:duration
expose
:finished_at
expose
:stages
_with_statuses
,
as: :stages
,
using:
PipelineStageEntity
expose
:stages
,
using:
PipelineStageEntity
expose
:artifacts
,
using:
PipelineArtifactEntity
expose
:manual_actions
,
using:
PipelineActionEntity
end
...
...
app/serializers/pipeline_stage_entity.rb
View file @
67e46e6f
class
PipelineStageEntity
<
Grape
::
Entity
include
RequestAwareEntity
expose
:name
do
|
stage
|
stage
.
name
end
expose
:status
do
|
stage
|
stage
.
status
||
'not found'
end
expose
:name
expose
:detailed_status
,
as: :status
,
using:
StatusEntity
expose
:
url
do
|
stage
|
expose
:
path
do
|
stage
|
namespace_project_pipeline_path
(
stage
.
pipeline
.
project
.
namespace
,
stage
.
pipeline
.
project
,
...
...
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