{"action":"created","comment":{"url":"https://api.github.com/repos/linode/manager/pulls/comments/242670137","pull_request_review_id":186237521,"id":242670137,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjY3MDEzNw==","diff_hunk":"@@ -1,5 +1,3 @@\n-import { isEmpty } from 'ramda';","path":"src/utilities/statMetrics.ts","position":1,"original_position":1,"commit_id":"3a4c764c05b20f45e70985316f78ae2eb46eff4c","original_commit_id":"3a4c764c05b20f45e70985316f78ae2eb46eff4c","user":{"login":"rjstires","id":12218651,"node_id":"MDQ6VXNlcjEyMjE4NjUx","avatar_url":"https://avatars0.githubusercontent.com/u/12218651?v=4","gravatar_id":"","url":"https://api.github.com/users/rjstires","html_url":"https://github.com/rjstires","followers_url":"https://api.github.com/users/rjstires/followers","following_url":"https://api.github.com/users/rjstires/following{/other_user}","gists_url":"https://api.github.com/users/rjstires/gists{/gist_id}","starred_url":"https://api.github.com/users/rjstires/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjstires/subscriptions","organizations_url":"https://api.github.com/users/rjstires/orgs","repos_url":"https://api.github.com/users/rjstires/repos","events_url":"https://api.github.com/users/rjstires/events{/privacy}","received_events_url":"https://api.github.com/users/rjstires/received_events","type":"User","site_admin":false},"body":"I scared John away from isEmpty. 😁 ","created_at":"2018-12-18T19:17:28Z","updated_at":"2018-12-18T19:17:28Z","html_url":"https://github.com/linode/manager/pull/4269#discussion_r242670137","pull_request_url":"https://api.github.com/repos/linode/manager/pulls/4269","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/linode/manager/pulls/comments/242670137"},"html":{"href":"https://github.com/linode/manager/pull/4269#discussion_r242670137"},"pull_request":{"href":"https://api.github.com/repos/linode/manager/pulls/4269"}}},"pull_request":{"url":"https://api.github.com/repos/linode/manager/pulls/4269","id":239599089,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5NTk5MDg5","html_url":"https://github.com/linode/manager/pull/4269","diff_url":"https://github.com/linode/manager/pull/4269.diff","patch_url":"https://github.com/linode/manager/pull/4269.patch","issue_url":"https://api.github.com/repos/linode/manager/issues/4269","number":4269,"state":"open","locked":false,"title":"Bug-fix: stats input checking","user":{"login":"johnwcallahan","id":16911484,"node_id":"MDQ6VXNlcjE2OTExNDg0","avatar_url":"https://avatars1.githubusercontent.com/u/16911484?v=4","gravatar_id":"","url":"https://api.github.com/users/johnwcallahan","html_url":"https://github.com/johnwcallahan","followers_url":"https://api.github.com/users/johnwcallahan/followers","following_url":"https://api.github.com/users/johnwcallahan/following{/other_user}","gists_url":"https://api.github.com/users/johnwcallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/johnwcallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnwcallahan/subscriptions","organizations_url":"https://api.github.com/users/johnwcallahan/orgs","repos_url":"https://api.github.com/users/johnwcallahan/repos","events_url":"https://api.github.com/users/johnwcallahan/events{/privacy}","received_events_url":"https://api.github.com/users/johnwcallahan/received_events","type":"User","site_admin":false},"body":"## Description\r\n\r\nThere is a bug in production causing stats to crash in circumstances in which the API returns an empty array on `stats.data.cpu`, etc. This issue is addressed by rigorously checking input on the `getMetrics` function.\r\n\r\n## Type of Change\r\n- bug-fix\r\n\r\n","created_at":"2018-12-18T19:09:39Z","updated_at":"2018-12-18T19:17:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"559f4cc60603baf2784b235dbf463d0efd0995d9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/linode/manager/pulls/4269/commits","review_comments_url":"https://api.github.com/repos/linode/manager/pulls/4269/comments","review_comment_url":"https://api.github.com/repos/linode/manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linode/manager/issues/4269/comments","statuses_url":"https://api.github.com/repos/linode/manager/statuses/3a4c764c05b20f45e70985316f78ae2eb46eff4c","head":{"label":"johnwcallahan:stats-fix","ref":"stats-fix","sha":"3a4c764c05b20f45e70985316f78ae2eb46eff4c","user":{"login":"johnwcallahan","id":16911484,"node_id":"MDQ6VXNlcjE2OTExNDg0","avatar_url":"https://avatars1.githubusercontent.com/u/16911484?v=4","gravatar_id":"","url":"https://api.github.com/users/johnwcallahan","html_url":"https://github.com/johnwcallahan","followers_url":"https://api.github.com/users/johnwcallahan/followers","following_url":"https://api.github.com/users/johnwcallahan/following{/other_user}","gists_url":"https://api.github.com/users/johnwcallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/johnwcallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnwcallahan/subscriptions","organizations_url":"https://api.github.com/users/johnwcallahan/orgs","repos_url":"https://api.github.com/users/johnwcallahan/repos","events_url":"https://api.github.com/users/johnwcallahan/events{/privacy}","received_events_url":"https://api.github.com/users/johnwcallahan/received_events","type":"User","site_admin":false},"repo":{"id":151148724,"node_id":"MDEwOlJlcG9zaXRvcnkxNTExNDg3MjQ=","name":"manager","full_name":"johnwcallahan/manager","private":false,"owner":{"login":"johnwcallahan","id":16911484,"node_id":"MDQ6VXNlcjE2OTExNDg0","avatar_url":"https://avatars1.githubusercontent.com/u/16911484?v=4","gravatar_id":"","url":"https://api.github.com/users/johnwcallahan","html_url":"https://github.com/johnwcallahan","followers_url":"https://api.github.com/users/johnwcallahan/followers","following_url":"https://api.github.com/users/johnwcallahan/following{/other_user}","gists_url":"https://api.github.com/users/johnwcallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/johnwcallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnwcallahan/subscriptions","organizations_url":"https://api.github.com/users/johnwcallahan/orgs","repos_url":"https://api.github.com/users/johnwcallahan/repos","events_url":"https://api.github.com/users/johnwcallahan/events{/privacy}","received_events_url":"https://api.github.com/users/johnwcallahan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/johnwcallahan/manager","description":"The Linode Manager (Early Access)","fork":true,"url":"https://api.github.com/repos/johnwcallahan/manager","forks_url":"https://api.github.com/repos/johnwcallahan/manager/forks","keys_url":"https://api.github.com/repos/johnwcallahan/manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnwcallahan/manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnwcallahan/manager/teams","hooks_url":"https://api.github.com/repos/johnwcallahan/manager/hooks","issue_events_url":"https://api.github.com/repos/johnwcallahan/manager/issues/events{/number}","events_url":"https://api.github.com/repos/johnwcallahan/manager/events","assignees_url":"https://api.github.com/repos/johnwcallahan/manager/assignees{/user}","branches_url":"https://api.github.com/repos/johnwcallahan/manager/branches{/branch}","tags_url":"https://api.github.com/repos/johnwcallahan/manager/tags","blobs_url":"https://api.github.com/repos/johnwcallahan/manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnwcallahan/manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnwcallahan/manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnwcallahan/manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnwcallahan/manager/statuses/{sha}","languages_url":"https://api.github.com/repos/johnwcallahan/manager/languages","stargazers_url":"https://api.github.com/repos/johnwcallahan/manager/stargazers","contributors_url":"https://api.github.com/repos/johnwcallahan/manager/contributors","subscribers_url":"https://api.github.com/repos/johnwcallahan/manager/subscribers","subscription_url":"https://api.github.com/repos/johnwcallahan/manager/subscription","commits_url":"https://api.github.com/repos/johnwcallahan/manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnwcallahan/manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnwcallahan/manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnwcallahan/manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnwcallahan/manager/contents/{+path}","compare_url":"https://api.github.com/repos/johnwcallahan/manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnwcallahan/manager/merges","archive_url":"https://api.github.com/repos/johnwcallahan/manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnwcallahan/manager/downloads","issues_url":"https://api.github.com/repos/johnwcallahan/manager/issues{/number}","pulls_url":"https://api.github.com/repos/johnwcallahan/manager/pulls{/number}","milestones_url":"https://api.github.com/repos/johnwcallahan/manager/milestones{/number}","notifications_url":"https://api.github.com/repos/johnwcallahan/manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnwcallahan/manager/labels{/name}","releases_url":"https://api.github.com/repos/johnwcallahan/manager/releases{/id}","deployments_url":"https://api.github.com/repos/johnwcallahan/manager/deployments","created_at":"2018-10-01T19:44:48Z","updated_at":"2018-12-18T14:11:41Z","pushed_at":"2018-12-18T19:02:50Z","git_url":"git://github.com/johnwcallahan/manager.git","ssh_url":"git@github.com:johnwcallahan/manager.git","clone_url":"https://github.com/johnwcallahan/manager.git","svn_url":"https://github.com/johnwcallahan/manager","homepage":"https://cloud.linode.com","size":26867,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"linode:release-0.43.0","ref":"release-0.43.0","sha":"a219874c1cc66e319ecf60dbff2b593c6b1ccb0f","user":{"login":"linode","id":5184305,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxODQzMDU=","avatar_url":"https://avatars0.githubusercontent.com/u/5184305?v=4","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"repo":{"id":58934207,"node_id":"MDEwOlJlcG9zaXRvcnk1ODkzNDIwNw==","name":"manager","full_name":"linode/manager","private":false,"owner":{"login":"linode","id":5184305,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxODQzMDU=","avatar_url":"https://avatars0.githubusercontent.com/u/5184305?v=4","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/linode/manager","description":"The Linode Manager (Early Access)","fork":false,"url":"https://api.github.com/repos/linode/manager","forks_url":"https://api.github.com/repos/linode/manager/forks","keys_url":"https://api.github.com/repos/linode/manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linode/manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linode/manager/teams","hooks_url":"https://api.github.com/repos/linode/manager/hooks","issue_events_url":"https://api.github.com/repos/linode/manager/issues/events{/number}","events_url":"https://api.github.com/repos/linode/manager/events","assignees_url":"https://api.github.com/repos/linode/manager/assignees{/user}","branches_url":"https://api.github.com/repos/linode/manager/branches{/branch}","tags_url":"https://api.github.com/repos/linode/manager/tags","blobs_url":"https://api.github.com/repos/linode/manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linode/manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linode/manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/linode/manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linode/manager/statuses/{sha}","languages_url":"https://api.github.com/repos/linode/manager/languages","stargazers_url":"https://api.github.com/repos/linode/manager/stargazers","contributors_url":"https://api.github.com/repos/linode/manager/contributors","subscribers_url":"https://api.github.com/repos/linode/manager/subscribers","subscription_url":"https://api.github.com/repos/linode/manager/subscription","commits_url":"https://api.github.com/repos/linode/manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/linode/manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/linode/manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/linode/manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/linode/manager/contents/{+path}","compare_url":"https://api.github.com/repos/linode/manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linode/manager/merges","archive_url":"https://api.github.com/repos/linode/manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linode/manager/downloads","issues_url":"https://api.github.com/repos/linode/manager/issues{/number}","pulls_url":"https://api.github.com/repos/linode/manager/pulls{/number}","milestones_url":"https://api.github.com/repos/linode/manager/milestones{/number}","notifications_url":"https://api.github.com/repos/linode/manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linode/manager/labels{/name}","releases_url":"https://api.github.com/repos/linode/manager/releases{/id}","deployments_url":"https://api.github.com/repos/linode/manager/deployments","created_at":"2016-05-16T13:24:49Z","updated_at":"2018-12-18T14:15:41Z","pushed_at":"2018-12-18T19:14:03Z","git_url":"git://github.com/linode/manager.git","ssh_url":"git@github.com:linode/manager.git","clone_url":"https://github.com/linode/manager.git","svn_url":"https://github.com/linode/manager","homepage":"https://cloud.linode.com","size":26907,"stargazers_count":388,"watchers_count":388,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":98,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":98,"open_issues":17,"watchers":388,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/linode/manager/pulls/4269"},"html":{"href":"https://github.com/linode/manager/pull/4269"},"issue":{"href":"https://api.github.com/repos/linode/manager/issues/4269"},"comments":{"href":"https://api.github.com/repos/linode/manager/issues/4269/comments"},"review_comments":{"href":"https://api.github.com/repos/linode/manager/pulls/4269/comments"},"review_comment":{"href":"https://api.github.com/repos/linode/manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linode/manager/pulls/4269/commits"},"statuses":{"href":"https://api.github.com/repos/linode/manager/statuses/3a4c764c05b20f45e70985316f78ae2eb46eff4c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rjstires"}}