{"action":"closed","number":956,"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/956","id":148343064,"html_url":"https://github.com/cloudfoundry/cloud_controller_ng/pull/956","diff_url":"https://github.com/cloudfoundry/cloud_controller_ng/pull/956.diff","patch_url":"https://github.com/cloudfoundry/cloud_controller_ng/pull/956.patch","issue_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/956","number":956,"state":"closed","locked":false,"title":"Add service sharing to/from information in space summary","user":{"login":"deniseyu","id":8420094,"avatar_url":"https://avatars2.githubusercontent.com/u/8420094?v=4","gravatar_id":"","url":"https://api.github.com/users/deniseyu","html_url":"https://github.com/deniseyu","followers_url":"https://api.github.com/users/deniseyu/followers","following_url":"https://api.github.com/users/deniseyu/following{/other_user}","gists_url":"https://api.github.com/users/deniseyu/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseyu/subscriptions","organizations_url":"https://api.github.com/users/deniseyu/orgs","repos_url":"https://api.github.com/users/deniseyu/repos","events_url":"https://api.github.com/users/deniseyu/events{/privacy}","received_events_url":"https://api.github.com/users/deniseyu/received_events","type":"User","site_admin":false},"body":"As an app dev (sharer), I can see shared service instances in the space summary. [#151988848](https://www.pivotaltracker.com/story/show/151988848)\r\n\r\nAs an app dev (receiver), I can see shared service instances in the space summary. [#151988915](https://www.pivotaltracker.com/story/show/151988915)\r\n\r\n## What\r\n\r\nThis PR adds two fields to the space summary, `shared_to` and `shared_from`. The `shared_from` field provides information on where the service instance was created (if not in the space being summarized), and the `shared_to` field provides information on which spaces the service instance has been shared to if the service instance was created in this space. \r\n\r\nIf the service instance originated from the space being summarized, `shared_from` will be null. Similarly, if the service instance has not been shared into any other spaces, `shared_to` will be an empty array.\r\n\r\nChanges:\r\n* Added `shared_to` and `shared_from` fields in the service instance list inside the `/v2/space/:guid/summary` endpoint response.\r\n\r\nFeedback and comments appreciated!\r\n\r\n## PR \r\n\r\n* [X] I have viewed signed and have submitted the Contributor License Agreement\r\n* [X] I have made this pull request to the `master` branch\r\n* [X] I have run all the unit tests using `bundle exec rake`\r\n* [X] I have run [CF Acceptance Tests](https://github.com/cloudfoundry/cloud_controller_ng#cf-acceptance-tests-cats) on bosh lite\r\n\r\nThanks, sapi (@deniseyu and @jenspinney )","created_at":"2017-10-24T09:31:22Z","updated_at":"2017-10-24T16:46:42Z","closed_at":"2017-10-24T16:46:42Z","merged_at":null,"merge_commit_sha":"7fc1a0a633777e88315ae6634a356fd5f5391c18","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/956/commits","review_comments_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/956/comments","review_comment_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/956/comments","statuses_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/statuses/0f6ddf37ad2b1752fad6db53f26de17e438ba3b9","head":{"label":"cloudfoundry-incubator:pr-service-instance-sharing-space-summary-sharing-info","ref":"pr-service-instance-sharing-space-summary-sharing-info","sha":"0f6ddf37ad2b1752fad6db53f26de17e438ba3b9","user":{"login":"cloudfoundry-incubator","id":5680605,"avatar_url":"https://avatars0.githubusercontent.com/u/5680605?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry-incubator","html_url":"https://github.com/cloudfoundry-incubator","followers_url":"https://api.github.com/users/cloudfoundry-incubator/followers","following_url":"https://api.github.com/users/cloudfoundry-incubator/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry-incubator/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry-incubator/orgs","repos_url":"https://api.github.com/users/cloudfoundry-incubator/repos","events_url":"https://api.github.com/users/cloudfoundry-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":103407713,"name":"cloud_controller_ng_sapi","full_name":"cloudfoundry-incubator/cloud_controller_ng_sapi","owner":{"login":"cloudfoundry-incubator","id":5680605,"avatar_url":"https://avatars0.githubusercontent.com/u/5680605?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry-incubator","html_url":"https://github.com/cloudfoundry-incubator","followers_url":"https://api.github.com/users/cloudfoundry-incubator/followers","following_url":"https://api.github.com/users/cloudfoundry-incubator/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry-incubator/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry-incubator/orgs","repos_url":"https://api.github.com/users/cloudfoundry-incubator/repos","events_url":"https://api.github.com/users/cloudfoundry-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry-incubator/cloud_controller_ng_sapi","description":"Cloud Foundry Cloud Controller","fork":true,"url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi","forks_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/forks","keys_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/teams","hooks_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/events","assignees_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/tags","blobs_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/subscription","commits_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/merges","archive_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/downloads","issues_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/releases{/id}","deployments_url":"https://api.github.com/repos/cloudfoundry-incubator/cloud_controller_ng_sapi/deployments","created_at":"2017-09-13T14:06:49Z","updated_at":"2017-09-21T19:11:06Z","pushed_at":"2017-10-24T16:42:07Z","git_url":"git://github.com/cloudfoundry-incubator/cloud_controller_ng_sapi.git","ssh_url":"git@github.com:cloudfoundry-incubator/cloud_controller_ng_sapi.git","clone_url":"https://github.com/cloudfoundry-incubator/cloud_controller_ng_sapi.git","svn_url":"https://github.com/cloudfoundry-incubator/cloud_controller_ng_sapi","homepage":"","size":32318,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"cloudfoundry:master","ref":"master","sha":"b9fdcf675c6d51cc5e43677803cf2db53a8f9a21","user":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars0.githubusercontent.com/u/621746?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"repo":{"id":4743255,"name":"cloud_controller_ng","full_name":"cloudfoundry/cloud_controller_ng","owner":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars0.githubusercontent.com/u/621746?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry/cloud_controller_ng","description":"Cloud Foundry Cloud Controller","fork":false,"url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng","forks_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/forks","keys_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/teams","hooks_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/events","assignees_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/tags","blobs_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/subscription","commits_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/merges","archive_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/downloads","issues_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/releases{/id}","deployments_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/deployments","created_at":"2012-06-21T19:14:32Z","updated_at":"2017-10-24T09:34:43Z","pushed_at":"2017-10-24T16:40:58Z","git_url":"git://github.com/cloudfoundry/cloud_controller_ng.git","ssh_url":"git@github.com:cloudfoundry/cloud_controller_ng.git","clone_url":"https://github.com/cloudfoundry/cloud_controller_ng.git","svn_url":"https://github.com/cloudfoundry/cloud_controller_ng","homepage":"","size":33172,"stargazers_count":109,"watchers_count":109,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":272,"mirror_url":null,"archived":false,"open_issues_count":49,"forks":272,"open_issues":49,"watchers":109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/956"},"html":{"href":"https://github.com/cloudfoundry/cloud_controller_ng/pull/956"},"issue":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/956"},"comments":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/956/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/956/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/956/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/statuses/0f6ddf37ad2b1752fad6db53f26de17e438ba3b9"}},"author_association":"MEMBER","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":113,"deletions":14,"changed_files":5}}
{"actor":{"display_login":"tcdowney"}}