{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/treeherder/pulls/comments/193802924","pull_request_review_id":126849710,"id":193802924,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzgwMjkyNA==","diff_hunk":"@@ -51,11 +57,29 @@ def get_queryset(self):\n                                       .values('job__repository__name', 'job__machine_platform__platform',\n                                               'bug_id', 'job_id', 'job__push__time', 'job__push__revision',\n                                               'job__signature__job_type_name', 'job__option_collection_hash',\n-                                              'job__machine__name').order_by('-job__push__time'))\n+                                              'job__machine__name')\n+                                      .order_by('-job__push__time'))\n+\n+        lines = (TextLogStep.objects.select_related('errors')\n+                                    .filter(job_id__in=queryset.values_list('job_id', flat=True))\n+                                    .annotate(lines=Case(When\n+                                              (errors__line__regex=r'TEST-UNEXPECTED-FAIL',\n+                                               then='errors__line'), output_field=CharField()))\n+                                    .values_list('job_id', 'lines'))","path":"treeherder/webapp/api/intermittents_view.py","position":33,"original_position":33,"commit_id":"6244e10412f7648957698cf6dafff2ea83f31ea0","original_commit_id":"6244e10412f7648957698cf6dafff2ea83f31ea0","user":{"login":"sarah-clements","id":19615783,"node_id":"MDQ6VXNlcjE5NjE1Nzgz","avatar_url":"https://avatars1.githubusercontent.com/u/19615783?v=4","gravatar_id":"","url":"https://api.github.com/users/sarah-clements","html_url":"https://github.com/sarah-clements","followers_url":"https://api.github.com/users/sarah-clements/followers","following_url":"https://api.github.com/users/sarah-clements/following{/other_user}","gists_url":"https://api.github.com/users/sarah-clements/gists{/gist_id}","starred_url":"https://api.github.com/users/sarah-clements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarah-clements/subscriptions","organizations_url":"https://api.github.com/users/sarah-clements/orgs","repos_url":"https://api.github.com/users/sarah-clements/repos","events_url":"https://api.github.com/users/sarah-clements/events{/privacy}","received_events_url":"https://api.github.com/users/sarah-clements/received_events","type":"User","site_admin":false},"body":"Ah, I was making it more complicated than it needed to be. Thanks George!","created_at":"2018-06-07T16:01:50Z","updated_at":"2018-06-07T16:01:51Z","html_url":"https://github.com/mozilla/treeherder/pull/3620#discussion_r193802924","pull_request_url":"https://api.github.com/repos/mozilla/treeherder/pulls/3620","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/comments/193802924"},"html":{"href":"https://github.com/mozilla/treeherder/pull/3620#discussion_r193802924"},"pull_request":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/3620"}},"in_reply_to_id":193678124},"pull_request":{"url":"https://api.github.com/repos/mozilla/treeherder/pulls/3620","id":192853677,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODUzNjc3","html_url":"https://github.com/mozilla/treeherder/pull/3620","diff_url":"https://github.com/mozilla/treeherder/pull/3620.diff","patch_url":"https://github.com/mozilla/treeherder/pull/3620.patch","issue_url":"https://api.github.com/repos/mozilla/treeherder/issues/3620","number":3620,"state":"open","locked":false,"title":"Bug 1339937 - IFV show unexpected fails","user":{"login":"sarah-clements","id":19615783,"node_id":"MDQ6VXNlcjE5NjE1Nzgz","avatar_url":"https://avatars1.githubusercontent.com/u/19615783?v=4","gravatar_id":"","url":"https://api.github.com/users/sarah-clements","html_url":"https://github.com/sarah-clements","followers_url":"https://api.github.com/users/sarah-clements/followers","following_url":"https://api.github.com/users/sarah-clements/following{/other_user}","gists_url":"https://api.github.com/users/sarah-clements/gists{/gist_id}","starred_url":"https://api.github.com/users/sarah-clements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarah-clements/subscriptions","organizations_url":"https://api.github.com/users/sarah-clements/orgs","repos_url":"https://api.github.com/users/sarah-clements/repos","events_url":"https://api.github.com/users/sarah-clements/events{/privacy}","received_events_url":"https://api.github.com/users/sarah-clements/received_events","type":"User","site_admin":false},"body":"modify failuresByBug endpoint to include test-unexpected-fail lines per job; change bugdetails UI to include failure counts and tooltip with lines","created_at":"2018-06-05T22:28:21Z","updated_at":"2018-06-07T16:01:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b26e207252e78c60be49d0e8068106f3d4f48027","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/treeherder/pulls/3620/commits","review_comments_url":"https://api.github.com/repos/mozilla/treeherder/pulls/3620/comments","review_comment_url":"https://api.github.com/repos/mozilla/treeherder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/treeherder/issues/3620/comments","statuses_url":"https://api.github.com/repos/mozilla/treeherder/statuses/6244e10412f7648957698cf6dafff2ea83f31ea0","head":{"label":"sarah-clements:test_unexpected_failures","ref":"test_unexpected_failures","sha":"6244e10412f7648957698cf6dafff2ea83f31ea0","user":{"login":"sarah-clements","id":19615783,"node_id":"MDQ6VXNlcjE5NjE1Nzgz","avatar_url":"https://avatars1.githubusercontent.com/u/19615783?v=4","gravatar_id":"","url":"https://api.github.com/users/sarah-clements","html_url":"https://github.com/sarah-clements","followers_url":"https://api.github.com/users/sarah-clements/followers","following_url":"https://api.github.com/users/sarah-clements/following{/other_user}","gists_url":"https://api.github.com/users/sarah-clements/gists{/gist_id}","starred_url":"https://api.github.com/users/sarah-clements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarah-clements/subscriptions","organizations_url":"https://api.github.com/users/sarah-clements/orgs","repos_url":"https://api.github.com/users/sarah-clements/repos","events_url":"https://api.github.com/users/sarah-clements/events{/privacy}","received_events_url":"https://api.github.com/users/sarah-clements/received_events","type":"User","site_admin":false},"repo":{"id":106613783,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY2MTM3ODM=","name":"treeherder","full_name":"sarah-clements/treeherder","owner":{"login":"sarah-clements","id":19615783,"node_id":"MDQ6VXNlcjE5NjE1Nzgz","avatar_url":"https://avatars1.githubusercontent.com/u/19615783?v=4","gravatar_id":"","url":"https://api.github.com/users/sarah-clements","html_url":"https://github.com/sarah-clements","followers_url":"https://api.github.com/users/sarah-clements/followers","following_url":"https://api.github.com/users/sarah-clements/following{/other_user}","gists_url":"https://api.github.com/users/sarah-clements/gists{/gist_id}","starred_url":"https://api.github.com/users/sarah-clements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarah-clements/subscriptions","organizations_url":"https://api.github.com/users/sarah-clements/orgs","repos_url":"https://api.github.com/users/sarah-clements/repos","events_url":"https://api.github.com/users/sarah-clements/events{/privacy}","received_events_url":"https://api.github.com/users/sarah-clements/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sarah-clements/treeherder","description":"A system for managing CI data for Mozilla projects","fork":true,"url":"https://api.github.com/repos/sarah-clements/treeherder","forks_url":"https://api.github.com/repos/sarah-clements/treeherder/forks","keys_url":"https://api.github.com/repos/sarah-clements/treeherder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sarah-clements/treeherder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sarah-clements/treeherder/teams","hooks_url":"https://api.github.com/repos/sarah-clements/treeherder/hooks","issue_events_url":"https://api.github.com/repos/sarah-clements/treeherder/issues/events{/number}","events_url":"https://api.github.com/repos/sarah-clements/treeherder/events","assignees_url":"https://api.github.com/repos/sarah-clements/treeherder/assignees{/user}","branches_url":"https://api.github.com/repos/sarah-clements/treeherder/branches{/branch}","tags_url":"https://api.github.com/repos/sarah-clements/treeherder/tags","blobs_url":"https://api.github.com/repos/sarah-clements/treeherder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sarah-clements/treeherder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sarah-clements/treeherder/git/refs{/sha}","trees_url":"https://api.github.com/repos/sarah-clements/treeherder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sarah-clements/treeherder/statuses/{sha}","languages_url":"https://api.github.com/repos/sarah-clements/treeherder/languages","stargazers_url":"https://api.github.com/repos/sarah-clements/treeherder/stargazers","contributors_url":"https://api.github.com/repos/sarah-clements/treeherder/contributors","subscribers_url":"https://api.github.com/repos/sarah-clements/treeherder/subscribers","subscription_url":"https://api.github.com/repos/sarah-clements/treeherder/subscription","commits_url":"https://api.github.com/repos/sarah-clements/treeherder/commits{/sha}","git_commits_url":"https://api.github.com/repos/sarah-clements/treeherder/git/commits{/sha}","comments_url":"https://api.github.com/repos/sarah-clements/treeherder/comments{/number}","issue_comment_url":"https://api.github.com/repos/sarah-clements/treeherder/issues/comments{/number}","contents_url":"https://api.github.com/repos/sarah-clements/treeherder/contents/{+path}","compare_url":"https://api.github.com/repos/sarah-clements/treeherder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sarah-clements/treeherder/merges","archive_url":"https://api.github.com/repos/sarah-clements/treeherder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sarah-clements/treeherder/downloads","issues_url":"https://api.github.com/repos/sarah-clements/treeherder/issues{/number}","pulls_url":"https://api.github.com/repos/sarah-clements/treeherder/pulls{/number}","milestones_url":"https://api.github.com/repos/sarah-clements/treeherder/milestones{/number}","notifications_url":"https://api.github.com/repos/sarah-clements/treeherder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sarah-clements/treeherder/labels{/name}","releases_url":"https://api.github.com/repos/sarah-clements/treeherder/releases{/id}","deployments_url":"https://api.github.com/repos/sarah-clements/treeherder/deployments","created_at":"2017-10-11T21:58:08Z","updated_at":"2017-10-11T21:58:11Z","pushed_at":"2018-06-06T16:04:35Z","git_url":"git://github.com/sarah-clements/treeherder.git","ssh_url":"git@github.com:sarah-clements/treeherder.git","clone_url":"https://github.com/sarah-clements/treeherder.git","svn_url":"https://github.com/sarah-clements/treeherder","homepage":"https://wiki.mozilla.org/EngineeringProductivity/Projects/Treeherder","size":52087,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"4696da343eea4d3f536444708f2243b77867b7f3","user":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","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":8463294,"node_id":"MDEwOlJlcG9zaXRvcnk4NDYzMjk0","name":"treeherder","full_name":"mozilla/treeherder","owner":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","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/treeherder","description":"A system for managing CI data for Mozilla projects","fork":false,"url":"https://api.github.com/repos/mozilla/treeherder","forks_url":"https://api.github.com/repos/mozilla/treeherder/forks","keys_url":"https://api.github.com/repos/mozilla/treeherder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/treeherder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/treeherder/teams","hooks_url":"https://api.github.com/repos/mozilla/treeherder/hooks","issue_events_url":"https://api.github.com/repos/mozilla/treeherder/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/treeherder/events","assignees_url":"https://api.github.com/repos/mozilla/treeherder/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/treeherder/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/treeherder/tags","blobs_url":"https://api.github.com/repos/mozilla/treeherder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/treeherder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/treeherder/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/treeherder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/treeherder/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/treeherder/languages","stargazers_url":"https://api.github.com/repos/mozilla/treeherder/stargazers","contributors_url":"https://api.github.com/repos/mozilla/treeherder/contributors","subscribers_url":"https://api.github.com/repos/mozilla/treeherder/subscribers","subscription_url":"https://api.github.com/repos/mozilla/treeherder/subscription","commits_url":"https://api.github.com/repos/mozilla/treeherder/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/treeherder/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/treeherder/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/treeherder/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/treeherder/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/treeherder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/treeherder/merges","archive_url":"https://api.github.com/repos/mozilla/treeherder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/treeherder/downloads","issues_url":"https://api.github.com/repos/mozilla/treeherder/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/treeherder/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/treeherder/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/treeherder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/treeherder/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/treeherder/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/treeherder/deployments","created_at":"2013-02-27T19:17:37Z","updated_at":"2018-06-07T12:01:48Z","pushed_at":"2018-06-07T15:50:49Z","git_url":"git://github.com/mozilla/treeherder.git","ssh_url":"git@github.com:mozilla/treeherder.git","clone_url":"https://github.com/mozilla/treeherder.git","svn_url":"https://github.com/mozilla/treeherder","homepage":"https://wiki.mozilla.org/EngineeringProductivity/Projects/Treeherder","size":78114,"stargazers_count":123,"watchers_count":123,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":204,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":204,"open_issues":29,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/3620"},"html":{"href":"https://github.com/mozilla/treeherder/pull/3620"},"issue":{"href":"https://api.github.com/repos/mozilla/treeherder/issues/3620"},"comments":{"href":"https://api.github.com/repos/mozilla/treeherder/issues/3620/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/3620/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/3620/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/treeherder/statuses/6244e10412f7648957698cf6dafff2ea83f31ea0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sarah-clements"}}