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
703df288
Commit
703df288
authored
Apr 07, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose additional values in deploy key entity
parent
e0dc7352
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
deploy_key_entity.rb
app/serializers/deploy_key_entity.rb
+2
-0
deploy_key_entity_spec.rb
spec/serializers/deploy_key_entity_spec.rb
+2
-0
No files found.
app/serializers/deploy_key_entity.rb
View file @
703df288
...
...
@@ -4,6 +4,8 @@ class DeployKeyEntity < Grape::Entity
expose
:title
expose
:fingerprint
expose
:can_push
expose
:destroyed_when_orphaned?
,
as: :destroyed_when_orphaned
expose
:almost_orphaned?
,
as: :almost_orphaned
expose
:created_at
expose
:updated_at
expose
:projects
,
using:
ProjectEntity
do
|
deploy_key
|
...
...
spec/serializers/deploy_key_entity_spec.rb
View file @
703df288
...
...
@@ -17,6 +17,8 @@ describe DeployKeyEntity do
title:
deploy_key
.
title
,
fingerprint:
deploy_key
.
fingerprint
,
can_push:
deploy_key
.
can_push
,
destroyed_when_orphaned:
true
,
almost_orphaned:
false
,
created_at:
deploy_key
.
created_at
,
updated_at:
deploy_key
.
updated_at
,
projects:
[
...
...
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