{"action":"closed","number":1204,"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-analytics/pulls/1204","id":176769128,"html_url":"https://github.com/wso2/carbon-analytics/pull/1204","diff_url":"https://github.com/wso2/carbon-analytics/pull/1204.diff","patch_url":"https://github.com/wso2/carbon-analytics/pull/1204.patch","issue_url":"https://api.github.com/repos/wso2/carbon-analytics/issues/1204","number":1204,"state":"closed","locked":false,"title":"Displaying Sinks And Sources In The SP Editor Design View","user":{"login":"moizalicious","id":25219255,"avatar_url":"https://avatars2.githubusercontent.com/u/25219255?v=4","gravatar_id":"","url":"https://api.github.com/users/moizalicious","html_url":"https://github.com/moizalicious","followers_url":"https://api.github.com/users/moizalicious/followers","following_url":"https://api.github.com/users/moizalicious/following{/other_user}","gists_url":"https://api.github.com/users/moizalicious/gists{/gist_id}","starred_url":"https://api.github.com/users/moizalicious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moizalicious/subscriptions","organizations_url":"https://api.github.com/users/moizalicious/orgs","repos_url":"https://api.github.com/users/moizalicious/repos","events_url":"https://api.github.com/users/moizalicious/events{/privacy}","received_events_url":"https://api.github.com/users/moizalicious/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nCurrently, the design view of the SP Editor does not identify sinks and sources as different components and considers them as part of the stream. This code will display sinks and sources as separated nodes in the design view of the Stream Processor Editor and link them with the necessary edges to the streams that they belong too.\r\n\r\n## Goals\r\n* Identify and display sources as separate nodes and link them to their respective streams\r\n* Identify and display sinks as separate nodes and link them to their respective streams\r\n\r\n## Security checks\r\n - Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes\r\n - Ran FindSecurityBugs plugin and verified report? yes\r\n - Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes\r\n\r\n## Samples\r\nA sample of the Sources and Sinks generated in the design view for the 'RecieveAndCount' sample in the SP Editor is shown below:\r\n![ssdemo](https://user-images.githubusercontent.com/25219255/37771124-a24c4f3a-2dfc-11e8-9a47-dafbfbef89aa.gif)\r\n\r\nThis also supports distributed sources and sink:\r\n![image](https://user-images.githubusercontent.com/25219255/37771505-cb718866-2dfd-11e8-8a5b-c2992d92c3b6.png)\r\n\r\n\r\n","created_at":"2018-03-22T12:56:06Z","updated_at":"2018-03-22T13:02:39Z","closed_at":"2018-03-22T13:02:38Z","merged_at":"2018-03-22T13:02:38Z","merge_commit_sha":"3be80f324ce12fd77d1492d20c63e0c36df6dda1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-analytics/pulls/1204/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-analytics/pulls/1204/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-analytics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-analytics/issues/1204/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-analytics/statuses/fd34be3ea328217f5d5f099a72c3eb04b0375705","head":{"label":"moizalicious:master","ref":"master","sha":"fd34be3ea328217f5d5f099a72c3eb04b0375705","user":{"login":"moizalicious","id":25219255,"avatar_url":"https://avatars2.githubusercontent.com/u/25219255?v=4","gravatar_id":"","url":"https://api.github.com/users/moizalicious","html_url":"https://github.com/moizalicious","followers_url":"https://api.github.com/users/moizalicious/followers","following_url":"https://api.github.com/users/moizalicious/following{/other_user}","gists_url":"https://api.github.com/users/moizalicious/gists{/gist_id}","starred_url":"https://api.github.com/users/moizalicious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moizalicious/subscriptions","organizations_url":"https://api.github.com/users/moizalicious/orgs","repos_url":"https://api.github.com/users/moizalicious/repos","events_url":"https://api.github.com/users/moizalicious/events{/privacy}","received_events_url":"https://api.github.com/users/moizalicious/received_events","type":"User","site_admin":false},"repo":{"id":121358877,"name":"carbon-analytics","full_name":"moizalicious/carbon-analytics","owner":{"login":"moizalicious","id":25219255,"avatar_url":"https://avatars2.githubusercontent.com/u/25219255?v=4","gravatar_id":"","url":"https://api.github.com/users/moizalicious","html_url":"https://github.com/moizalicious","followers_url":"https://api.github.com/users/moizalicious/followers","following_url":"https://api.github.com/users/moizalicious/following{/other_user}","gists_url":"https://api.github.com/users/moizalicious/gists{/gist_id}","starred_url":"https://api.github.com/users/moizalicious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moizalicious/subscriptions","organizations_url":"https://api.github.com/users/moizalicious/orgs","repos_url":"https://api.github.com/users/moizalicious/repos","events_url":"https://api.github.com/users/moizalicious/events{/privacy}","received_events_url":"https://api.github.com/users/moizalicious/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moizalicious/carbon-analytics","description":null,"fork":true,"url":"https://api.github.com/repos/moizalicious/carbon-analytics","forks_url":"https://api.github.com/repos/moizalicious/carbon-analytics/forks","keys_url":"https://api.github.com/repos/moizalicious/carbon-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moizalicious/carbon-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moizalicious/carbon-analytics/teams","hooks_url":"https://api.github.com/repos/moizalicious/carbon-analytics/hooks","issue_events_url":"https://api.github.com/repos/moizalicious/carbon-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/moizalicious/carbon-analytics/events","assignees_url":"https://api.github.com/repos/moizalicious/carbon-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/moizalicious/carbon-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/moizalicious/carbon-analytics/tags","blobs_url":"https://api.github.com/repos/moizalicious/carbon-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moizalicious/carbon-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moizalicious/carbon-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/moizalicious/carbon-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moizalicious/carbon-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/moizalicious/carbon-analytics/languages","stargazers_url":"https://api.github.com/repos/moizalicious/carbon-analytics/stargazers","contributors_url":"https://api.github.com/repos/moizalicious/carbon-analytics/contributors","subscribers_url":"https://api.github.com/repos/moizalicious/carbon-analytics/subscribers","subscription_url":"https://api.github.com/repos/moizalicious/carbon-analytics/subscription","commits_url":"https://api.github.com/repos/moizalicious/carbon-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/moizalicious/carbon-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/moizalicious/carbon-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/moizalicious/carbon-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/moizalicious/carbon-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/moizalicious/carbon-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moizalicious/carbon-analytics/merges","archive_url":"https://api.github.com/repos/moizalicious/carbon-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moizalicious/carbon-analytics/downloads","issues_url":"https://api.github.com/repos/moizalicious/carbon-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/moizalicious/carbon-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/moizalicious/carbon-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/moizalicious/carbon-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moizalicious/carbon-analytics/labels{/name}","releases_url":"https://api.github.com/repos/moizalicious/carbon-analytics/releases{/id}","deployments_url":"https://api.github.com/repos/moizalicious/carbon-analytics/deployments","created_at":"2018-02-13T08:45:01Z","updated_at":"2018-03-22T12:12:44Z","pushed_at":"2018-03-22T12:12:43Z","git_url":"git://github.com/moizalicious/carbon-analytics.git","ssh_url":"git@github.com:moizalicious/carbon-analytics.git","clone_url":"https://github.com/moizalicious/carbon-analytics.git","svn_url":"https://github.com/moizalicious/carbon-analytics","homepage":null,"size":89246,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"b6af2c881409e055b080716784d962b894c42fd5","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":16543113,"name":"carbon-analytics","full_name":"wso2/carbon-analytics","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/carbon-analytics","description":null,"fork":false,"url":"https://api.github.com/repos/wso2/carbon-analytics","forks_url":"https://api.github.com/repos/wso2/carbon-analytics/forks","keys_url":"https://api.github.com/repos/wso2/carbon-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-analytics/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-analytics/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-analytics/events","assignees_url":"https://api.github.com/repos/wso2/carbon-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-analytics/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-analytics/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-analytics/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-analytics/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-analytics/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-analytics/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-analytics/merges","archive_url":"https://api.github.com/repos/wso2/carbon-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-analytics/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-analytics/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-analytics/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/carbon-analytics/deployments","created_at":"2014-02-05T11:40:58Z","updated_at":"2018-03-16T16:59:56Z","pushed_at":"2018-03-22T13:02:38Z","git_url":"git://github.com/wso2/carbon-analytics.git","ssh_url":"git@github.com:wso2/carbon-analytics.git","clone_url":"https://github.com/wso2/carbon-analytics.git","svn_url":"https://github.com/wso2/carbon-analytics","homepage":null,"size":89919,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":124,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":124,"open_issues":35,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-analytics/pulls/1204"},"html":{"href":"https://github.com/wso2/carbon-analytics/pull/1204"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-analytics/issues/1204"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-analytics/issues/1204/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-analytics/pulls/1204/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-analytics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-analytics/pulls/1204/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-analytics/statuses/fd34be3ea328217f5d5f099a72c3eb04b0375705"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"sajithshn","id":5134757,"avatar_url":"https://avatars1.githubusercontent.com/u/5134757?v=4","gravatar_id":"","url":"https://api.github.com/users/sajithshn","html_url":"https://github.com/sajithshn","followers_url":"https://api.github.com/users/sajithshn/followers","following_url":"https://api.github.com/users/sajithshn/following{/other_user}","gists_url":"https://api.github.com/users/sajithshn/gists{/gist_id}","starred_url":"https://api.github.com/users/sajithshn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sajithshn/subscriptions","organizations_url":"https://api.github.com/users/sajithshn/orgs","repos_url":"https://api.github.com/users/sajithshn/repos","events_url":"https://api.github.com/users/sajithshn/events{/privacy}","received_events_url":"https://api.github.com/users/sajithshn/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":272,"deletions":11,"changed_files":9}}
{"actor":{"display_login":"sajithshn"}}