BigW Consortium Gitlab

Commit 703df288 by Jarka Kadlecova

expose additional values in deploy key entity

parent e0dc7352
......@@ -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|
......
......@@ -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: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment