{"action":"created","comment":{"url":"https://api.github.com/repos/relayr/browser-sdk/pulls/comments/91933239","pull_request_review_id":12441454,"id":91933239,"diff_hunk":"@@ -95,13 +95,48 @@ export default class User {\n \n     getMyApps() {\n         return new Promise((resolve, reject) => {\n+            this.getMyPublishers().then((res)=>{\n+                this.getPublisherApps(res).then((res2)=>{\n+                    resolve(res2);\n+                }, (err)=>{reject(err)}\n+                );\n+            }, (err)=>{reject(err)\n+            });\n+        });\n+    }\n+\n+    getMyPublishers(){\n+        return new Promise((resolve, reject) => {\n             this.getUserInfo().then(() => {\n-                ajax.get(`/users/${this.userInfo.id}/apps`).then((response) => {\n+                ajax.get(`/users/${this.userInfo.id}/publishers`)\n+                .then((response) => {\n                     resolve(response);\n-                }).catch((error) => {\n+                })\n+                .catch((error) => {\n                     reject(error);\n                 });\n             });\n+        });                        \n+    }\n+\n+    getPublisherApps(pubsArray){","path":"src/entities/User.js","position":30,"original_position":30,"commit_id":"7f99c7e5063c275995ee8a7b63b09667c80bfc0a","original_commit_id":"7f99c7e5063c275995ee8a7b63b09667c80bfc0a","user":{"login":"SmbatYeranyan","id":6469521,"avatar_url":"https://avatars.githubusercontent.com/u/6469521?v=3","gravatar_id":"","url":"https://api.github.com/users/SmbatYeranyan","html_url":"https://github.com/SmbatYeranyan","followers_url":"https://api.github.com/users/SmbatYeranyan/followers","following_url":"https://api.github.com/users/SmbatYeranyan/following{/other_user}","gists_url":"https://api.github.com/users/SmbatYeranyan/gists{/gist_id}","starred_url":"https://api.github.com/users/SmbatYeranyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmbatYeranyan/subscriptions","organizations_url":"https://api.github.com/users/SmbatYeranyan/orgs","repos_url":"https://api.github.com/users/SmbatYeranyan/repos","events_url":"https://api.github.com/users/SmbatYeranyan/events{/privacy}","received_events_url":"https://api.github.com/users/SmbatYeranyan/received_events","type":"User","site_admin":false},"body":"So its a private function used by getMyApps? ","created_at":"2016-12-12T11:58:24Z","updated_at":"2016-12-12T11:58:24Z","html_url":"https://github.com/relayr/browser-sdk/pull/75#discussion_r91933239","pull_request_url":"https://api.github.com/repos/relayr/browser-sdk/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/relayr/browser-sdk/pulls/comments/91933239"},"html":{"href":"https://github.com/relayr/browser-sdk/pull/75#discussion_r91933239"},"pull_request":{"href":"https://api.github.com/repos/relayr/browser-sdk/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/relayr/browser-sdk/pulls/75","id":96080223,"html_url":"https://github.com/relayr/browser-sdk/pull/75","diff_url":"https://github.com/relayr/browser-sdk/pull/75.diff","patch_url":"https://github.com/relayr/browser-sdk/pull/75.patch","issue_url":"https://api.github.com/repos/relayr/browser-sdk/issues/75","number":75,"state":"open","locked":false,"title":"Dev extended project info","user":{"login":"mcgnly","id":5653631,"avatar_url":"https://avatars.githubusercontent.com/u/5653631?v=3","gravatar_id":"","url":"https://api.github.com/users/mcgnly","html_url":"https://github.com/mcgnly","followers_url":"https://api.github.com/users/mcgnly/followers","following_url":"https://api.github.com/users/mcgnly/following{/other_user}","gists_url":"https://api.github.com/users/mcgnly/gists{/gist_id}","starred_url":"https://api.github.com/users/mcgnly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcgnly/subscriptions","organizations_url":"https://api.github.com/users/mcgnly/orgs","repos_url":"https://api.github.com/users/mcgnly/repos","events_url":"https://api.github.com/users/mcgnly/events{/privacy}","received_events_url":"https://api.github.com/users/mcgnly/received_events","type":"User","site_admin":false},"body":"get extended info from projects","created_at":"2016-12-01T12:31:49Z","updated_at":"2016-12-12T11:58:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d9dab7469d0a13975a1fda0f86f7e26bfa4fee3","assignee":{"login":"SmbatYeranyan","id":6469521,"avatar_url":"https://avatars.githubusercontent.com/u/6469521?v=3","gravatar_id":"","url":"https://api.github.com/users/SmbatYeranyan","html_url":"https://github.com/SmbatYeranyan","followers_url":"https://api.github.com/users/SmbatYeranyan/followers","following_url":"https://api.github.com/users/SmbatYeranyan/following{/other_user}","gists_url":"https://api.github.com/users/SmbatYeranyan/gists{/gist_id}","starred_url":"https://api.github.com/users/SmbatYeranyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmbatYeranyan/subscriptions","organizations_url":"https://api.github.com/users/SmbatYeranyan/orgs","repos_url":"https://api.github.com/users/SmbatYeranyan/repos","events_url":"https://api.github.com/users/SmbatYeranyan/events{/privacy}","received_events_url":"https://api.github.com/users/SmbatYeranyan/received_events","type":"User","site_admin":false},"assignees":[{"login":"SmbatYeranyan","id":6469521,"avatar_url":"https://avatars.githubusercontent.com/u/6469521?v=3","gravatar_id":"","url":"https://api.github.com/users/SmbatYeranyan","html_url":"https://github.com/SmbatYeranyan","followers_url":"https://api.github.com/users/SmbatYeranyan/followers","following_url":"https://api.github.com/users/SmbatYeranyan/following{/other_user}","gists_url":"https://api.github.com/users/SmbatYeranyan/gists{/gist_id}","starred_url":"https://api.github.com/users/SmbatYeranyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmbatYeranyan/subscriptions","organizations_url":"https://api.github.com/users/SmbatYeranyan/orgs","repos_url":"https://api.github.com/users/SmbatYeranyan/repos","events_url":"https://api.github.com/users/SmbatYeranyan/events{/privacy}","received_events_url":"https://api.github.com/users/SmbatYeranyan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/relayr/browser-sdk/pulls/75/commits","review_comments_url":"https://api.github.com/repos/relayr/browser-sdk/pulls/75/comments","review_comment_url":"https://api.github.com/repos/relayr/browser-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/relayr/browser-sdk/issues/75/comments","statuses_url":"https://api.github.com/repos/relayr/browser-sdk/statuses/7f99c7e5063c275995ee8a7b63b09667c80bfc0a","head":{"label":"relayr:dev-extended-project-info","ref":"dev-extended-project-info","sha":"7f99c7e5063c275995ee8a7b63b09667c80bfc0a","user":{"login":"relayr","id":5864098,"avatar_url":"https://avatars.githubusercontent.com/u/5864098?v=3","gravatar_id":"","url":"https://api.github.com/users/relayr","html_url":"https://github.com/relayr","followers_url":"https://api.github.com/users/relayr/followers","following_url":"https://api.github.com/users/relayr/following{/other_user}","gists_url":"https://api.github.com/users/relayr/gists{/gist_id}","starred_url":"https://api.github.com/users/relayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relayr/subscriptions","organizations_url":"https://api.github.com/users/relayr/orgs","repos_url":"https://api.github.com/users/relayr/repos","events_url":"https://api.github.com/users/relayr/events{/privacy}","received_events_url":"https://api.github.com/users/relayr/received_events","type":"Organization","site_admin":false},"repo":{"id":24459386,"name":"browser-sdk","full_name":"relayr/browser-sdk","owner":{"login":"relayr","id":5864098,"avatar_url":"https://avatars.githubusercontent.com/u/5864098?v=3","gravatar_id":"","url":"https://api.github.com/users/relayr","html_url":"https://github.com/relayr","followers_url":"https://api.github.com/users/relayr/followers","following_url":"https://api.github.com/users/relayr/following{/other_user}","gists_url":"https://api.github.com/users/relayr/gists{/gist_id}","starred_url":"https://api.github.com/users/relayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relayr/subscriptions","organizations_url":"https://api.github.com/users/relayr/orgs","repos_url":"https://api.github.com/users/relayr/repos","events_url":"https://api.github.com/users/relayr/events{/privacy}","received_events_url":"https://api.github.com/users/relayr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/relayr/browser-sdk","description":"This easy to use JavaScript implementation will allow you to quickly create relayr browser side web applications, start receiving data from your sensors and display the data received in your browser. ","fork":false,"url":"https://api.github.com/repos/relayr/browser-sdk","forks_url":"https://api.github.com/repos/relayr/browser-sdk/forks","keys_url":"https://api.github.com/repos/relayr/browser-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relayr/browser-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relayr/browser-sdk/teams","hooks_url":"https://api.github.com/repos/relayr/browser-sdk/hooks","issue_events_url":"https://api.github.com/repos/relayr/browser-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/relayr/browser-sdk/events","assignees_url":"https://api.github.com/repos/relayr/browser-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/relayr/browser-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/relayr/browser-sdk/tags","blobs_url":"https://api.github.com/repos/relayr/browser-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relayr/browser-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relayr/browser-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/relayr/browser-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relayr/browser-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/relayr/browser-sdk/languages","stargazers_url":"https://api.github.com/repos/relayr/browser-sdk/stargazers","contributors_url":"https://api.github.com/repos/relayr/browser-sdk/contributors","subscribers_url":"https://api.github.com/repos/relayr/browser-sdk/subscribers","subscription_url":"https://api.github.com/repos/relayr/browser-sdk/subscription","commits_url":"https://api.github.com/repos/relayr/browser-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/relayr/browser-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/relayr/browser-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/relayr/browser-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/relayr/browser-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/relayr/browser-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relayr/browser-sdk/merges","archive_url":"https://api.github.com/repos/relayr/browser-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relayr/browser-sdk/downloads","issues_url":"https://api.github.com/repos/relayr/browser-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/relayr/browser-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/relayr/browser-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/relayr/browser-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relayr/browser-sdk/labels{/name}","releases_url":"https://api.github.com/repos/relayr/browser-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/relayr/browser-sdk/deployments","created_at":"2014-09-25T13:37:21Z","updated_at":"2016-11-10T08:49:27Z","pushed_at":"2016-12-08T12:37:04Z","git_url":"git://github.com/relayr/browser-sdk.git","ssh_url":"git@github.com:relayr/browser-sdk.git","clone_url":"https://github.com/relayr/browser-sdk.git","svn_url":"https://github.com/relayr/browser-sdk","homepage":"","size":1498,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":7,"default_branch":"master"}},"base":{"label":"relayr:dev","ref":"dev","sha":"a63fca7a7c25a603a197e4e70fea7a2c036a8216","user":{"login":"relayr","id":5864098,"avatar_url":"https://avatars.githubusercontent.com/u/5864098?v=3","gravatar_id":"","url":"https://api.github.com/users/relayr","html_url":"https://github.com/relayr","followers_url":"https://api.github.com/users/relayr/followers","following_url":"https://api.github.com/users/relayr/following{/other_user}","gists_url":"https://api.github.com/users/relayr/gists{/gist_id}","starred_url":"https://api.github.com/users/relayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relayr/subscriptions","organizations_url":"https://api.github.com/users/relayr/orgs","repos_url":"https://api.github.com/users/relayr/repos","events_url":"https://api.github.com/users/relayr/events{/privacy}","received_events_url":"https://api.github.com/users/relayr/received_events","type":"Organization","site_admin":false},"repo":{"id":24459386,"name":"browser-sdk","full_name":"relayr/browser-sdk","owner":{"login":"relayr","id":5864098,"avatar_url":"https://avatars.githubusercontent.com/u/5864098?v=3","gravatar_id":"","url":"https://api.github.com/users/relayr","html_url":"https://github.com/relayr","followers_url":"https://api.github.com/users/relayr/followers","following_url":"https://api.github.com/users/relayr/following{/other_user}","gists_url":"https://api.github.com/users/relayr/gists{/gist_id}","starred_url":"https://api.github.com/users/relayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relayr/subscriptions","organizations_url":"https://api.github.com/users/relayr/orgs","repos_url":"https://api.github.com/users/relayr/repos","events_url":"https://api.github.com/users/relayr/events{/privacy}","received_events_url":"https://api.github.com/users/relayr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/relayr/browser-sdk","description":"This easy to use JavaScript implementation will allow you to quickly create relayr browser side web applications, start receiving data from your sensors and display the data received in your browser. ","fork":false,"url":"https://api.github.com/repos/relayr/browser-sdk","forks_url":"https://api.github.com/repos/relayr/browser-sdk/forks","keys_url":"https://api.github.com/repos/relayr/browser-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relayr/browser-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relayr/browser-sdk/teams","hooks_url":"https://api.github.com/repos/relayr/browser-sdk/hooks","issue_events_url":"https://api.github.com/repos/relayr/browser-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/relayr/browser-sdk/events","assignees_url":"https://api.github.com/repos/relayr/browser-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/relayr/browser-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/relayr/browser-sdk/tags","blobs_url":"https://api.github.com/repos/relayr/browser-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relayr/browser-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relayr/browser-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/relayr/browser-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relayr/browser-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/relayr/browser-sdk/languages","stargazers_url":"https://api.github.com/repos/relayr/browser-sdk/stargazers","contributors_url":"https://api.github.com/repos/relayr/browser-sdk/contributors","subscribers_url":"https://api.github.com/repos/relayr/browser-sdk/subscribers","subscription_url":"https://api.github.com/repos/relayr/browser-sdk/subscription","commits_url":"https://api.github.com/repos/relayr/browser-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/relayr/browser-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/relayr/browser-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/relayr/browser-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/relayr/browser-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/relayr/browser-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relayr/browser-sdk/merges","archive_url":"https://api.github.com/repos/relayr/browser-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relayr/browser-sdk/downloads","issues_url":"https://api.github.com/repos/relayr/browser-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/relayr/browser-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/relayr/browser-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/relayr/browser-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relayr/browser-sdk/labels{/name}","releases_url":"https://api.github.com/repos/relayr/browser-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/relayr/browser-sdk/deployments","created_at":"2014-09-25T13:37:21Z","updated_at":"2016-11-10T08:49:27Z","pushed_at":"2016-12-08T12:37:04Z","git_url":"git://github.com/relayr/browser-sdk.git","ssh_url":"git@github.com:relayr/browser-sdk.git","clone_url":"https://github.com/relayr/browser-sdk.git","svn_url":"https://github.com/relayr/browser-sdk","homepage":"","size":1498,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/relayr/browser-sdk/pulls/75"},"html":{"href":"https://github.com/relayr/browser-sdk/pull/75"},"issue":{"href":"https://api.github.com/repos/relayr/browser-sdk/issues/75"},"comments":{"href":"https://api.github.com/repos/relayr/browser-sdk/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/relayr/browser-sdk/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/relayr/browser-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/relayr/browser-sdk/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/relayr/browser-sdk/statuses/7f99c7e5063c275995ee8a7b63b09667c80bfc0a"}}}}
{"actor":{"display_login":"SmbatYeranyan"}}