{"action":"created","comment":{"url":"https://api.github.com/repos/iFixit/errbit/pulls/comments/27334789","id":27334789,"diff_hunk":"@@ -23,6 +23,13 @@\n       %th Similar\n       %td= problem.notices_count - 1\n     %tr\n+      - two_weeks = problem.timestamps_since(Time.now.to_i - 86400 * 14)","path":"app/views/notices/_summary.html.haml","position":4,"original_position":4,"commit_id":"c5c47c710290fafea628b65d6cb6664182167447","original_commit_id":"c5c47c710290fafea628b65d6cb6664182167447","user":{"login":"marczych","id":1094445,"avatar_url":"https://avatars.githubusercontent.com/u/1094445?v=3","gravatar_id":"","url":"https://api.github.com/users/marczych","html_url":"https://github.com/marczych","followers_url":"https://api.github.com/users/marczych/followers","following_url":"https://api.github.com/users/marczych/following{/other_user}","gists_url":"https://api.github.com/users/marczych/gists{/gist_id}","starred_url":"https://api.github.com/users/marczych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marczych/subscriptions","organizations_url":"https://api.github.com/users/marczych/orgs","repos_url":"https://api.github.com/users/marczych/repos","events_url":"https://api.github.com/users/marczych/events{/privacy}","received_events_url":"https://api.github.com/users/marczych/received_events","type":"User","site_admin":false},"body":"Can't we pass in all of the timestamps because `sparkline()`filters values before the start time anyway?","created_at":"2015-03-27T22:11:45Z","updated_at":"2015-03-27T22:11:45Z","html_url":"https://github.com/iFixit/errbit/pull/5#discussion_r27334789","pull_request_url":"https://api.github.com/repos/iFixit/errbit/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/iFixit/errbit/pulls/comments/27334789"},"html":{"href":"https://github.com/iFixit/errbit/pull/5#discussion_r27334789"},"pull_request":{"href":"https://api.github.com/repos/iFixit/errbit/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/iFixit/errbit/pulls/5","id":32147210,"html_url":"https://github.com/iFixit/errbit/pull/5","diff_url":"https://github.com/iFixit/errbit/pull/5.diff","patch_url":"https://github.com/iFixit/errbit/pull/5.patch","issue_url":"https://api.github.com/repos/iFixit/errbit/issues/5","number":5,"state":"open","locked":false,"title":"Add sparklines to graph recent occurrences of a problem","user":{"login":"danielbeardsley","id":26855,"avatar_url":"https://avatars.githubusercontent.com/u/26855?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbeardsley","html_url":"https://github.com/danielbeardsley","followers_url":"https://api.github.com/users/danielbeardsley/followers","following_url":"https://api.github.com/users/danielbeardsley/following{/other_user}","gists_url":"https://api.github.com/users/danielbeardsley/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbeardsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbeardsley/subscriptions","organizations_url":"https://api.github.com/users/danielbeardsley/orgs","repos_url":"https://api.github.com/users/danielbeardsley/repos","events_url":"https://api.github.com/users/danielbeardsley/events{/privacy}","received_events_url":"https://api.github.com/users/danielbeardsley/received_events","type":"User","site_admin":false},"body":"Now we include a sparkline of the timestamps from recent notices.\r\nTwo graphs give at-a-glance access to near and far history.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/26855/6877477/8b197632-d48e-11e4-84fd-4fa7ebbf1ace.png)\r\n","created_at":"2015-03-27T21:38:27Z","updated_at":"2015-03-27T22:11:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d238825d0a0dacef609884efd23d15ee1b402d8f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iFixit/errbit/pulls/5/commits","review_comments_url":"https://api.github.com/repos/iFixit/errbit/pulls/5/comments","review_comment_url":"https://api.github.com/repos/iFixit/errbit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iFixit/errbit/issues/5/comments","statuses_url":"https://api.github.com/repos/iFixit/errbit/statuses/c5c47c710290fafea628b65d6cb6664182167447","head":{"label":"iFixit:sparklines","ref":"sparklines","sha":"c5c47c710290fafea628b65d6cb6664182167447","user":{"login":"iFixit","id":318148,"avatar_url":"https://avatars.githubusercontent.com/u/318148?v=3","gravatar_id":"","url":"https://api.github.com/users/iFixit","html_url":"https://github.com/iFixit","followers_url":"https://api.github.com/users/iFixit/followers","following_url":"https://api.github.com/users/iFixit/following{/other_user}","gists_url":"https://api.github.com/users/iFixit/gists{/gist_id}","starred_url":"https://api.github.com/users/iFixit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iFixit/subscriptions","organizations_url":"https://api.github.com/users/iFixit/orgs","repos_url":"https://api.github.com/users/iFixit/repos","events_url":"https://api.github.com/users/iFixit/events{/privacy}","received_events_url":"https://api.github.com/users/iFixit/received_events","type":"Organization","site_admin":false},"repo":{"id":8490456,"name":"errbit","full_name":"iFixit/errbit","owner":{"login":"iFixit","id":318148,"avatar_url":"https://avatars.githubusercontent.com/u/318148?v=3","gravatar_id":"","url":"https://api.github.com/users/iFixit","html_url":"https://github.com/iFixit","followers_url":"https://api.github.com/users/iFixit/followers","following_url":"https://api.github.com/users/iFixit/following{/other_user}","gists_url":"https://api.github.com/users/iFixit/gists{/gist_id}","starred_url":"https://api.github.com/users/iFixit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iFixit/subscriptions","organizations_url":"https://api.github.com/users/iFixit/orgs","repos_url":"https://api.github.com/users/iFixit/repos","events_url":"https://api.github.com/users/iFixit/events{/privacy}","received_events_url":"https://api.github.com/users/iFixit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iFixit/errbit","description":"The open source error catcher that's Airbrake API compliant","fork":true,"url":"https://api.github.com/repos/iFixit/errbit","forks_url":"https://api.github.com/repos/iFixit/errbit/forks","keys_url":"https://api.github.com/repos/iFixit/errbit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iFixit/errbit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iFixit/errbit/teams","hooks_url":"https://api.github.com/repos/iFixit/errbit/hooks","issue_events_url":"https://api.github.com/repos/iFixit/errbit/issues/events{/number}","events_url":"https://api.github.com/repos/iFixit/errbit/events","assignees_url":"https://api.github.com/repos/iFixit/errbit/assignees{/user}","branches_url":"https://api.github.com/repos/iFixit/errbit/branches{/branch}","tags_url":"https://api.github.com/repos/iFixit/errbit/tags","blobs_url":"https://api.github.com/repos/iFixit/errbit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iFixit/errbit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iFixit/errbit/git/refs{/sha}","trees_url":"https://api.github.com/repos/iFixit/errbit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iFixit/errbit/statuses/{sha}","languages_url":"https://api.github.com/repos/iFixit/errbit/languages","stargazers_url":"https://api.github.com/repos/iFixit/errbit/stargazers","contributors_url":"https://api.github.com/repos/iFixit/errbit/contributors","subscribers_url":"https://api.github.com/repos/iFixit/errbit/subscribers","subscription_url":"https://api.github.com/repos/iFixit/errbit/subscription","commits_url":"https://api.github.com/repos/iFixit/errbit/commits{/sha}","git_commits_url":"https://api.github.com/repos/iFixit/errbit/git/commits{/sha}","comments_url":"https://api.github.com/repos/iFixit/errbit/comments{/number}","issue_comment_url":"https://api.github.com/repos/iFixit/errbit/issues/comments{/number}","contents_url":"https://api.github.com/repos/iFixit/errbit/contents/{+path}","compare_url":"https://api.github.com/repos/iFixit/errbit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iFixit/errbit/merges","archive_url":"https://api.github.com/repos/iFixit/errbit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iFixit/errbit/downloads","issues_url":"https://api.github.com/repos/iFixit/errbit/issues{/number}","pulls_url":"https://api.github.com/repos/iFixit/errbit/pulls{/number}","milestones_url":"https://api.github.com/repos/iFixit/errbit/milestones{/number}","notifications_url":"https://api.github.com/repos/iFixit/errbit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iFixit/errbit/labels{/name}","releases_url":"https://api.github.com/repos/iFixit/errbit/releases{/id}","created_at":"2013-02-28T23:29:14Z","updated_at":"2015-03-27T21:37:24Z","pushed_at":"2015-03-27T21:38:27Z","git_url":"git://github.com/iFixit/errbit.git","ssh_url":"git@github.com:iFixit/errbit.git","clone_url":"https://github.com/iFixit/errbit.git","svn_url":"https://github.com/iFixit/errbit","homepage":"","size":21131,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"iFixit:master","ref":"master","sha":"69c98017374934c685acf578ff249789245a4fb1","user":{"login":"iFixit","id":318148,"avatar_url":"https://avatars.githubusercontent.com/u/318148?v=3","gravatar_id":"","url":"https://api.github.com/users/iFixit","html_url":"https://github.com/iFixit","followers_url":"https://api.github.com/users/iFixit/followers","following_url":"https://api.github.com/users/iFixit/following{/other_user}","gists_url":"https://api.github.com/users/iFixit/gists{/gist_id}","starred_url":"https://api.github.com/users/iFixit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iFixit/subscriptions","organizations_url":"https://api.github.com/users/iFixit/orgs","repos_url":"https://api.github.com/users/iFixit/repos","events_url":"https://api.github.com/users/iFixit/events{/privacy}","received_events_url":"https://api.github.com/users/iFixit/received_events","type":"Organization","site_admin":false},"repo":{"id":8490456,"name":"errbit","full_name":"iFixit/errbit","owner":{"login":"iFixit","id":318148,"avatar_url":"https://avatars.githubusercontent.com/u/318148?v=3","gravatar_id":"","url":"https://api.github.com/users/iFixit","html_url":"https://github.com/iFixit","followers_url":"https://api.github.com/users/iFixit/followers","following_url":"https://api.github.com/users/iFixit/following{/other_user}","gists_url":"https://api.github.com/users/iFixit/gists{/gist_id}","starred_url":"https://api.github.com/users/iFixit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iFixit/subscriptions","organizations_url":"https://api.github.com/users/iFixit/orgs","repos_url":"https://api.github.com/users/iFixit/repos","events_url":"https://api.github.com/users/iFixit/events{/privacy}","received_events_url":"https://api.github.com/users/iFixit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iFixit/errbit","description":"The open source error catcher that's Airbrake API compliant","fork":true,"url":"https://api.github.com/repos/iFixit/errbit","forks_url":"https://api.github.com/repos/iFixit/errbit/forks","keys_url":"https://api.github.com/repos/iFixit/errbit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iFixit/errbit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iFixit/errbit/teams","hooks_url":"https://api.github.com/repos/iFixit/errbit/hooks","issue_events_url":"https://api.github.com/repos/iFixit/errbit/issues/events{/number}","events_url":"https://api.github.com/repos/iFixit/errbit/events","assignees_url":"https://api.github.com/repos/iFixit/errbit/assignees{/user}","branches_url":"https://api.github.com/repos/iFixit/errbit/branches{/branch}","tags_url":"https://api.github.com/repos/iFixit/errbit/tags","blobs_url":"https://api.github.com/repos/iFixit/errbit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iFixit/errbit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iFixit/errbit/git/refs{/sha}","trees_url":"https://api.github.com/repos/iFixit/errbit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iFixit/errbit/statuses/{sha}","languages_url":"https://api.github.com/repos/iFixit/errbit/languages","stargazers_url":"https://api.github.com/repos/iFixit/errbit/stargazers","contributors_url":"https://api.github.com/repos/iFixit/errbit/contributors","subscribers_url":"https://api.github.com/repos/iFixit/errbit/subscribers","subscription_url":"https://api.github.com/repos/iFixit/errbit/subscription","commits_url":"https://api.github.com/repos/iFixit/errbit/commits{/sha}","git_commits_url":"https://api.github.com/repos/iFixit/errbit/git/commits{/sha}","comments_url":"https://api.github.com/repos/iFixit/errbit/comments{/number}","issue_comment_url":"https://api.github.com/repos/iFixit/errbit/issues/comments{/number}","contents_url":"https://api.github.com/repos/iFixit/errbit/contents/{+path}","compare_url":"https://api.github.com/repos/iFixit/errbit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iFixit/errbit/merges","archive_url":"https://api.github.com/repos/iFixit/errbit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iFixit/errbit/downloads","issues_url":"https://api.github.com/repos/iFixit/errbit/issues{/number}","pulls_url":"https://api.github.com/repos/iFixit/errbit/pulls{/number}","milestones_url":"https://api.github.com/repos/iFixit/errbit/milestones{/number}","notifications_url":"https://api.github.com/repos/iFixit/errbit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iFixit/errbit/labels{/name}","releases_url":"https://api.github.com/repos/iFixit/errbit/releases{/id}","created_at":"2013-02-28T23:29:14Z","updated_at":"2015-03-27T21:37:24Z","pushed_at":"2015-03-27T21:38:27Z","git_url":"git://github.com/iFixit/errbit.git","ssh_url":"git@github.com:iFixit/errbit.git","clone_url":"https://github.com/iFixit/errbit.git","svn_url":"https://github.com/iFixit/errbit","homepage":"","size":21131,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iFixit/errbit/pulls/5"},"html":{"href":"https://github.com/iFixit/errbit/pull/5"},"issue":{"href":"https://api.github.com/repos/iFixit/errbit/issues/5"},"comments":{"href":"https://api.github.com/repos/iFixit/errbit/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/iFixit/errbit/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/iFixit/errbit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iFixit/errbit/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/iFixit/errbit/statuses/c5c47c710290fafea628b65d6cb6664182167447"}}}}