{"action":"created","comment":{"url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/comments/111418457","pull_request_review_id":32662050,"id":111418457,"diff_hunk":"@@ -94,9 +99,10 @@ export default React.createClass({\n         // Check if the user has any projects, if not then set view to \"PROJECT_VIEW\"\n         // to create a new one\n         let projectList = stores.ProjectStore.getAll();\n-        if (projectList) {\n-            if (view != \"IMAGE_VIEW\" && projectList.length === 0) {\n-                this.viewProject();\n+        let sshKey = stores.SSHKeyStore.getAll();\n+        if (sshKey) {\n+            if (view != \"IMAGE_VIEW\" && sshKey.length === 0) {","path":"troposphere/static/js/components/modals/instance/InstanceLaunchWizardModal.jsx","position":43,"original_position":43,"commit_id":"4504a64221a43f64d53bef552020ad018670916c","original_commit_id":"4504a64221a43f64d53bef552020ad018670916c","user":{"login":"kamfonik","id":5913173,"avatar_url":"https://avatars0.githubusercontent.com/u/5913173?v=3","gravatar_id":"","url":"https://api.github.com/users/kamfonik","html_url":"https://github.com/kamfonik","followers_url":"https://api.github.com/users/kamfonik/followers","following_url":"https://api.github.com/users/kamfonik/following{/other_user}","gists_url":"https://api.github.com/users/kamfonik/gists{/gist_id}","starred_url":"https://api.github.com/users/kamfonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamfonik/subscriptions","organizations_url":"https://api.github.com/users/kamfonik/orgs","repos_url":"https://api.github.com/users/kamfonik/repos","events_url":"https://api.github.com/users/kamfonik/events{/privacy}","received_events_url":"https://api.github.com/users/kamfonik/received_events","type":"User","site_admin":false},"body":"I see this let/if statement repeated a lot, I wonder if it can be streamlined into a single function?","created_at":"2017-04-13T15:32:07Z","updated_at":"2017-04-13T15:33:08Z","html_url":"https://github.com/CCI-MOC/GUI-Frontend/pull/15#discussion_r111418457","pull_request_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/comments/111418457"},"html":{"href":"https://github.com/CCI-MOC/GUI-Frontend/pull/15#discussion_r111418457"},"pull_request":{"href":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/15","id":112258632,"html_url":"https://github.com/CCI-MOC/GUI-Frontend/pull/15","diff_url":"https://github.com/CCI-MOC/GUI-Frontend/pull/15.diff","patch_url":"https://github.com/CCI-MOC/GUI-Frontend/pull/15.patch","issue_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/issues/15","number":15,"state":"open","locked":false,"title":"Add a new view for asking users to upload their SSH pubkey","user":{"login":"xuhang57","id":7245860,"avatar_url":"https://avatars0.githubusercontent.com/u/7245860?v=3","gravatar_id":"","url":"https://api.github.com/users/xuhang57","html_url":"https://github.com/xuhang57","followers_url":"https://api.github.com/users/xuhang57/followers","following_url":"https://api.github.com/users/xuhang57/following{/other_user}","gists_url":"https://api.github.com/users/xuhang57/gists{/gist_id}","starred_url":"https://api.github.com/users/xuhang57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuhang57/subscriptions","organizations_url":"https://api.github.com/users/xuhang57/orgs","repos_url":"https://api.github.com/users/xuhang57/repos","events_url":"https://api.github.com/users/xuhang57/events{/privacy}","received_events_url":"https://api.github.com/users/xuhang57/received_events","type":"User","site_admin":false},"body":"Should NOT merge this until the project refactor is done. But any review is more than welcome.\r\n\r\n- [x] Refactor after project refactor is done.\r\n- [ ]  Reviewed and approved by at least one other contributor.","created_at":"2017-03-23T14:59:21Z","updated_at":"2017-04-13T15:33:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ede48fb51a08d6ffcf2a5365a998bf8a2fa6a4f2","assignee":{"login":"xuhang57","id":7245860,"avatar_url":"https://avatars0.githubusercontent.com/u/7245860?v=3","gravatar_id":"","url":"https://api.github.com/users/xuhang57","html_url":"https://github.com/xuhang57","followers_url":"https://api.github.com/users/xuhang57/followers","following_url":"https://api.github.com/users/xuhang57/following{/other_user}","gists_url":"https://api.github.com/users/xuhang57/gists{/gist_id}","starred_url":"https://api.github.com/users/xuhang57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuhang57/subscriptions","organizations_url":"https://api.github.com/users/xuhang57/orgs","repos_url":"https://api.github.com/users/xuhang57/repos","events_url":"https://api.github.com/users/xuhang57/events{/privacy}","received_events_url":"https://api.github.com/users/xuhang57/received_events","type":"User","site_admin":false},"assignees":[{"login":"xuhang57","id":7245860,"avatar_url":"https://avatars0.githubusercontent.com/u/7245860?v=3","gravatar_id":"","url":"https://api.github.com/users/xuhang57","html_url":"https://github.com/xuhang57","followers_url":"https://api.github.com/users/xuhang57/followers","following_url":"https://api.github.com/users/xuhang57/following{/other_user}","gists_url":"https://api.github.com/users/xuhang57/gists{/gist_id}","starred_url":"https://api.github.com/users/xuhang57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuhang57/subscriptions","organizations_url":"https://api.github.com/users/xuhang57/orgs","repos_url":"https://api.github.com/users/xuhang57/repos","events_url":"https://api.github.com/users/xuhang57/events{/privacy}","received_events_url":"https://api.github.com/users/xuhang57/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/15/commits","review_comments_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/15/comments","review_comment_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/issues/15/comments","statuses_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/statuses/4504a64221a43f64d53bef552020ad018670916c","head":{"label":"xuhang57:ssh-refactor","ref":"ssh-refactor","sha":"4504a64221a43f64d53bef552020ad018670916c","user":{"login":"xuhang57","id":7245860,"avatar_url":"https://avatars0.githubusercontent.com/u/7245860?v=3","gravatar_id":"","url":"https://api.github.com/users/xuhang57","html_url":"https://github.com/xuhang57","followers_url":"https://api.github.com/users/xuhang57/followers","following_url":"https://api.github.com/users/xuhang57/following{/other_user}","gists_url":"https://api.github.com/users/xuhang57/gists{/gist_id}","starred_url":"https://api.github.com/users/xuhang57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuhang57/subscriptions","organizations_url":"https://api.github.com/users/xuhang57/orgs","repos_url":"https://api.github.com/users/xuhang57/repos","events_url":"https://api.github.com/users/xuhang57/events{/privacy}","received_events_url":"https://api.github.com/users/xuhang57/received_events","type":"User","site_admin":false},"repo":{"id":80761016,"name":"GUI-Frontend","full_name":"xuhang57/GUI-Frontend","owner":{"login":"xuhang57","id":7245860,"avatar_url":"https://avatars0.githubusercontent.com/u/7245860?v=3","gravatar_id":"","url":"https://api.github.com/users/xuhang57","html_url":"https://github.com/xuhang57","followers_url":"https://api.github.com/users/xuhang57/followers","following_url":"https://api.github.com/users/xuhang57/following{/other_user}","gists_url":"https://api.github.com/users/xuhang57/gists{/gist_id}","starred_url":"https://api.github.com/users/xuhang57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuhang57/subscriptions","organizations_url":"https://api.github.com/users/xuhang57/orgs","repos_url":"https://api.github.com/users/xuhang57/repos","events_url":"https://api.github.com/users/xuhang57/events{/privacy}","received_events_url":"https://api.github.com/users/xuhang57/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xuhang57/GUI-Frontend","description":"MOC simple GUI built on top of Troposphere","fork":true,"url":"https://api.github.com/repos/xuhang57/GUI-Frontend","forks_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/forks","keys_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/teams","hooks_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/hooks","issue_events_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/issues/events{/number}","events_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/events","assignees_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/assignees{/user}","branches_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/branches{/branch}","tags_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/tags","blobs_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/languages","stargazers_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/stargazers","contributors_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/contributors","subscribers_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/subscribers","subscription_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/subscription","commits_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/contents/{+path}","compare_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/merges","archive_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/downloads","issues_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/issues{/number}","pulls_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/labels{/name}","releases_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/releases{/id}","deployments_url":"https://api.github.com/repos/xuhang57/GUI-Frontend/deployments","created_at":"2017-02-02T19:33:11Z","updated_at":"2017-02-02T19:33:13Z","pushed_at":"2017-04-13T15:00:10Z","git_url":"git://github.com/xuhang57/GUI-Frontend.git","ssh_url":"git@github.com:xuhang57/GUI-Frontend.git","clone_url":"https://github.com/xuhang57/GUI-Frontend.git","svn_url":"https://github.com/xuhang57/GUI-Frontend","homepage":"","size":8349,"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":"CCI-MOC:master","ref":"master","sha":"8c7413ea2bd022b696ff5c38b4d49fe1462f869d","user":{"login":"CCI-MOC","id":3578683,"avatar_url":"https://avatars2.githubusercontent.com/u/3578683?v=3","gravatar_id":"","url":"https://api.github.com/users/CCI-MOC","html_url":"https://github.com/CCI-MOC","followers_url":"https://api.github.com/users/CCI-MOC/followers","following_url":"https://api.github.com/users/CCI-MOC/following{/other_user}","gists_url":"https://api.github.com/users/CCI-MOC/gists{/gist_id}","starred_url":"https://api.github.com/users/CCI-MOC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCI-MOC/subscriptions","organizations_url":"https://api.github.com/users/CCI-MOC/orgs","repos_url":"https://api.github.com/users/CCI-MOC/repos","events_url":"https://api.github.com/users/CCI-MOC/events{/privacy}","received_events_url":"https://api.github.com/users/CCI-MOC/received_events","type":"Organization","site_admin":false},"repo":{"id":77947030,"name":"GUI-Frontend","full_name":"CCI-MOC/GUI-Frontend","owner":{"login":"CCI-MOC","id":3578683,"avatar_url":"https://avatars2.githubusercontent.com/u/3578683?v=3","gravatar_id":"","url":"https://api.github.com/users/CCI-MOC","html_url":"https://github.com/CCI-MOC","followers_url":"https://api.github.com/users/CCI-MOC/followers","following_url":"https://api.github.com/users/CCI-MOC/following{/other_user}","gists_url":"https://api.github.com/users/CCI-MOC/gists{/gist_id}","starred_url":"https://api.github.com/users/CCI-MOC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCI-MOC/subscriptions","organizations_url":"https://api.github.com/users/CCI-MOC/orgs","repos_url":"https://api.github.com/users/CCI-MOC/repos","events_url":"https://api.github.com/users/CCI-MOC/events{/privacy}","received_events_url":"https://api.github.com/users/CCI-MOC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CCI-MOC/GUI-Frontend","description":"MOC simple GUI built on top of Troposphere","fork":false,"url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend","forks_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/forks","keys_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/teams","hooks_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/hooks","issue_events_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/issues/events{/number}","events_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/events","assignees_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/assignees{/user}","branches_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/branches{/branch}","tags_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/tags","blobs_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/languages","stargazers_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/stargazers","contributors_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/contributors","subscribers_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/subscribers","subscription_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/subscription","commits_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/contents/{+path}","compare_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/merges","archive_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/downloads","issues_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/issues{/number}","pulls_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/labels{/name}","releases_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/releases{/id}","deployments_url":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/deployments","created_at":"2017-01-03T19:38:50Z","updated_at":"2017-01-12T21:16:32Z","pushed_at":"2017-04-13T15:00:11Z","git_url":"git://github.com/CCI-MOC/GUI-Frontend.git","ssh_url":"git@github.com:CCI-MOC/GUI-Frontend.git","clone_url":"https://github.com/CCI-MOC/GUI-Frontend.git","svn_url":"https://github.com/CCI-MOC/GUI-Frontend","homepage":"","size":8322,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/15"},"html":{"href":"https://github.com/CCI-MOC/GUI-Frontend/pull/15"},"issue":{"href":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/issues/15"},"comments":{"href":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/CCI-MOC/GUI-Frontend/statuses/4504a64221a43f64d53bef552020ad018670916c"}}}}
{"actor":{"display_login":"kamfonik"}}