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
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
app/serializers/deploy_key_entity.rb
app/serializers/deploy_key_entity.rb
+2
-0
spec/serializers/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
...
@@ -4,6 +4,8 @@ class DeployKeyEntity < Grape::Entity
expose
:title
expose
:title
expose
:fingerprint
expose
:fingerprint
expose
:can_push
expose
:can_push
expose
:destroyed_when_orphaned?
,
as: :destroyed_when_orphaned
expose
:almost_orphaned?
,
as: :almost_orphaned
expose
:created_at
expose
:created_at
expose
:updated_at
expose
:updated_at
expose
:projects
,
using:
ProjectEntity
do
|
deploy_key
|
expose
:projects
,
using:
ProjectEntity
do
|
deploy_key
|
...
...
spec/serializers/deploy_key_entity_spec.rb
View file @
703df288
...
@@ -17,6 +17,8 @@ describe DeployKeyEntity do
...
@@ -17,6 +17,8 @@ describe DeployKeyEntity do
title:
deploy_key
.
title
,
title:
deploy_key
.
title
,
fingerprint:
deploy_key
.
fingerprint
,
fingerprint:
deploy_key
.
fingerprint
,
can_push:
deploy_key
.
can_push
,
can_push:
deploy_key
.
can_push
,
destroyed_when_orphaned:
true
,
almost_orphaned:
false
,
created_at:
deploy_key
.
created_at
,
created_at:
deploy_key
.
created_at
,
updated_at:
deploy_key
.
updated_at
,
updated_at:
deploy_key
.
updated_at
,
projects:
[
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