Commit 2038e035 authored by Z.J. van de Weg's avatar Z.J. van de Weg

Do not expose projects on deployments

parent ba01e519
...@@ -67,62 +67,6 @@ Example of response ...@@ -67,62 +67,6 @@ Example of response
}, },
"id": 41, "id": 41,
"iid": 1, "iid": 1,
"project": {
"archived": false,
"avatar_url": null,
"builds_enabled": true,
"container_registry_enabled": true,
"created_at": "2016-08-11T07:31:46.777Z",
"creator_id": 1,
"default_branch": "master",
"description": "",
"forks_count": 0,
"http_url_to_repo": "http://localhost:3000/root/ci-project.git",
"id": 9,
"issues_enabled": true,
"last_activity_at": "2016-08-11T11:32:53.239Z",
"merge_requests_enabled": true,
"name": "ci-project",
"name_with_namespace": "Administrator / ci-project",
"namespace": {
"avatar": null,
"created_at": "2016-08-11T07:09:20.585Z",
"deleted_at": null,
"description": "",
"id": 1,
"name": "root",
"owner_id": 1,
"path": "root",
"request_access_enabled": true,
"share_with_group_lock": false,
"updated_at": "2016-08-11T07:09:20.585Z",
"visibility_level": 20
},
"open_issues_count": 0,
"owner": {
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
"id": 1,
"name": "Administrator",
"state": "active",
"username": "root",
"web_url": "http://localhost:3000/u/root"
},
"path": "ci-project",
"path_with_namespace": "root/ci-project",
"public": false,
"public_builds": true,
"shared_runners_enabled": true,
"shared_with_groups": [
],
"snippets_enabled": false,
"ssh_url_to_repo": "ssh://zegerjan@localhost:2222/root/ci-project.git",
"star_count": 0,
"tag_list": [
],
"visibility_level": 0,
"web_url": "http://localhost:3000/root/ci-project",
"wiki_enabled": true
},
"ref": "master", "ref": "master",
"sha": "99d03678b90d914dbb1b109132516d71a4a03ea8", "sha": "99d03678b90d914dbb1b109132516d71a4a03ea8",
"user": { "user": {
...@@ -181,62 +125,6 @@ Example of response ...@@ -181,62 +125,6 @@ Example of response
}, },
"id": 42, "id": 42,
"iid": 2, "iid": 2,
"project": {
"archived": false,
"avatar_url": null,
"builds_enabled": true,
"container_registry_enabled": true,
"created_at": "2016-08-11T07:31:46.777Z",
"creator_id": 1,
"default_branch": "master",
"description": "",
"forks_count": 0,
"http_url_to_repo": "http://localhost:3000/root/ci-project.git",
"id": 9,
"issues_enabled": true,
"last_activity_at": "2016-08-11T11:32:53.239Z",
"merge_requests_enabled": true,
"name": "ci-project",
"name_with_namespace": "Administrator / ci-project",
"namespace": {
"avatar": null,
"created_at": "2016-08-11T07:09:20.585Z",
"deleted_at": null,
"description": "",
"id": 1,
"name": "root",
"owner_id": 1,
"path": "root",
"request_access_enabled": true,
"share_with_group_lock": false,
"updated_at": "2016-08-11T07:09:20.585Z",
"visibility_level": 20
},
"open_issues_count": 0,
"owner": {
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
"id": 1,
"name": "Administrator",
"state": "active",
"username": "root",
"web_url": "http://localhost:3000/u/root"
},
"path": "ci-project",
"path_with_namespace": "root/ci-project",
"public": false,
"public_builds": true,
"shared_runners_enabled": true,
"shared_with_groups": [
],
"snippets_enabled": false,
"ssh_url_to_repo": "ssh://zegerjan@localhost:2222/root/ci-project.git",
"star_count": 0,
"tag_list": [
],
"visibility_level": 0,
"web_url": "http://localhost:3000/root/ci-project",
"wiki_enabled": true
},
"ref": "master", "ref": "master",
"sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a", "sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a",
"user": { "user": {
...@@ -275,60 +163,6 @@ Example of response ...@@ -275,60 +163,6 @@ Example of response
"ref": "master", "ref": "master",
"sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a", "sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a",
"created_at": "2016-08-11T11:32:35.444Z", "created_at": "2016-08-11T11:32:35.444Z",
"project": {
"id": 9,
"description": "",
"default_branch": "master",
"tag_list": [],
"public": false,
"archived": false,
"visibility_level": 0,
"ssh_url_to_repo": "ssh://zegerjan@localhost:2222/root/ci-project.git",
"http_url_to_repo": "http://localhost:3000/root/ci-project.git",
"web_url": "http://localhost:3000/root/ci-project",
"owner": {
"name": "Administrator",
"username": "root",
"id": 1,
"state": "active",
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
"web_url": "http://localhost:3000/u/root"
},
"name": "ci-project",
"name_with_namespace": "Administrator / ci-project",
"path": "ci-project",
"path_with_namespace": "root/ci-project",
"issues_enabled": true,
"merge_requests_enabled": true,
"wiki_enabled": true,
"builds_enabled": true,
"snippets_enabled": false,
"container_registry_enabled": true,
"created_at": "2016-08-11T07:31:46.777Z",
"last_activity_at": "2016-08-11T11:32:53.239Z",
"shared_runners_enabled": true,
"creator_id": 1,
"namespace": {
"id": 1,
"name": "root",
"path": "root",
"owner_id": 1,
"created_at": "2016-08-11T07:09:20.585Z",
"updated_at": "2016-08-11T07:09:20.585Z",
"description": "",
"avatar": null,
"share_with_group_lock": false,
"visibility_level": 20,
"request_access_enabled": true,
"deleted_at": null
},
"avatar_url": null,
"star_count": 0,
"forks_count": 0,
"open_issues_count": 0,
"public_builds": true,
"shared_with_groups": []
},
"user": { "user": {
"name": "Administrator", "name": "Administrator",
"username": "root", "username": "root",
......
...@@ -521,7 +521,6 @@ module API ...@@ -521,7 +521,6 @@ module API
class Deployment < Grape::Entity class Deployment < Grape::Entity
expose :id, :iid, :ref, :sha, :created_at expose :id, :iid, :ref, :sha, :created_at
expose :project, using: Entities::Project
expose :user, using: Entities::UserBasic expose :user, using: Entities::UserBasic
expose :environment, using: Entities::EnvironmentBasic expose :environment, using: Entities::EnvironmentBasic
expose :deployable, using: Entities::Build expose :deployable, using: Entities::Build
......
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