{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/socorro/pulls/comments/40114209","id":40114209,"diff_hunk":"@@ -0,0 +1,275 @@\n+{% extends \"crashstats_base.html\" %}\n+{% block site_css %}\n+  {{ super() }}\n+  {% compress css %}\n+      <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ static('crashstats/css/lib/jquery-ui.css') }}\" media=\"screen\" />\n+      <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ static('crashstats/css/lib/jquery-ui.structure.css') }}\" media=\"screen\" />\n+      <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ static('crashstats/css/lib/jquery-ui.theme.css') }}\" media=\"screen\" />\n+      <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ static('crashstats/css/lib/metricsgraphics.css') }}\">\n+      <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ static('crashstats/css/metricsgraphics_custom.css') }}\">\n+  {% endcompress %}\n+  {% compress css %}\n+      <link rel=\"stylesheet\" type=\"text/less\" href=\"{{ static('crashstats/css/crashes_per_user.less') }}\">\n+  {% endcompress %}\n+{% endblock %}\n+\n+{% block page_title %}\n+Crashes per User for {{ product }}\n+{% endblock %}\n+\n+{% block content %}\n+<div id=\"mainbody\">\n+\n+<div class=\"page-heading\">\n+    <p style=\"float: right\">\n+      <a href=\"{{ old_daily_report_url }}\">View the old <i>Crashes per user</i> report</a>\n+    </p>\n+    <h2>Crashes per User for {{ product }}</h2>\n+</div>\n+\n+\n+<div class=\"panel daily_search\">\n+    <div class=\"title daily_search_title\">\n+        <h2>Options</h2>\n+    </div>\n+\n+    <div class=\"body daily_search_body\">\n+        <div id=\"daily_search\">{# is this div tag necessary? #}\n+        <div class=\"daily_search_version\">\n+            <form name=\"daily_search_version_form\" action=\"\">\n+                <p>\n+                  All ADI ratios are generated per 100 ADIs, not per single ADI.\n+                  \"3.5 crashes/ADI\" means that there are 3.5 crashes per 100\n+                  installations, not per installation. This ratio also does\n+                  not distinguish between installs who crash multiple times\n+                  and multiple crashing installs.\n+                </p>\n+\n+                <table class=\"by_version\">\n+                    <tr>\n+                        <th>Product</th>\n+                        <td>\n+                          <label class=\"visually-hidden\" for=\"daily_search_version_form_products\">Select Product</label>\n+                        <select id=\"daily_search_version_form_products\" name=\"p\">\n+                          {% for product_name in releases %}\n+                            <option value=\"{{ product_name }}\" {% if product == product_name %}selected{% endif %}>{{ product_name }}</option>\n+                            {% endfor %}\n+                        </select>\n+                        </td>\n+                    </tr>\n+\n+                    {% for i in range(4)|reverse %}\n+                    <tr>\n+                        {% if loop.first %}\n+                        <th rowspan=\"4\">Versions</th>\n+                        {% endif %}\n+\n+                        <td>\n+                          <label class=\"visually-hidden\" for=\"version{{ i }}\">Select Version</label>\n+                            <select id=\"version{{ i }}\" name=\"v\">\n+                                <option value=\"\">-- versions --</option>","path":"webapp-django/crashstats/crashstats/templates/crashstats/crashes_per_user.html","position":70,"original_position":70,"commit_id":"6c6986b4b90405094167d4ef7aa692823f5a3c5e","original_commit_id":"6c6986b4b90405094167d4ef7aa692823f5a3c5e","user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"body":"Removed now. It made sense when you could chose \"Crashes per OS\"","created_at":"2015-09-22T17:15:21Z","updated_at":"2015-09-22T17:15:21Z","html_url":"https://github.com/mozilla/socorro/pull/2973#discussion_r40114209","pull_request_url":"https://api.github.com/repos/mozilla/socorro/pulls/2973","_links":{"self":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/comments/40114209"},"html":{"href":"https://github.com/mozilla/socorro/pull/2973#discussion_r40114209"},"pull_request":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2973"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/socorro/pulls/2973","id":43920107,"html_url":"https://github.com/mozilla/socorro/pull/2973","diff_url":"https://github.com/mozilla/socorro/pull/2973.diff","patch_url":"https://github.com/mozilla/socorro/pull/2973.patch","issue_url":"https://api.github.com/repos/mozilla/socorro/issues/2973","number":2973,"state":"open","locked":false,"title":"[LEMME REBASE] Bug 1196867 new crashes per user using supersearch","user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"body":"@AdrianGaudebert here's a sneak peek. It gives pretty nice results on the \"By Crash Date\" but we have some work to do on the \"By Build Date\" still since PG seems to yield such totally different numbers. \r\n\r\nTodo:\r\n\r\n- [x] Hang type\r\n- [x] respect the OS parameter choice\r\n- [x] flake8\r\n- [x] all tests passing\r\n- [ ] ~~investigate why the \"By Build date\" numbers are so different in the PG based on (can maybe wait)~~\r\n- [x] a link to the old daily report. \r\n- [x] hide the \"By Build date\" option","created_at":"2015-09-01T20:05:33Z","updated_at":"2015-09-22T17:15:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1130db54ed3e9691531b5bd916ebf200ec9b216","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/socorro/pulls/2973/commits","review_comments_url":"https://api.github.com/repos/mozilla/socorro/pulls/2973/comments","review_comment_url":"https://api.github.com/repos/mozilla/socorro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/socorro/issues/2973/comments","statuses_url":"https://api.github.com/repos/mozilla/socorro/statuses/6c6986b4b90405094167d4ef7aa692823f5a3c5e","head":{"label":"peterbe:bug-1196867-new-crashes-per-user-using-supersearch","ref":"bug-1196867-new-crashes-per-user-using-supersearch","sha":"6c6986b4b90405094167d4ef7aa692823f5a3c5e","user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"repo":{"id":2920665,"name":"socorro","full_name":"peterbe/socorro","owner":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peterbe/socorro","description":"Socorro is a server to accept and process Breakpad crash reports. ","fork":true,"url":"https://api.github.com/repos/peterbe/socorro","forks_url":"https://api.github.com/repos/peterbe/socorro/forks","keys_url":"https://api.github.com/repos/peterbe/socorro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peterbe/socorro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peterbe/socorro/teams","hooks_url":"https://api.github.com/repos/peterbe/socorro/hooks","issue_events_url":"https://api.github.com/repos/peterbe/socorro/issues/events{/number}","events_url":"https://api.github.com/repos/peterbe/socorro/events","assignees_url":"https://api.github.com/repos/peterbe/socorro/assignees{/user}","branches_url":"https://api.github.com/repos/peterbe/socorro/branches{/branch}","tags_url":"https://api.github.com/repos/peterbe/socorro/tags","blobs_url":"https://api.github.com/repos/peterbe/socorro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peterbe/socorro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peterbe/socorro/git/refs{/sha}","trees_url":"https://api.github.com/repos/peterbe/socorro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peterbe/socorro/statuses/{sha}","languages_url":"https://api.github.com/repos/peterbe/socorro/languages","stargazers_url":"https://api.github.com/repos/peterbe/socorro/stargazers","contributors_url":"https://api.github.com/repos/peterbe/socorro/contributors","subscribers_url":"https://api.github.com/repos/peterbe/socorro/subscribers","subscription_url":"https://api.github.com/repos/peterbe/socorro/subscription","commits_url":"https://api.github.com/repos/peterbe/socorro/commits{/sha}","git_commits_url":"https://api.github.com/repos/peterbe/socorro/git/commits{/sha}","comments_url":"https://api.github.com/repos/peterbe/socorro/comments{/number}","issue_comment_url":"https://api.github.com/repos/peterbe/socorro/issues/comments{/number}","contents_url":"https://api.github.com/repos/peterbe/socorro/contents/{+path}","compare_url":"https://api.github.com/repos/peterbe/socorro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peterbe/socorro/merges","archive_url":"https://api.github.com/repos/peterbe/socorro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peterbe/socorro/downloads","issues_url":"https://api.github.com/repos/peterbe/socorro/issues{/number}","pulls_url":"https://api.github.com/repos/peterbe/socorro/pulls{/number}","milestones_url":"https://api.github.com/repos/peterbe/socorro/milestones{/number}","notifications_url":"https://api.github.com/repos/peterbe/socorro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peterbe/socorro/labels{/name}","releases_url":"https://api.github.com/repos/peterbe/socorro/releases{/id}","created_at":"2011-12-05T23:07:30Z","updated_at":"2014-06-24T00:26:16Z","pushed_at":"2015-09-21T22:33:48Z","git_url":"git://github.com/peterbe/socorro.git","ssh_url":"git@github.com:peterbe/socorro.git","clone_url":"https://github.com/peterbe/socorro.git","svn_url":"https://github.com/peterbe/socorro","homepage":"https://wiki.mozilla.org/Socorro","size":163691,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"a3d59841db6f934b988f307456da6d073099837a","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":2263742,"name":"socorro","full_name":"mozilla/socorro","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/socorro","description":"Socorro is a server to accept and process Breakpad crash reports. ","fork":false,"url":"https://api.github.com/repos/mozilla/socorro","forks_url":"https://api.github.com/repos/mozilla/socorro/forks","keys_url":"https://api.github.com/repos/mozilla/socorro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/socorro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/socorro/teams","hooks_url":"https://api.github.com/repos/mozilla/socorro/hooks","issue_events_url":"https://api.github.com/repos/mozilla/socorro/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/socorro/events","assignees_url":"https://api.github.com/repos/mozilla/socorro/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/socorro/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/socorro/tags","blobs_url":"https://api.github.com/repos/mozilla/socorro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/socorro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/socorro/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/socorro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/socorro/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/socorro/languages","stargazers_url":"https://api.github.com/repos/mozilla/socorro/stargazers","contributors_url":"https://api.github.com/repos/mozilla/socorro/contributors","subscribers_url":"https://api.github.com/repos/mozilla/socorro/subscribers","subscription_url":"https://api.github.com/repos/mozilla/socorro/subscription","commits_url":"https://api.github.com/repos/mozilla/socorro/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/socorro/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/socorro/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/socorro/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/socorro/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/socorro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/socorro/merges","archive_url":"https://api.github.com/repos/mozilla/socorro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/socorro/downloads","issues_url":"https://api.github.com/repos/mozilla/socorro/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/socorro/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/socorro/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/socorro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/socorro/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/socorro/releases{/id}","created_at":"2011-08-24T19:21:49Z","updated_at":"2015-09-18T06:53:54Z","pushed_at":"2015-09-22T15:17:25Z","git_url":"git://github.com/mozilla/socorro.git","ssh_url":"git@github.com:mozilla/socorro.git","clone_url":"https://github.com/mozilla/socorro.git","svn_url":"https://github.com/mozilla/socorro","homepage":"https://wiki.mozilla.org/Socorro","size":192841,"stargazers_count":241,"watchers_count":241,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":130,"mirror_url":null,"open_issues_count":8,"forks":130,"open_issues":8,"watchers":241,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2973"},"html":{"href":"https://github.com/mozilla/socorro/pull/2973"},"issue":{"href":"https://api.github.com/repos/mozilla/socorro/issues/2973"},"comments":{"href":"https://api.github.com/repos/mozilla/socorro/issues/2973/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2973/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2973/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/socorro/statuses/6c6986b4b90405094167d4ef7aa692823f5a3c5e"}}}}