{"action":"created","comment":{"url":"https://api.github.com/repos/cBioPortal/iViz/pulls/comments/78389784","id":78389784,"diff_hunk":"@@ -42,6 +42,23 @@ var iViz = (function(_, $, cbio, QueryByGeneUtil, QueryByGeneTextArea) {\n   var patientData_;\n   var sampleData_;\n   var charts = {};\n+\n+  function getAttrVal(attrs, arr) {\n+    var str = [];\n+    _.each(attrs, function(displayName, attrId) {\n+      if (attrId === 'cna_details' || attrId === 'mutated_genes') {\n+        var temp = 'No';\n+        if (arr[attrId] !== undefined) {\n+          temp = arr[attrId].length > 0 ? 'Yes' : 'No';\n+        }\n+        str.push(temp);\n+      } else {\n+        str.push(arr[attrId]); // This may return undefined. Is this expected?","path":"app/scripts/main.js","position":15,"original_position":15,"commit_id":"414e135aa9f37df0d11f9fa63a351c85f848372f","original_commit_id":"414e135aa9f37df0d11f9fa63a351c85f848372f","user":{"login":"kalletlak","id":12956870,"avatar_url":"https://avatars.githubusercontent.com/u/12956870?v=3","gravatar_id":"","url":"https://api.github.com/users/kalletlak","html_url":"https://github.com/kalletlak","followers_url":"https://api.github.com/users/kalletlak/followers","following_url":"https://api.github.com/users/kalletlak/following{/other_user}","gists_url":"https://api.github.com/users/kalletlak/gists{/gist_id}","starred_url":"https://api.github.com/users/kalletlak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalletlak/subscriptions","organizations_url":"https://api.github.com/users/kalletlak/orgs","repos_url":"https://api.github.com/users/kalletlak/repos","events_url":"https://api.github.com/users/kalletlak/events{/privacy}","received_events_url":"https://api.github.com/users/kalletlak/received_events","type":"User","site_admin":false},"body":"Should be check for undefined and if yes shall we set it to 'NA'?","created_at":"2016-09-12T15:01:44Z","updated_at":"2016-09-12T15:01:44Z","html_url":"https://github.com/cBioPortal/iViz/pull/223#discussion_r78389784","pull_request_url":"https://api.github.com/repos/cBioPortal/iViz/pulls/223","_links":{"self":{"href":"https://api.github.com/repos/cBioPortal/iViz/pulls/comments/78389784"},"html":{"href":"https://github.com/cBioPortal/iViz/pull/223#discussion_r78389784"},"pull_request":{"href":"https://api.github.com/repos/cBioPortal/iViz/pulls/223"}}},"pull_request":{"url":"https://api.github.com/repos/cBioPortal/iViz/pulls/223","id":84886834,"html_url":"https://github.com/cBioPortal/iViz/pull/223","diff_url":"https://github.com/cBioPortal/iViz/pull/223.diff","patch_url":"https://github.com/cBioPortal/iViz/pull/223.patch","issue_url":"https://api.github.com/repos/cBioPortal/iViz/issues/223","number":223,"state":"open","locked":false,"title":"Fix eslint linting errors ","user":{"login":"zhx828","id":5400599,"avatar_url":"https://avatars.githubusercontent.com/u/5400599?v=3","gravatar_id":"","url":"https://api.github.com/users/zhx828","html_url":"https://github.com/zhx828","followers_url":"https://api.github.com/users/zhx828/followers","following_url":"https://api.github.com/users/zhx828/following{/other_user}","gists_url":"https://api.github.com/users/zhx828/gists{/gist_id}","starred_url":"https://api.github.com/users/zhx828/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhx828/subscriptions","organizations_url":"https://api.github.com/users/zhx828/orgs","repos_url":"https://api.github.com/users/zhx828/repos","events_url":"https://api.github.com/users/zhx828/events{/privacy}","received_events_url":"https://api.github.com/users/zhx828/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-12T14:58:47Z","updated_at":"2016-09-12T15:01:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6124801c8604a30b8e3e12825f02d0769c06e457","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cBioPortal/iViz/pulls/223/commits","review_comments_url":"https://api.github.com/repos/cBioPortal/iViz/pulls/223/comments","review_comment_url":"https://api.github.com/repos/cBioPortal/iViz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cBioPortal/iViz/issues/223/comments","statuses_url":"https://api.github.com/repos/cBioPortal/iViz/statuses/414e135aa9f37df0d11f9fa63a351c85f848372f","head":{"label":"zhx828:linting","ref":"linting","sha":"414e135aa9f37df0d11f9fa63a351c85f848372f","user":{"login":"zhx828","id":5400599,"avatar_url":"https://avatars.githubusercontent.com/u/5400599?v=3","gravatar_id":"","url":"https://api.github.com/users/zhx828","html_url":"https://github.com/zhx828","followers_url":"https://api.github.com/users/zhx828/followers","following_url":"https://api.github.com/users/zhx828/following{/other_user}","gists_url":"https://api.github.com/users/zhx828/gists{/gist_id}","starred_url":"https://api.github.com/users/zhx828/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhx828/subscriptions","organizations_url":"https://api.github.com/users/zhx828/orgs","repos_url":"https://api.github.com/users/zhx828/repos","events_url":"https://api.github.com/users/zhx828/events{/privacy}","received_events_url":"https://api.github.com/users/zhx828/received_events","type":"User","site_admin":false},"repo":{"id":49748429,"name":"iViz","full_name":"zhx828/iViz","owner":{"login":"zhx828","id":5400599,"avatar_url":"https://avatars.githubusercontent.com/u/5400599?v=3","gravatar_id":"","url":"https://api.github.com/users/zhx828","html_url":"https://github.com/zhx828","followers_url":"https://api.github.com/users/zhx828/followers","following_url":"https://api.github.com/users/zhx828/following{/other_user}","gists_url":"https://api.github.com/users/zhx828/gists{/gist_id}","starred_url":"https://api.github.com/users/zhx828/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhx828/subscriptions","organizations_url":"https://api.github.com/users/zhx828/orgs","repos_url":"https://api.github.com/users/zhx828/repos","events_url":"https://api.github.com/users/zhx828/events{/privacy}","received_events_url":"https://api.github.com/users/zhx828/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhx828/iViz","description":"Testing module for front-end","fork":true,"url":"https://api.github.com/repos/zhx828/iViz","forks_url":"https://api.github.com/repos/zhx828/iViz/forks","keys_url":"https://api.github.com/repos/zhx828/iViz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhx828/iViz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhx828/iViz/teams","hooks_url":"https://api.github.com/repos/zhx828/iViz/hooks","issue_events_url":"https://api.github.com/repos/zhx828/iViz/issues/events{/number}","events_url":"https://api.github.com/repos/zhx828/iViz/events","assignees_url":"https://api.github.com/repos/zhx828/iViz/assignees{/user}","branches_url":"https://api.github.com/repos/zhx828/iViz/branches{/branch}","tags_url":"https://api.github.com/repos/zhx828/iViz/tags","blobs_url":"https://api.github.com/repos/zhx828/iViz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhx828/iViz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhx828/iViz/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhx828/iViz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhx828/iViz/statuses/{sha}","languages_url":"https://api.github.com/repos/zhx828/iViz/languages","stargazers_url":"https://api.github.com/repos/zhx828/iViz/stargazers","contributors_url":"https://api.github.com/repos/zhx828/iViz/contributors","subscribers_url":"https://api.github.com/repos/zhx828/iViz/subscribers","subscription_url":"https://api.github.com/repos/zhx828/iViz/subscription","commits_url":"https://api.github.com/repos/zhx828/iViz/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhx828/iViz/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhx828/iViz/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhx828/iViz/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhx828/iViz/contents/{+path}","compare_url":"https://api.github.com/repos/zhx828/iViz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhx828/iViz/merges","archive_url":"https://api.github.com/repos/zhx828/iViz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhx828/iViz/downloads","issues_url":"https://api.github.com/repos/zhx828/iViz/issues{/number}","pulls_url":"https://api.github.com/repos/zhx828/iViz/pulls{/number}","milestones_url":"https://api.github.com/repos/zhx828/iViz/milestones{/number}","notifications_url":"https://api.github.com/repos/zhx828/iViz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhx828/iViz/labels{/name}","releases_url":"https://api.github.com/repos/zhx828/iViz/releases{/id}","deployments_url":"https://api.github.com/repos/zhx828/iViz/deployments","created_at":"2016-01-15T22:25:22Z","updated_at":"2016-01-15T22:25:23Z","pushed_at":"2016-09-12T14:56:46Z","git_url":"git://github.com/zhx828/iViz.git","ssh_url":"git@github.com:zhx828/iViz.git","clone_url":"https://github.com/zhx828/iViz.git","svn_url":"https://github.com/zhx828/iViz","homepage":null,"size":2295,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"cBioPortal:portal-rc","ref":"portal-rc","sha":"ba899b7039d73b3b2ab6d622cb781cfaac24b478","user":{"login":"cBioPortal","id":9876251,"avatar_url":"https://avatars.githubusercontent.com/u/9876251?v=3","gravatar_id":"","url":"https://api.github.com/users/cBioPortal","html_url":"https://github.com/cBioPortal","followers_url":"https://api.github.com/users/cBioPortal/followers","following_url":"https://api.github.com/users/cBioPortal/following{/other_user}","gists_url":"https://api.github.com/users/cBioPortal/gists{/gist_id}","starred_url":"https://api.github.com/users/cBioPortal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cBioPortal/subscriptions","organizations_url":"https://api.github.com/users/cBioPortal/orgs","repos_url":"https://api.github.com/users/cBioPortal/repos","events_url":"https://api.github.com/users/cBioPortal/events{/privacy}","received_events_url":"https://api.github.com/users/cBioPortal/received_events","type":"Organization","site_admin":false},"repo":{"id":43714108,"name":"iViz","full_name":"cBioPortal/iViz","owner":{"login":"cBioPortal","id":9876251,"avatar_url":"https://avatars.githubusercontent.com/u/9876251?v=3","gravatar_id":"","url":"https://api.github.com/users/cBioPortal","html_url":"https://github.com/cBioPortal","followers_url":"https://api.github.com/users/cBioPortal/followers","following_url":"https://api.github.com/users/cBioPortal/following{/other_user}","gists_url":"https://api.github.com/users/cBioPortal/gists{/gist_id}","starred_url":"https://api.github.com/users/cBioPortal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cBioPortal/subscriptions","organizations_url":"https://api.github.com/users/cBioPortal/orgs","repos_url":"https://api.github.com/users/cBioPortal/repos","events_url":"https://api.github.com/users/cBioPortal/events{/privacy}","received_events_url":"https://api.github.com/users/cBioPortal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cBioPortal/iViz","description":"Testing module for front-end","fork":false,"url":"https://api.github.com/repos/cBioPortal/iViz","forks_url":"https://api.github.com/repos/cBioPortal/iViz/forks","keys_url":"https://api.github.com/repos/cBioPortal/iViz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cBioPortal/iViz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cBioPortal/iViz/teams","hooks_url":"https://api.github.com/repos/cBioPortal/iViz/hooks","issue_events_url":"https://api.github.com/repos/cBioPortal/iViz/issues/events{/number}","events_url":"https://api.github.com/repos/cBioPortal/iViz/events","assignees_url":"https://api.github.com/repos/cBioPortal/iViz/assignees{/user}","branches_url":"https://api.github.com/repos/cBioPortal/iViz/branches{/branch}","tags_url":"https://api.github.com/repos/cBioPortal/iViz/tags","blobs_url":"https://api.github.com/repos/cBioPortal/iViz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cBioPortal/iViz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cBioPortal/iViz/git/refs{/sha}","trees_url":"https://api.github.com/repos/cBioPortal/iViz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cBioPortal/iViz/statuses/{sha}","languages_url":"https://api.github.com/repos/cBioPortal/iViz/languages","stargazers_url":"https://api.github.com/repos/cBioPortal/iViz/stargazers","contributors_url":"https://api.github.com/repos/cBioPortal/iViz/contributors","subscribers_url":"https://api.github.com/repos/cBioPortal/iViz/subscribers","subscription_url":"https://api.github.com/repos/cBioPortal/iViz/subscription","commits_url":"https://api.github.com/repos/cBioPortal/iViz/commits{/sha}","git_commits_url":"https://api.github.com/repos/cBioPortal/iViz/git/commits{/sha}","comments_url":"https://api.github.com/repos/cBioPortal/iViz/comments{/number}","issue_comment_url":"https://api.github.com/repos/cBioPortal/iViz/issues/comments{/number}","contents_url":"https://api.github.com/repos/cBioPortal/iViz/contents/{+path}","compare_url":"https://api.github.com/repos/cBioPortal/iViz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cBioPortal/iViz/merges","archive_url":"https://api.github.com/repos/cBioPortal/iViz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cBioPortal/iViz/downloads","issues_url":"https://api.github.com/repos/cBioPortal/iViz/issues{/number}","pulls_url":"https://api.github.com/repos/cBioPortal/iViz/pulls{/number}","milestones_url":"https://api.github.com/repos/cBioPortal/iViz/milestones{/number}","notifications_url":"https://api.github.com/repos/cBioPortal/iViz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cBioPortal/iViz/labels{/name}","releases_url":"https://api.github.com/repos/cBioPortal/iViz/releases{/id}","deployments_url":"https://api.github.com/repos/cBioPortal/iViz/deployments","created_at":"2015-10-05T21:11:41Z","updated_at":"2016-09-09T02:39:33Z","pushed_at":"2016-09-12T14:58:47Z","git_url":"git://github.com/cBioPortal/iViz.git","ssh_url":"git@github.com:cBioPortal/iViz.git","clone_url":"https://github.com/cBioPortal/iViz.git","svn_url":"https://github.com/cBioPortal/iViz","homepage":null,"size":3706,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":16,"forks":5,"open_issues":16,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cBioPortal/iViz/pulls/223"},"html":{"href":"https://github.com/cBioPortal/iViz/pull/223"},"issue":{"href":"https://api.github.com/repos/cBioPortal/iViz/issues/223"},"comments":{"href":"https://api.github.com/repos/cBioPortal/iViz/issues/223/comments"},"review_comments":{"href":"https://api.github.com/repos/cBioPortal/iViz/pulls/223/comments"},"review_comment":{"href":"https://api.github.com/repos/cBioPortal/iViz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cBioPortal/iViz/pulls/223/commits"},"statuses":{"href":"https://api.github.com/repos/cBioPortal/iViz/statuses/414e135aa9f37df0d11f9fa63a351c85f848372f"}}}}
{"actor":{"display_login":"kalletlak"}}