{"action":"created","comment":{"url":"https://api.github.com/repos/igsb/dpdl/pulls/comments/237192644","pull_request_review_id":179431912,"id":237192644,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzE5MjY0NA==","diff_hunk":"@@ -256,8 +256,10 @@ def parse_vcf\n           ann = ann.split(\"|\")\n           mut = Mutation.find_or_create_by(ref: ref, alt: alt[gt_alt[index]])\n           mut_pos = MutationsPosition.find_or_create_by(mutation_id: mut.id, position_id: var_pos.id)\n-\n-          gene = Gene.find_or_create_by(name: ann[ANN_GENE_NAME], entrez_id: ann[ANN_GENE_ID])\n+          gene_name = ann[ANN_GENE_NAME]\n+          entrez_id = ann[ANN_GENE_ID]\n+          gene = Gene.find_by(entrez_id: entrez_id)\n+          gene = Gene.create(name: gene_name, entrez_id: entrez_id) unless gene.nil?","path":"app/models/vcf_file.rb","position":9,"original_position":9,"commit_id":"5f271ac611485d981822cfa185797579f7095474","original_commit_id":"5f271ac611485d981822cfa185797579f7095474","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Metrics/LineLength: Line is too long. [84/80]","created_at":"2018-11-28T17:48:14Z","updated_at":"2018-11-28T17:48:15Z","html_url":"https://github.com/igsb/dpdl/pull/81#discussion_r237192644","pull_request_url":"https://api.github.com/repos/igsb/dpdl/pulls/81","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/igsb/dpdl/pulls/comments/237192644"},"html":{"href":"https://github.com/igsb/dpdl/pull/81#discussion_r237192644"},"pull_request":{"href":"https://api.github.com/repos/igsb/dpdl/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/igsb/dpdl/pulls/81","id":234369041,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0MzY5MDQx","html_url":"https://github.com/igsb/dpdl/pull/81","diff_url":"https://github.com/igsb/dpdl/pull/81.diff","patch_url":"https://github.com/igsb/dpdl/pull/81.patch","issue_url":"https://api.github.com/repos/igsb/dpdl/issues/81","number":81,"state":"open","locked":false,"title":"Modify gene model","user":{"login":"la60312","id":8877903,"node_id":"MDQ6VXNlcjg4Nzc5MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/8877903?v=4","gravatar_id":"","url":"https://api.github.com/users/la60312","html_url":"https://github.com/la60312","followers_url":"https://api.github.com/users/la60312/followers","following_url":"https://api.github.com/users/la60312/following{/other_user}","gists_url":"https://api.github.com/users/la60312/gists{/gist_id}","starred_url":"https://api.github.com/users/la60312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/la60312/subscriptions","organizations_url":"https://api.github.com/users/la60312/orgs","repos_url":"https://api.github.com/users/la60312/repos","events_url":"https://api.github.com/users/la60312/events{/privacy}","received_events_url":"https://api.github.com/users/la60312/received_events","type":"User","site_admin":false},"body":"In this pull request, we mainly changed the following:\r\n1. Add uniqueness for entrez_id in gene model\r\n2. Change the workflow figure in landing page","created_at":"2018-11-28T17:48:02Z","updated_at":"2018-11-28T17:48:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"611b0dffd11e957d70f83ac09a97bcdd93512fff","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/igsb/dpdl/pulls/81/commits","review_comments_url":"https://api.github.com/repos/igsb/dpdl/pulls/81/comments","review_comment_url":"https://api.github.com/repos/igsb/dpdl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/igsb/dpdl/issues/81/comments","statuses_url":"https://api.github.com/repos/igsb/dpdl/statuses/5f271ac611485d981822cfa185797579f7095474","head":{"label":"la60312:dev","ref":"dev","sha":"5f271ac611485d981822cfa185797579f7095474","user":{"login":"la60312","id":8877903,"node_id":"MDQ6VXNlcjg4Nzc5MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/8877903?v=4","gravatar_id":"","url":"https://api.github.com/users/la60312","html_url":"https://github.com/la60312","followers_url":"https://api.github.com/users/la60312/followers","following_url":"https://api.github.com/users/la60312/following{/other_user}","gists_url":"https://api.github.com/users/la60312/gists{/gist_id}","starred_url":"https://api.github.com/users/la60312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/la60312/subscriptions","organizations_url":"https://api.github.com/users/la60312/orgs","repos_url":"https://api.github.com/users/la60312/repos","events_url":"https://api.github.com/users/la60312/events{/privacy}","received_events_url":"https://api.github.com/users/la60312/received_events","type":"User","site_admin":false},"repo":{"id":141769571,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE3Njk1NzE=","name":"dpdl","full_name":"la60312/dpdl","private":false,"owner":{"login":"la60312","id":8877903,"node_id":"MDQ6VXNlcjg4Nzc5MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/8877903?v=4","gravatar_id":"","url":"https://api.github.com/users/la60312","html_url":"https://github.com/la60312","followers_url":"https://api.github.com/users/la60312/followers","following_url":"https://api.github.com/users/la60312/following{/other_user}","gists_url":"https://api.github.com/users/la60312/gists{/gist_id}","starred_url":"https://api.github.com/users/la60312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/la60312/subscriptions","organizations_url":"https://api.github.com/users/la60312/orgs","repos_url":"https://api.github.com/users/la60312/repos","events_url":"https://api.github.com/users/la60312/events{/privacy}","received_events_url":"https://api.github.com/users/la60312/received_events","type":"User","site_admin":false},"html_url":"https://github.com/la60312/dpdl","description":null,"fork":true,"url":"https://api.github.com/repos/la60312/dpdl","forks_url":"https://api.github.com/repos/la60312/dpdl/forks","keys_url":"https://api.github.com/repos/la60312/dpdl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/la60312/dpdl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/la60312/dpdl/teams","hooks_url":"https://api.github.com/repos/la60312/dpdl/hooks","issue_events_url":"https://api.github.com/repos/la60312/dpdl/issues/events{/number}","events_url":"https://api.github.com/repos/la60312/dpdl/events","assignees_url":"https://api.github.com/repos/la60312/dpdl/assignees{/user}","branches_url":"https://api.github.com/repos/la60312/dpdl/branches{/branch}","tags_url":"https://api.github.com/repos/la60312/dpdl/tags","blobs_url":"https://api.github.com/repos/la60312/dpdl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/la60312/dpdl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/la60312/dpdl/git/refs{/sha}","trees_url":"https://api.github.com/repos/la60312/dpdl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/la60312/dpdl/statuses/{sha}","languages_url":"https://api.github.com/repos/la60312/dpdl/languages","stargazers_url":"https://api.github.com/repos/la60312/dpdl/stargazers","contributors_url":"https://api.github.com/repos/la60312/dpdl/contributors","subscribers_url":"https://api.github.com/repos/la60312/dpdl/subscribers","subscription_url":"https://api.github.com/repos/la60312/dpdl/subscription","commits_url":"https://api.github.com/repos/la60312/dpdl/commits{/sha}","git_commits_url":"https://api.github.com/repos/la60312/dpdl/git/commits{/sha}","comments_url":"https://api.github.com/repos/la60312/dpdl/comments{/number}","issue_comment_url":"https://api.github.com/repos/la60312/dpdl/issues/comments{/number}","contents_url":"https://api.github.com/repos/la60312/dpdl/contents/{+path}","compare_url":"https://api.github.com/repos/la60312/dpdl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/la60312/dpdl/merges","archive_url":"https://api.github.com/repos/la60312/dpdl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/la60312/dpdl/downloads","issues_url":"https://api.github.com/repos/la60312/dpdl/issues{/number}","pulls_url":"https://api.github.com/repos/la60312/dpdl/pulls{/number}","milestones_url":"https://api.github.com/repos/la60312/dpdl/milestones{/number}","notifications_url":"https://api.github.com/repos/la60312/dpdl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/la60312/dpdl/labels{/name}","releases_url":"https://api.github.com/repos/la60312/dpdl/releases{/id}","deployments_url":"https://api.github.com/repos/la60312/dpdl/deployments","created_at":"2018-07-21T00:43:27Z","updated_at":"2018-08-27T19:07:42Z","pushed_at":"2018-11-28T17:44:10Z","git_url":"git://github.com/la60312/dpdl.git","ssh_url":"git@github.com:la60312/dpdl.git","clone_url":"https://github.com/la60312/dpdl.git","svn_url":"https://github.com/la60312/dpdl","homepage":null,"size":69921,"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":"igsb:dev","ref":"dev","sha":"a3855967378969f7f285cd88fba443dd52debec8","user":{"login":"igsb","id":38194794,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTk0Nzk0","avatar_url":"https://avatars0.githubusercontent.com/u/38194794?v=4","gravatar_id":"","url":"https://api.github.com/users/igsb","html_url":"https://github.com/igsb","followers_url":"https://api.github.com/users/igsb/followers","following_url":"https://api.github.com/users/igsb/following{/other_user}","gists_url":"https://api.github.com/users/igsb/gists{/gist_id}","starred_url":"https://api.github.com/users/igsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igsb/subscriptions","organizations_url":"https://api.github.com/users/igsb/orgs","repos_url":"https://api.github.com/users/igsb/repos","events_url":"https://api.github.com/users/igsb/events{/privacy}","received_events_url":"https://api.github.com/users/igsb/received_events","type":"Organization","site_admin":false},"repo":{"id":105816287,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU4MTYyODc=","name":"dpdl","full_name":"igsb/dpdl","private":false,"owner":{"login":"igsb","id":38194794,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTk0Nzk0","avatar_url":"https://avatars0.githubusercontent.com/u/38194794?v=4","gravatar_id":"","url":"https://api.github.com/users/igsb","html_url":"https://github.com/igsb","followers_url":"https://api.github.com/users/igsb/followers","following_url":"https://api.github.com/users/igsb/following{/other_user}","gists_url":"https://api.github.com/users/igsb/gists{/gist_id}","starred_url":"https://api.github.com/users/igsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igsb/subscriptions","organizations_url":"https://api.github.com/users/igsb/orgs","repos_url":"https://api.github.com/users/igsb/repos","events_url":"https://api.github.com/users/igsb/events{/privacy}","received_events_url":"https://api.github.com/users/igsb/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/igsb/dpdl","description":null,"fork":false,"url":"https://api.github.com/repos/igsb/dpdl","forks_url":"https://api.github.com/repos/igsb/dpdl/forks","keys_url":"https://api.github.com/repos/igsb/dpdl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/igsb/dpdl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/igsb/dpdl/teams","hooks_url":"https://api.github.com/repos/igsb/dpdl/hooks","issue_events_url":"https://api.github.com/repos/igsb/dpdl/issues/events{/number}","events_url":"https://api.github.com/repos/igsb/dpdl/events","assignees_url":"https://api.github.com/repos/igsb/dpdl/assignees{/user}","branches_url":"https://api.github.com/repos/igsb/dpdl/branches{/branch}","tags_url":"https://api.github.com/repos/igsb/dpdl/tags","blobs_url":"https://api.github.com/repos/igsb/dpdl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/igsb/dpdl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/igsb/dpdl/git/refs{/sha}","trees_url":"https://api.github.com/repos/igsb/dpdl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/igsb/dpdl/statuses/{sha}","languages_url":"https://api.github.com/repos/igsb/dpdl/languages","stargazers_url":"https://api.github.com/repos/igsb/dpdl/stargazers","contributors_url":"https://api.github.com/repos/igsb/dpdl/contributors","subscribers_url":"https://api.github.com/repos/igsb/dpdl/subscribers","subscription_url":"https://api.github.com/repos/igsb/dpdl/subscription","commits_url":"https://api.github.com/repos/igsb/dpdl/commits{/sha}","git_commits_url":"https://api.github.com/repos/igsb/dpdl/git/commits{/sha}","comments_url":"https://api.github.com/repos/igsb/dpdl/comments{/number}","issue_comment_url":"https://api.github.com/repos/igsb/dpdl/issues/comments{/number}","contents_url":"https://api.github.com/repos/igsb/dpdl/contents/{+path}","compare_url":"https://api.github.com/repos/igsb/dpdl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/igsb/dpdl/merges","archive_url":"https://api.github.com/repos/igsb/dpdl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/igsb/dpdl/downloads","issues_url":"https://api.github.com/repos/igsb/dpdl/issues{/number}","pulls_url":"https://api.github.com/repos/igsb/dpdl/pulls{/number}","milestones_url":"https://api.github.com/repos/igsb/dpdl/milestones{/number}","notifications_url":"https://api.github.com/repos/igsb/dpdl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/igsb/dpdl/labels{/name}","releases_url":"https://api.github.com/repos/igsb/dpdl/releases{/id}","deployments_url":"https://api.github.com/repos/igsb/dpdl/deployments","created_at":"2017-10-04T20:42:08Z","updated_at":"2018-08-26T19:48:23Z","pushed_at":"2018-11-28T17:48:02Z","git_url":"git://github.com/igsb/dpdl.git","ssh_url":"git@github.com:igsb/dpdl.git","clone_url":"https://github.com/igsb/dpdl.git","svn_url":"https://github.com/igsb/dpdl","homepage":null,"size":69917,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":28,"license":null,"forks":2,"open_issues":28,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/igsb/dpdl/pulls/81"},"html":{"href":"https://github.com/igsb/dpdl/pull/81"},"issue":{"href":"https://api.github.com/repos/igsb/dpdl/issues/81"},"comments":{"href":"https://api.github.com/repos/igsb/dpdl/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/igsb/dpdl/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/igsb/dpdl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/igsb/dpdl/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/igsb/dpdl/statuses/5f271ac611485d981822cfa185797579f7095474"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}