{"action":"created","comment":{"url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/comments/80465057","id":80465057,"diff_hunk":"@@ -264,8 +276,8 @@ function make_throughput_plot(){\n     }\n     // Subtitle text\n     var bp_per_day = total_count / (num_weeks * 7);\n-    var genomes_per_minute = (bp_per_day / (24*60)) / 3236336281;\n-    var subtitle_text = 'Average for past '+num_weeks+' weeks: '+parseInt(bp_per_day/1000000000)+' Gbp per day <br>('+genomes_per_minute.toFixed(2)+' Human genome equivalents every minute)';\n+    var minutes_per_genome = 3236336281 / (bp_per_day / (24*60));\n+    var subtitle_text = 'Average for past '+num_weeks+' weeks: '+parseInt(bp_per_day/1000000000)+' Gbp per day <br>(1 Human genome equivalent every '+minutes_per_genome.toFixed(2)+' minutes)';","path":"make_dashboards/templates/external/js/dashboard.js","position":47,"original_position":47,"commit_id":"28ee9954aae58c60fef24e469d0cc79f5039b3ae","original_commit_id":"28ee9954aae58c60fef24e469d0cc79f5039b3ae","user":{"login":"remiolsen","id":6576325,"avatar_url":"https://avatars.githubusercontent.com/u/6576325?v=3","gravatar_id":"","url":"https://api.github.com/users/remiolsen","html_url":"https://github.com/remiolsen","followers_url":"https://api.github.com/users/remiolsen/followers","following_url":"https://api.github.com/users/remiolsen/following{/other_user}","gists_url":"https://api.github.com/users/remiolsen/gists{/gist_id}","starred_url":"https://api.github.com/users/remiolsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remiolsen/subscriptions","organizations_url":"https://api.github.com/users/remiolsen/orgs","repos_url":"https://api.github.com/users/remiolsen/repos","events_url":"https://api.github.com/users/remiolsen/events{/privacy}","received_events_url":"https://api.github.com/users/remiolsen/received_events","type":"User","site_admin":false},"body":"Time to genome, eh? \r\n\r\nI personally like the `genomes_per_minute` metric, but I guess you will get a nicer number to work with this way. Incidentally, wouldn't it be better to round to minutes, ie `.toFixed(0)` ?","created_at":"2016-09-26T12:38:52Z","updated_at":"2016-09-26T12:39:00Z","html_url":"https://github.com/NationalGenomicsInfrastructure/NGI_dashboards/pull/44#discussion_r80465057","pull_request_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/comments/80465057"},"html":{"href":"https://github.com/NationalGenomicsInfrastructure/NGI_dashboards/pull/44#discussion_r80465057"},"pull_request":{"href":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/44","id":86693399,"html_url":"https://github.com/NationalGenomicsInfrastructure/NGI_dashboards/pull/44","diff_url":"https://github.com/NationalGenomicsInfrastructure/NGI_dashboards/pull/44.diff","patch_url":"https://github.com/NationalGenomicsInfrastructure/NGI_dashboards/pull/44.patch","issue_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/issues/44","number":44,"state":"open","locked":false,"title":"Improve error handling.","user":{"login":"ewels","id":465550,"avatar_url":"https://avatars.githubusercontent.com/u/465550?v=3","gravatar_id":"","url":"https://api.github.com/users/ewels","html_url":"https://github.com/ewels","followers_url":"https://api.github.com/users/ewels/followers","following_url":"https://api.github.com/users/ewels/following{/other_user}","gists_url":"https://api.github.com/users/ewels/gists{/gist_id}","starred_url":"https://api.github.com/users/ewels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewels/subscriptions","organizations_url":"https://api.github.com/users/ewels/orgs","repos_url":"https://api.github.com/users/ewels/repos","events_url":"https://api.github.com/users/ewels/events{/privacy}","received_events_url":"https://api.github.com/users/ewels/received_events","type":"User","site_admin":false},"body":"Fixed the error display for catching global errors on the external and portal pages. Added a specific check to look for couchdb error codes.","created_at":"2016-09-26T07:31:08Z","updated_at":"2016-09-26T12:39:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ba8041dd347004381983b993c945df4597b9906","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/44/commits","review_comments_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/44/comments","review_comment_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/issues/44/comments","statuses_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/statuses/28ee9954aae58c60fef24e469d0cc79f5039b3ae","head":{"label":"ewels:master","ref":"master","sha":"28ee9954aae58c60fef24e469d0cc79f5039b3ae","user":{"login":"ewels","id":465550,"avatar_url":"https://avatars.githubusercontent.com/u/465550?v=3","gravatar_id":"","url":"https://api.github.com/users/ewels","html_url":"https://github.com/ewels","followers_url":"https://api.github.com/users/ewels/followers","following_url":"https://api.github.com/users/ewels/following{/other_user}","gists_url":"https://api.github.com/users/ewels/gists{/gist_id}","starred_url":"https://api.github.com/users/ewels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewels/subscriptions","organizations_url":"https://api.github.com/users/ewels/orgs","repos_url":"https://api.github.com/users/ewels/repos","events_url":"https://api.github.com/users/ewels/events{/privacy}","received_events_url":"https://api.github.com/users/ewels/received_events","type":"User","site_admin":false},"repo":{"id":46988335,"name":"NGI_dashboards","full_name":"ewels/NGI_dashboards","owner":{"login":"ewels","id":465550,"avatar_url":"https://avatars.githubusercontent.com/u/465550?v=3","gravatar_id":"","url":"https://api.github.com/users/ewels","html_url":"https://github.com/ewels","followers_url":"https://api.github.com/users/ewels/followers","following_url":"https://api.github.com/users/ewels/following{/other_user}","gists_url":"https://api.github.com/users/ewels/gists{/gist_id}","starred_url":"https://api.github.com/users/ewels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewels/subscriptions","organizations_url":"https://api.github.com/users/ewels/orgs","repos_url":"https://api.github.com/users/ewels/repos","events_url":"https://api.github.com/users/ewels/events{/privacy}","received_events_url":"https://api.github.com/users/ewels/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ewels/NGI_dashboards","description":"SciLifeLab NGI Dashboard Code","fork":false,"url":"https://api.github.com/repos/ewels/NGI_dashboards","forks_url":"https://api.github.com/repos/ewels/NGI_dashboards/forks","keys_url":"https://api.github.com/repos/ewels/NGI_dashboards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ewels/NGI_dashboards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ewels/NGI_dashboards/teams","hooks_url":"https://api.github.com/repos/ewels/NGI_dashboards/hooks","issue_events_url":"https://api.github.com/repos/ewels/NGI_dashboards/issues/events{/number}","events_url":"https://api.github.com/repos/ewels/NGI_dashboards/events","assignees_url":"https://api.github.com/repos/ewels/NGI_dashboards/assignees{/user}","branches_url":"https://api.github.com/repos/ewels/NGI_dashboards/branches{/branch}","tags_url":"https://api.github.com/repos/ewels/NGI_dashboards/tags","blobs_url":"https://api.github.com/repos/ewels/NGI_dashboards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ewels/NGI_dashboards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ewels/NGI_dashboards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ewels/NGI_dashboards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ewels/NGI_dashboards/statuses/{sha}","languages_url":"https://api.github.com/repos/ewels/NGI_dashboards/languages","stargazers_url":"https://api.github.com/repos/ewels/NGI_dashboards/stargazers","contributors_url":"https://api.github.com/repos/ewels/NGI_dashboards/contributors","subscribers_url":"https://api.github.com/repos/ewels/NGI_dashboards/subscribers","subscription_url":"https://api.github.com/repos/ewels/NGI_dashboards/subscription","commits_url":"https://api.github.com/repos/ewels/NGI_dashboards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ewels/NGI_dashboards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ewels/NGI_dashboards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ewels/NGI_dashboards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ewels/NGI_dashboards/contents/{+path}","compare_url":"https://api.github.com/repos/ewels/NGI_dashboards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ewels/NGI_dashboards/merges","archive_url":"https://api.github.com/repos/ewels/NGI_dashboards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ewels/NGI_dashboards/downloads","issues_url":"https://api.github.com/repos/ewels/NGI_dashboards/issues{/number}","pulls_url":"https://api.github.com/repos/ewels/NGI_dashboards/pulls{/number}","milestones_url":"https://api.github.com/repos/ewels/NGI_dashboards/milestones{/number}","notifications_url":"https://api.github.com/repos/ewels/NGI_dashboards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ewels/NGI_dashboards/labels{/name}","releases_url":"https://api.github.com/repos/ewels/NGI_dashboards/releases{/id}","deployments_url":"https://api.github.com/repos/ewels/NGI_dashboards/deployments","created_at":"2015-11-27T15:53:59Z","updated_at":"2016-01-12T16:37:34Z","pushed_at":"2016-09-26T07:54:02Z","git_url":"git://github.com/ewels/NGI_dashboards.git","ssh_url":"git@github.com:ewels/NGI_dashboards.git","clone_url":"https://github.com/ewels/NGI_dashboards.git","svn_url":"https://github.com/ewels/NGI_dashboards","homepage":null,"size":28616,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NationalGenomicsInfrastructure:master","ref":"master","sha":"15fa3c6caae1d3a1d287603cd8e572e3c1eb2b2c","user":{"login":"NationalGenomicsInfrastructure","id":7566557,"avatar_url":"https://avatars.githubusercontent.com/u/7566557?v=3","gravatar_id":"","url":"https://api.github.com/users/NationalGenomicsInfrastructure","html_url":"https://github.com/NationalGenomicsInfrastructure","followers_url":"https://api.github.com/users/NationalGenomicsInfrastructure/followers","following_url":"https://api.github.com/users/NationalGenomicsInfrastructure/following{/other_user}","gists_url":"https://api.github.com/users/NationalGenomicsInfrastructure/gists{/gist_id}","starred_url":"https://api.github.com/users/NationalGenomicsInfrastructure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NationalGenomicsInfrastructure/subscriptions","organizations_url":"https://api.github.com/users/NationalGenomicsInfrastructure/orgs","repos_url":"https://api.github.com/users/NationalGenomicsInfrastructure/repos","events_url":"https://api.github.com/users/NationalGenomicsInfrastructure/events{/privacy}","received_events_url":"https://api.github.com/users/NationalGenomicsInfrastructure/received_events","type":"Organization","site_admin":false},"repo":{"id":48223563,"name":"NGI_dashboards","full_name":"NationalGenomicsInfrastructure/NGI_dashboards","owner":{"login":"NationalGenomicsInfrastructure","id":7566557,"avatar_url":"https://avatars.githubusercontent.com/u/7566557?v=3","gravatar_id":"","url":"https://api.github.com/users/NationalGenomicsInfrastructure","html_url":"https://github.com/NationalGenomicsInfrastructure","followers_url":"https://api.github.com/users/NationalGenomicsInfrastructure/followers","following_url":"https://api.github.com/users/NationalGenomicsInfrastructure/following{/other_user}","gists_url":"https://api.github.com/users/NationalGenomicsInfrastructure/gists{/gist_id}","starred_url":"https://api.github.com/users/NationalGenomicsInfrastructure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NationalGenomicsInfrastructure/subscriptions","organizations_url":"https://api.github.com/users/NationalGenomicsInfrastructure/orgs","repos_url":"https://api.github.com/users/NationalGenomicsInfrastructure/repos","events_url":"https://api.github.com/users/NationalGenomicsInfrastructure/events{/privacy}","received_events_url":"https://api.github.com/users/NationalGenomicsInfrastructure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NationalGenomicsInfrastructure/NGI_dashboards","description":"SciLifeLab NGI Dashboard Code","fork":true,"url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards","forks_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/forks","keys_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/teams","hooks_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/hooks","issue_events_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/issues/events{/number}","events_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/events","assignees_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/assignees{/user}","branches_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/branches{/branch}","tags_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/tags","blobs_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/git/refs{/sha}","trees_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/statuses/{sha}","languages_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/languages","stargazers_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/stargazers","contributors_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/contributors","subscribers_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/subscribers","subscription_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/subscription","commits_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/commits{/sha}","git_commits_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/git/commits{/sha}","comments_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/comments{/number}","issue_comment_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/issues/comments{/number}","contents_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/contents/{+path}","compare_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/merges","archive_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/downloads","issues_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/issues{/number}","pulls_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls{/number}","milestones_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/milestones{/number}","notifications_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/labels{/name}","releases_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/releases{/id}","deployments_url":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/deployments","created_at":"2015-12-18T08:29:11Z","updated_at":"2016-01-13T16:02:33Z","pushed_at":"2016-09-26T07:54:02Z","git_url":"git://github.com/NationalGenomicsInfrastructure/NGI_dashboards.git","ssh_url":"git@github.com:NationalGenomicsInfrastructure/NGI_dashboards.git","clone_url":"https://github.com/NationalGenomicsInfrastructure/NGI_dashboards.git","svn_url":"https://github.com/NationalGenomicsInfrastructure/NGI_dashboards","homepage":null,"size":28614,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/44"},"html":{"href":"https://github.com/NationalGenomicsInfrastructure/NGI_dashboards/pull/44"},"issue":{"href":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/issues/44"},"comments":{"href":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/NationalGenomicsInfrastructure/NGI_dashboards/statuses/28ee9954aae58c60fef24e469d0cc79f5039b3ae"}}}}
{"actor":{"display_login":"remiolsen"}}