{"action":"created","comment":{"url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/comments/178084922","pull_request_review_id":108082619,"id":178084922,"diff_hunk":"@@ -0,0 +1,127 @@\n+# Copyright 2018 Google Inc.  All Rights Reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#      http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+\"\"\"Beam combiner function for merging VCF file header conflicts/definitions.\"\"\"\n+\n+from collections import OrderedDict   #pylint: disable=unused-import\n+\n+import apache_beam as beam\n+from gcp_variant_transforms.beam_io.vcf_header_io import VcfHeader\n+from gcp_variant_transforms.libs.vcf_field_conflict_resolver import VcfParserConstants\n+\n+\n+class _ConflictDetails(object):\n+  \"\"\"Container for conflict details for one field id.\"\"\"","path":"gcp_variant_transforms/transforms/merge_conflicts.py","position":25,"original_position":25,"commit_id":"78082dc1a75a6f8a5e460c8ed3e3d021a04f26c9","original_commit_id":"78082dc1a75a6f8a5e460c8ed3e3d021a04f26c9","user":{"login":"arostamianfar","id":11234335,"avatar_url":"https://avatars2.githubusercontent.com/u/11234335?v=4","gravatar_id":"","url":"https://api.github.com/users/arostamianfar","html_url":"https://github.com/arostamianfar","followers_url":"https://api.github.com/users/arostamianfar/followers","following_url":"https://api.github.com/users/arostamianfar/following{/other_user}","gists_url":"https://api.github.com/users/arostamianfar/gists{/gist_id}","starred_url":"https://api.github.com/users/arostamianfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arostamianfar/subscriptions","organizations_url":"https://api.github.com/users/arostamianfar/orgs","repos_url":"https://api.github.com/users/arostamianfar/repos","events_url":"https://api.github.com/users/arostamianfar/events{/privacy}","received_events_url":"https://api.github.com/users/arostamianfar/received_events","type":"User","site_admin":false},"body":"nit: s/id/ID","created_at":"2018-03-29T15:01:24Z","updated_at":"2018-03-29T15:42:35Z","html_url":"https://github.com/googlegenomics/gcp-variant-transforms/pull/158#discussion_r178084922","pull_request_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/158","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/comments/178084922"},"html":{"href":"https://github.com/googlegenomics/gcp-variant-transforms/pull/158#discussion_r178084922"},"pull_request":{"href":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/158","id":178053579,"html_url":"https://github.com/googlegenomics/gcp-variant-transforms/pull/158","diff_url":"https://github.com/googlegenomics/gcp-variant-transforms/pull/158.diff","patch_url":"https://github.com/googlegenomics/gcp-variant-transforms/pull/158.patch","issue_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/issues/158","number":158,"state":"open","locked":false,"title":"Add merge_conflicts module.","user":{"login":"allieychen","id":36679499,"avatar_url":"https://avatars0.githubusercontent.com/u/36679499?v=4","gravatar_id":"","url":"https://api.github.com/users/allieychen","html_url":"https://github.com/allieychen","followers_url":"https://api.github.com/users/allieychen/followers","following_url":"https://api.github.com/users/allieychen/following{/other_user}","gists_url":"https://api.github.com/users/allieychen/gists{/gist_id}","starred_url":"https://api.github.com/users/allieychen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allieychen/subscriptions","organizations_url":"https://api.github.com/users/allieychen/orgs","repos_url":"https://api.github.com/users/allieychen/repos","events_url":"https://api.github.com/users/allieychen/events{/privacy}","received_events_url":"https://api.github.com/users/allieychen/received_events","type":"User","site_admin":false},"body":"- Update `vcf_header_io` to save the `file_name`. Corresponding unit tests are also updated.\r\n- Create a new module to save all field id' definitions and the related file names.\r\n- Unit tests are added.\r\n\r\nTested: Unit test.","created_at":"2018-03-28T14:16:00Z","updated_at":"2018-03-29T15:42:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b788eb5d79d7da232474784fdef8e94bd1d00c4b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"nmousavi","id":4221028,"avatar_url":"https://avatars2.githubusercontent.com/u/4221028?v=4","gravatar_id":"","url":"https://api.github.com/users/nmousavi","html_url":"https://github.com/nmousavi","followers_url":"https://api.github.com/users/nmousavi/followers","following_url":"https://api.github.com/users/nmousavi/following{/other_user}","gists_url":"https://api.github.com/users/nmousavi/gists{/gist_id}","starred_url":"https://api.github.com/users/nmousavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmousavi/subscriptions","organizations_url":"https://api.github.com/users/nmousavi/orgs","repos_url":"https://api.github.com/users/nmousavi/repos","events_url":"https://api.github.com/users/nmousavi/events{/privacy}","received_events_url":"https://api.github.com/users/nmousavi/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/158/commits","review_comments_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/158/comments","review_comment_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/issues/158/comments","statuses_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/statuses/78082dc1a75a6f8a5e460c8ed3e3d021a04f26c9","head":{"label":"allieychen:merge-header-conflicts","ref":"merge-header-conflicts","sha":"78082dc1a75a6f8a5e460c8ed3e3d021a04f26c9","user":{"login":"allieychen","id":36679499,"avatar_url":"https://avatars0.githubusercontent.com/u/36679499?v=4","gravatar_id":"","url":"https://api.github.com/users/allieychen","html_url":"https://github.com/allieychen","followers_url":"https://api.github.com/users/allieychen/followers","following_url":"https://api.github.com/users/allieychen/following{/other_user}","gists_url":"https://api.github.com/users/allieychen/gists{/gist_id}","starred_url":"https://api.github.com/users/allieychen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allieychen/subscriptions","organizations_url":"https://api.github.com/users/allieychen/orgs","repos_url":"https://api.github.com/users/allieychen/repos","events_url":"https://api.github.com/users/allieychen/events{/privacy}","received_events_url":"https://api.github.com/users/allieychen/received_events","type":"User","site_admin":false},"repo":{"id":122504365,"name":"gcp-variant-transforms","full_name":"allieychen/gcp-variant-transforms","owner":{"login":"allieychen","id":36679499,"avatar_url":"https://avatars0.githubusercontent.com/u/36679499?v=4","gravatar_id":"","url":"https://api.github.com/users/allieychen","html_url":"https://github.com/allieychen","followers_url":"https://api.github.com/users/allieychen/followers","following_url":"https://api.github.com/users/allieychen/following{/other_user}","gists_url":"https://api.github.com/users/allieychen/gists{/gist_id}","starred_url":"https://api.github.com/users/allieychen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allieychen/subscriptions","organizations_url":"https://api.github.com/users/allieychen/orgs","repos_url":"https://api.github.com/users/allieychen/repos","events_url":"https://api.github.com/users/allieychen/events{/privacy}","received_events_url":"https://api.github.com/users/allieychen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/allieychen/gcp-variant-transforms","description":"GCP Variant Transforms","fork":true,"url":"https://api.github.com/repos/allieychen/gcp-variant-transforms","forks_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/forks","keys_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/teams","hooks_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/hooks","issue_events_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/issues/events{/number}","events_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/events","assignees_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/assignees{/user}","branches_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/branches{/branch}","tags_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/tags","blobs_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/statuses/{sha}","languages_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/languages","stargazers_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/stargazers","contributors_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/contributors","subscribers_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/subscribers","subscription_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/subscription","commits_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/contents/{+path}","compare_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/merges","archive_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/downloads","issues_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/issues{/number}","pulls_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/pulls{/number}","milestones_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/milestones{/number}","notifications_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/labels{/name}","releases_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/releases{/id}","deployments_url":"https://api.github.com/repos/allieychen/gcp-variant-transforms/deployments","created_at":"2018-02-22T16:28:54Z","updated_at":"2018-03-26T21:19:41Z","pushed_at":"2018-03-29T13:55:00Z","git_url":"git://github.com/allieychen/gcp-variant-transforms.git","ssh_url":"git@github.com:allieychen/gcp-variant-transforms.git","clone_url":"https://github.com/allieychen/gcp-variant-transforms.git","svn_url":"https://github.com/allieychen/gcp-variant-transforms","homepage":null,"size":645,"stargazers_count":0,"watchers_count":0,"language":"Python","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":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"googlegenomics:master","ref":"master","sha":"b8bb3b55138aea2ffae7bd0ade68feeec48a8fc7","user":{"login":"googlegenomics","id":7434120,"avatar_url":"https://avatars2.githubusercontent.com/u/7434120?v=4","gravatar_id":"","url":"https://api.github.com/users/googlegenomics","html_url":"https://github.com/googlegenomics","followers_url":"https://api.github.com/users/googlegenomics/followers","following_url":"https://api.github.com/users/googlegenomics/following{/other_user}","gists_url":"https://api.github.com/users/googlegenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/googlegenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlegenomics/subscriptions","organizations_url":"https://api.github.com/users/googlegenomics/orgs","repos_url":"https://api.github.com/users/googlegenomics/repos","events_url":"https://api.github.com/users/googlegenomics/events{/privacy}","received_events_url":"https://api.github.com/users/googlegenomics/received_events","type":"Organization","site_admin":false},"repo":{"id":110025283,"name":"gcp-variant-transforms","full_name":"googlegenomics/gcp-variant-transforms","owner":{"login":"googlegenomics","id":7434120,"avatar_url":"https://avatars2.githubusercontent.com/u/7434120?v=4","gravatar_id":"","url":"https://api.github.com/users/googlegenomics","html_url":"https://github.com/googlegenomics","followers_url":"https://api.github.com/users/googlegenomics/followers","following_url":"https://api.github.com/users/googlegenomics/following{/other_user}","gists_url":"https://api.github.com/users/googlegenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/googlegenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlegenomics/subscriptions","organizations_url":"https://api.github.com/users/googlegenomics/orgs","repos_url":"https://api.github.com/users/googlegenomics/repos","events_url":"https://api.github.com/users/googlegenomics/events{/privacy}","received_events_url":"https://api.github.com/users/googlegenomics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/googlegenomics/gcp-variant-transforms","description":"GCP Variant Transforms","fork":false,"url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms","forks_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/forks","keys_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/teams","hooks_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/hooks","issue_events_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/issues/events{/number}","events_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/events","assignees_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/assignees{/user}","branches_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/branches{/branch}","tags_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/tags","blobs_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/statuses/{sha}","languages_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/languages","stargazers_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/stargazers","contributors_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/contributors","subscribers_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/subscribers","subscription_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/subscription","commits_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/contents/{+path}","compare_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/merges","archive_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/downloads","issues_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/issues{/number}","pulls_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls{/number}","milestones_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/milestones{/number}","notifications_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/labels{/name}","releases_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/releases{/id}","deployments_url":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/deployments","created_at":"2017-11-08T20:12:08Z","updated_at":"2018-03-29T13:54:06Z","pushed_at":"2018-03-29T15:32:46Z","git_url":"git://github.com/googlegenomics/gcp-variant-transforms.git","ssh_url":"git@github.com:googlegenomics/gcp-variant-transforms.git","clone_url":"https://github.com/googlegenomics/gcp-variant-transforms.git","svn_url":"https://github.com/googlegenomics/gcp-variant-transforms","homepage":null,"size":626,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":9,"open_issues":41,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/158"},"html":{"href":"https://github.com/googlegenomics/gcp-variant-transforms/pull/158"},"issue":{"href":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/issues/158"},"comments":{"href":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/googlegenomics/gcp-variant-transforms/statuses/78082dc1a75a6f8a5e460c8ed3e3d021a04f26c9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"arostamianfar"}}