{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/comments/135439677","pull_request_review_id":58850868,"id":135439677,"diff_hunk":"@@ -0,0 +1,48 @@\n+import React from 'react';\n+\n+class Subscriber extends React.Component {\n+    constructor(props) {\n+        super(props);\n+        this.state = { receivedMsg: '' };\n+        this.set = new Set();\n+        this.clearMsgs = this.clearMsgs.bind(this);\n+    }\n+\n+    componentDidMount() {\n+        this.props.glEventHub.on('pub-sub-channel', this.setReceivedMsg.bind(this));\n+    }\n+\n+    setReceivedMsg(receivedMsg) {\n+        this.set.add(receivedMsg);\n+        this.setState({ receivedMsg });\n+    }\n+\n+    generateOutput() {\n+        if (this.state.receivedMsg) {\n+            const output = [];\n+            for (const key of this.set.values()) {\n+                output.push(<div>[Received] {new Date().toTimeString()} [Message] - {key}</div>);\n+            }\n+            return output;\n+        } else {\n+            return '';\n+        }\n+    }\n+\n+    clearMsgs() {\n+        this.setState({ receivedMsg: '' });\n+        this.set.clear();\n+    }\n+\n+    render() {\n+        return (<section><h4 style={{ display: 'inline', marginRight: 10 }}>Received Messages</h4><input","path":"components/dashboards-web-component/src/Subscriber.jsx","position":38,"original_position":38,"commit_id":"c2f676929b767f0875ddc7b3b492b13f63c36930","original_commit_id":"c2f676929b767f0875ddc7b3b492b13f63c36930","user":{"login":"TanyaM","id":3957104,"avatar_url":"https://avatars2.githubusercontent.com/u/3957104?v=4","gravatar_id":"","url":"https://api.github.com/users/TanyaM","html_url":"https://github.com/TanyaM","followers_url":"https://api.github.com/users/TanyaM/followers","following_url":"https://api.github.com/users/TanyaM/following{/other_user}","gists_url":"https://api.github.com/users/TanyaM/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaM/subscriptions","organizations_url":"https://api.github.com/users/TanyaM/orgs","repos_url":"https://api.github.com/users/TanyaM/repos","events_url":"https://api.github.com/users/TanyaM/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaM/received_events","type":"User","site_admin":false},"body":"Localization","created_at":"2017-08-28T04:26:58Z","updated_at":"2017-08-28T04:26:58Z","html_url":"https://github.com/wso2/carbon-dashboards/pull/551#discussion_r135439677","pull_request_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/551","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/comments/135439677"},"html":{"href":"https://github.com/wso2/carbon-dashboards/pull/551#discussion_r135439677"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/551"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/551","id":137130015,"html_url":"https://github.com/wso2/carbon-dashboards/pull/551","diff_url":"https://github.com/wso2/carbon-dashboards/pull/551.diff","patch_url":"https://github.com/wso2/carbon-dashboards/pull/551.patch","issue_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues/551","number":551,"state":"open","locked":false,"title":"Implement dashboard listing and view component","user":{"login":"NisalaNiroshana","id":10518715,"avatar_url":"https://avatars2.githubusercontent.com/u/10518715?v=4","gravatar_id":"","url":"https://api.github.com/users/NisalaNiroshana","html_url":"https://github.com/NisalaNiroshana","followers_url":"https://api.github.com/users/NisalaNiroshana/followers","following_url":"https://api.github.com/users/NisalaNiroshana/following{/other_user}","gists_url":"https://api.github.com/users/NisalaNiroshana/gists{/gist_id}","starred_url":"https://api.github.com/users/NisalaNiroshana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NisalaNiroshana/subscriptions","organizations_url":"https://api.github.com/users/NisalaNiroshana/orgs","repos_url":"https://api.github.com/users/NisalaNiroshana/repos","events_url":"https://api.github.com/users/NisalaNiroshana/events{/privacy}","received_events_url":"https://api.github.com/users/NisalaNiroshana/received_events","type":"User","site_admin":false},"body":"This PR will provide following features for the dashboard framework,\r\n\r\n- Dashboard listing (This will retrieve the dashboard from the DB and list down)\r\n- Backend API support for dashboard CRUD activities.\r\n- Dashboard view support (This will retrieve the selected dashboard from DB and render using Golden Layout)\r\n- Multiple pages support for dashboards (This will introduce multiple pages at the same level, We need to support hierarchical page support )\r\n- Internal routing between dashboard listing and dashboard view\r\n\r\nResolves #550","created_at":"2017-08-23T04:51:57Z","updated_at":"2017-08-28T04:26:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"158375d8e87d77e2cf6e8aa88a1c19ef5ad45771","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/551/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/551/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues/551/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-dashboards/statuses/c2f676929b767f0875ddc7b3b492b13f63c36930","head":{"label":"NisalaNiroshana:react-based-dashboard_dev","ref":"react-based-dashboard_dev","sha":"c2f676929b767f0875ddc7b3b492b13f63c36930","user":{"login":"NisalaNiroshana","id":10518715,"avatar_url":"https://avatars2.githubusercontent.com/u/10518715?v=4","gravatar_id":"","url":"https://api.github.com/users/NisalaNiroshana","html_url":"https://github.com/NisalaNiroshana","followers_url":"https://api.github.com/users/NisalaNiroshana/followers","following_url":"https://api.github.com/users/NisalaNiroshana/following{/other_user}","gists_url":"https://api.github.com/users/NisalaNiroshana/gists{/gist_id}","starred_url":"https://api.github.com/users/NisalaNiroshana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NisalaNiroshana/subscriptions","organizations_url":"https://api.github.com/users/NisalaNiroshana/orgs","repos_url":"https://api.github.com/users/NisalaNiroshana/repos","events_url":"https://api.github.com/users/NisalaNiroshana/events{/privacy}","received_events_url":"https://api.github.com/users/NisalaNiroshana/received_events","type":"User","site_admin":false},"repo":{"id":56044823,"name":"carbon-dashboards","full_name":"NisalaNiroshana/carbon-dashboards","owner":{"login":"NisalaNiroshana","id":10518715,"avatar_url":"https://avatars2.githubusercontent.com/u/10518715?v=4","gravatar_id":"","url":"https://api.github.com/users/NisalaNiroshana","html_url":"https://github.com/NisalaNiroshana","followers_url":"https://api.github.com/users/NisalaNiroshana/followers","following_url":"https://api.github.com/users/NisalaNiroshana/following{/other_user}","gists_url":"https://api.github.com/users/NisalaNiroshana/gists{/gist_id}","starred_url":"https://api.github.com/users/NisalaNiroshana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NisalaNiroshana/subscriptions","organizations_url":"https://api.github.com/users/NisalaNiroshana/orgs","repos_url":"https://api.github.com/users/NisalaNiroshana/repos","events_url":"https://api.github.com/users/NisalaNiroshana/events{/privacy}","received_events_url":"https://api.github.com/users/NisalaNiroshana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NisalaNiroshana/carbon-dashboards","description":null,"fork":true,"url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards","forks_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/forks","keys_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/teams","hooks_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/hooks","issue_events_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/issues/events{/number}","events_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/events","assignees_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/assignees{/user}","branches_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/branches{/branch}","tags_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/tags","blobs_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/git/refs{/sha}","trees_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/statuses/{sha}","languages_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/languages","stargazers_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/stargazers","contributors_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/contributors","subscribers_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/subscribers","subscription_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/subscription","commits_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/commits{/sha}","git_commits_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/git/commits{/sha}","comments_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/comments{/number}","issue_comment_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/issues/comments{/number}","contents_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/contents/{+path}","compare_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/merges","archive_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/downloads","issues_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/issues{/number}","pulls_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/pulls{/number}","milestones_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/milestones{/number}","notifications_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/labels{/name}","releases_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/releases{/id}","deployments_url":"https://api.github.com/repos/NisalaNiroshana/carbon-dashboards/deployments","created_at":"2016-04-12T08:25:47Z","updated_at":"2016-04-12T08:25:51Z","pushed_at":"2017-08-23T04:53:45Z","git_url":"git://github.com/NisalaNiroshana/carbon-dashboards.git","ssh_url":"git@github.com:NisalaNiroshana/carbon-dashboards.git","clone_url":"https://github.com/NisalaNiroshana/carbon-dashboards.git","svn_url":"https://github.com/NisalaNiroshana/carbon-dashboards","homepage":null,"size":12764,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:react-based-dashboard","ref":"react-based-dashboard","sha":"2312a67d3b0e186d9159c8e3cc60e955ea500bd9","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":36008880,"name":"carbon-dashboards","full_name":"wso2/carbon-dashboards","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-dashboards","description":null,"fork":false,"url":"https://api.github.com/repos/wso2/carbon-dashboards","forks_url":"https://api.github.com/repos/wso2/carbon-dashboards/forks","keys_url":"https://api.github.com/repos/wso2/carbon-dashboards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-dashboards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-dashboards/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-dashboards/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-dashboards/events","assignees_url":"https://api.github.com/repos/wso2/carbon-dashboards/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-dashboards/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-dashboards/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-dashboards/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-dashboards/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-dashboards/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-dashboards/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-dashboards/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-dashboards/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-dashboards/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-dashboards/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-dashboards/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-dashboards/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-dashboards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-dashboards/merges","archive_url":"https://api.github.com/repos/wso2/carbon-dashboards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-dashboards/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-dashboards/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-dashboards/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-dashboards/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-dashboards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-dashboards/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-dashboards/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/carbon-dashboards/deployments","created_at":"2015-05-21T11:25:31Z","updated_at":"2016-12-29T19:09:43Z","pushed_at":"2017-08-23T04:53:47Z","git_url":"git://github.com/wso2/carbon-dashboards.git","ssh_url":"git@github.com:wso2/carbon-dashboards.git","clone_url":"https://github.com/wso2/carbon-dashboards.git","svn_url":"https://github.com/wso2/carbon-dashboards","homepage":null,"size":12510,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":20,"forks":57,"open_issues":20,"watchers":6,"default_branch":"uuf-portal"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/551"},"html":{"href":"https://github.com/wso2/carbon-dashboards/pull/551"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/issues/551"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/issues/551/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/551/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/pulls/551/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-dashboards/statuses/c2f676929b767f0875ddc7b3b492b13f63c36930"}}}}
{"actor":{"display_login":"TanyaM"}}