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
7dd6485a
Commit
7dd6485a
authored
Nov 03, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add manual actions for deployment serialization
parent
52d333b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
deployment_entity.rb
app/serializers/deployment_entity.rb
+1
-1
environment_serializer_spec.rb
spec/serializers/environment_serializer_spec.rb
+5
-0
No files found.
app/serializers/deployment_entity.rb
View file @
7dd6485a
...
...
@@ -23,5 +23,5 @@ class DeploymentEntity < Grape::Entity
expose
:user
,
using:
API
::
Entities
::
UserBasic
expose
:commit
,
using:
CommitEntity
expose
:deployable
,
using:
BuildEntity
expose
:manual_actions
expose
:manual_actions
,
using:
BuildEntity
end
spec/serializers/environment_serializer_spec.rb
View file @
7dd6485a
...
...
@@ -10,6 +10,11 @@ describe EnvironmentSerializer do
let
(
:user
)
{
create
(
:user
)
}
context
'when there is a single object provided'
do
before
do
create
(
:ci_build
,
:manual
,
name:
'manual1'
,
pipeline:
deployable
.
pipeline
)
end
let
(
:deployment
)
do
create
(
:deployment
,
deployable:
deployable
,
user:
user
)
...
...
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