{"action":"closed","number":1665,"pull_request":{"url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/1665","id":223762869,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNzYyODY5","html_url":"https://github.com/chanzuckerberg/idseq-web/pull/1665","diff_url":"https://github.com/chanzuckerberg/idseq-web/pull/1665.diff","patch_url":"https://github.com/chanzuckerberg/idseq-web/pull/1665.patch","issue_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/1665","number":1665,"state":"closed","locked":false,"title":"Add babel plugin to remove need for bind statements.","user":{"login":"MarkAZhang","id":837004,"node_id":"MDQ6VXNlcjgzNzAwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/837004?v=4","gravatar_id":"","url":"https://api.github.com/users/MarkAZhang","html_url":"https://github.com/MarkAZhang","followers_url":"https://api.github.com/users/MarkAZhang/followers","following_url":"https://api.github.com/users/MarkAZhang/following{/other_user}","gists_url":"https://api.github.com/users/MarkAZhang/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkAZhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkAZhang/subscriptions","organizations_url":"https://api.github.com/users/MarkAZhang/orgs","repos_url":"https://api.github.com/users/MarkAZhang/repos","events_url":"https://api.github.com/users/MarkAZhang/events{/privacy}","received_events_url":"https://api.github.com/users/MarkAZhang/received_events","type":"User","site_admin":false},"body":"The transform-class-properties plugin is added.\r\n\r\nThe plugin technically just enables the \"=\" syntax. The arrow function is already enabled.\r\n\r\n```\r\nclass Cat {\r\n  getBreed = function() {\r\n    return 'Meow'\r\n  }\r\n}\r\n```\r\n\r\nis now transformed by Babel to:\r\n```\r\nclass Cat {\r\n  constructor() {\r\n    this.getBreed = function() {\r\n       return 'Meow'\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nCombined with the existing arrow function (which already does not create a new `this` context) allows us to remove the bind statements.\r\n","created_at":"2018-10-17T21:42:40Z","updated_at":"2018-10-17T23:00:24Z","closed_at":"2018-10-17T23:00:24Z","merged_at":"2018-10-17T23:00:23Z","merge_commit_sha":"4eb68028c021f2f81452d44507cb0bbf41a7a206","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/1665/commits","review_comments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/1665/comments","review_comment_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/1665/comments","statuses_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/statuses/6ca6f9202351e2a4d9d3a6cb4accbf90c4ecd921","head":{"label":"chanzuckerberg:markzhang/report-refactor","ref":"markzhang/report-refactor","sha":"6ca6f9202351e2a4d9d3a6cb4accbf90c4ecd921","user":{"login":"chanzuckerberg","id":19917299,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTE3Mjk5","avatar_url":"https://avatars2.githubusercontent.com/u/19917299?v=4","gravatar_id":"","url":"https://api.github.com/users/chanzuckerberg","html_url":"https://github.com/chanzuckerberg","followers_url":"https://api.github.com/users/chanzuckerberg/followers","following_url":"https://api.github.com/users/chanzuckerberg/following{/other_user}","gists_url":"https://api.github.com/users/chanzuckerberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chanzuckerberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanzuckerberg/subscriptions","organizations_url":"https://api.github.com/users/chanzuckerberg/orgs","repos_url":"https://api.github.com/users/chanzuckerberg/repos","events_url":"https://api.github.com/users/chanzuckerberg/events{/privacy}","received_events_url":"https://api.github.com/users/chanzuckerberg/received_events","type":"Organization","site_admin":false},"repo":{"id":99148438,"node_id":"MDEwOlJlcG9zaXRvcnk5OTE0ODQzOA==","name":"idseq-web","full_name":"chanzuckerberg/idseq-web","private":false,"owner":{"login":"chanzuckerberg","id":19917299,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTE3Mjk5","avatar_url":"https://avatars2.githubusercontent.com/u/19917299?v=4","gravatar_id":"","url":"https://api.github.com/users/chanzuckerberg","html_url":"https://github.com/chanzuckerberg","followers_url":"https://api.github.com/users/chanzuckerberg/followers","following_url":"https://api.github.com/users/chanzuckerberg/following{/other_user}","gists_url":"https://api.github.com/users/chanzuckerberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chanzuckerberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanzuckerberg/subscriptions","organizations_url":"https://api.github.com/users/chanzuckerberg/orgs","repos_url":"https://api.github.com/users/chanzuckerberg/repos","events_url":"https://api.github.com/users/chanzuckerberg/events{/privacy}","received_events_url":"https://api.github.com/users/chanzuckerberg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/chanzuckerberg/idseq-web","description":"Infectious Disease Sequencing Platform","fork":false,"url":"https://api.github.com/repos/chanzuckerberg/idseq-web","forks_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/forks","keys_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/teams","hooks_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/hooks","issue_events_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/events{/number}","events_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/events","assignees_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/assignees{/user}","branches_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/branches{/branch}","tags_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/tags","blobs_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/statuses/{sha}","languages_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/languages","stargazers_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/stargazers","contributors_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/contributors","subscribers_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/subscribers","subscription_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/subscription","commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/contents/{+path}","compare_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/merges","archive_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/downloads","issues_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues{/number}","pulls_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls{/number}","milestones_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/milestones{/number}","notifications_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/labels{/name}","releases_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/releases{/id}","deployments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/deployments","created_at":"2017-08-02T18:24:03Z","updated_at":"2018-10-17T22:35:15Z","pushed_at":"2018-10-17T23:00:23Z","git_url":"git://github.com/chanzuckerberg/idseq-web.git","ssh_url":"git@github.com:chanzuckerberg/idseq-web.git","clone_url":"https://github.com/chanzuckerberg/idseq-web.git","svn_url":"https://github.com/chanzuckerberg/idseq-web","homepage":"https://idseq.net/","size":8020,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":3,"watchers":13,"default_branch":"master"}},"base":{"label":"chanzuckerberg:master","ref":"master","sha":"ac2187b626d5e5bbed001694bc73456a7b03f46e","user":{"login":"chanzuckerberg","id":19917299,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTE3Mjk5","avatar_url":"https://avatars2.githubusercontent.com/u/19917299?v=4","gravatar_id":"","url":"https://api.github.com/users/chanzuckerberg","html_url":"https://github.com/chanzuckerberg","followers_url":"https://api.github.com/users/chanzuckerberg/followers","following_url":"https://api.github.com/users/chanzuckerberg/following{/other_user}","gists_url":"https://api.github.com/users/chanzuckerberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chanzuckerberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanzuckerberg/subscriptions","organizations_url":"https://api.github.com/users/chanzuckerberg/orgs","repos_url":"https://api.github.com/users/chanzuckerberg/repos","events_url":"https://api.github.com/users/chanzuckerberg/events{/privacy}","received_events_url":"https://api.github.com/users/chanzuckerberg/received_events","type":"Organization","site_admin":false},"repo":{"id":99148438,"node_id":"MDEwOlJlcG9zaXRvcnk5OTE0ODQzOA==","name":"idseq-web","full_name":"chanzuckerberg/idseq-web","private":false,"owner":{"login":"chanzuckerberg","id":19917299,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTE3Mjk5","avatar_url":"https://avatars2.githubusercontent.com/u/19917299?v=4","gravatar_id":"","url":"https://api.github.com/users/chanzuckerberg","html_url":"https://github.com/chanzuckerberg","followers_url":"https://api.github.com/users/chanzuckerberg/followers","following_url":"https://api.github.com/users/chanzuckerberg/following{/other_user}","gists_url":"https://api.github.com/users/chanzuckerberg/gists{/gist_id}","starred_url":"https://api.github.com/users/chanzuckerberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanzuckerberg/subscriptions","organizations_url":"https://api.github.com/users/chanzuckerberg/orgs","repos_url":"https://api.github.com/users/chanzuckerberg/repos","events_url":"https://api.github.com/users/chanzuckerberg/events{/privacy}","received_events_url":"https://api.github.com/users/chanzuckerberg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/chanzuckerberg/idseq-web","description":"Infectious Disease Sequencing Platform","fork":false,"url":"https://api.github.com/repos/chanzuckerberg/idseq-web","forks_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/forks","keys_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/teams","hooks_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/hooks","issue_events_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/events{/number}","events_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/events","assignees_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/assignees{/user}","branches_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/branches{/branch}","tags_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/tags","blobs_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/statuses/{sha}","languages_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/languages","stargazers_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/stargazers","contributors_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/contributors","subscribers_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/subscribers","subscription_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/subscription","commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/contents/{+path}","compare_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/merges","archive_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/downloads","issues_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues{/number}","pulls_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls{/number}","milestones_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/milestones{/number}","notifications_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/labels{/name}","releases_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/releases{/id}","deployments_url":"https://api.github.com/repos/chanzuckerberg/idseq-web/deployments","created_at":"2017-08-02T18:24:03Z","updated_at":"2018-10-17T22:35:15Z","pushed_at":"2018-10-17T23:00:23Z","git_url":"git://github.com/chanzuckerberg/idseq-web.git","ssh_url":"git@github.com:chanzuckerberg/idseq-web.git","clone_url":"https://github.com/chanzuckerberg/idseq-web.git","svn_url":"https://github.com/chanzuckerberg/idseq-web","homepage":"https://idseq.net/","size":8020,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":3,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/1665"},"html":{"href":"https://github.com/chanzuckerberg/idseq-web/pull/1665"},"issue":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/1665"},"comments":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/issues/1665/comments"},"review_comments":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/1665/comments"},"review_comment":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/pulls/1665/commits"},"statuses":{"href":"https://api.github.com/repos/chanzuckerberg/idseq-web/statuses/6ca6f9202351e2a4d9d3a6cb4accbf90c4ecd921"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"MarkAZhang","id":837004,"node_id":"MDQ6VXNlcjgzNzAwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/837004?v=4","gravatar_id":"","url":"https://api.github.com/users/MarkAZhang","html_url":"https://github.com/MarkAZhang","followers_url":"https://api.github.com/users/MarkAZhang/followers","following_url":"https://api.github.com/users/MarkAZhang/following{/other_user}","gists_url":"https://api.github.com/users/MarkAZhang/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkAZhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkAZhang/subscriptions","organizations_url":"https://api.github.com/users/MarkAZhang/orgs","repos_url":"https://api.github.com/users/MarkAZhang/repos","events_url":"https://api.github.com/users/MarkAZhang/events{/privacy}","received_events_url":"https://api.github.com/users/MarkAZhang/received_events","type":"User","site_admin":false},"comments":1,"review_comments":2,"maintainer_can_modify":false,"commits":1,"additions":108,"deletions":158,"changed_files":4}}
{"actor":{"display_login":"MarkAZhang"}}