{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/treeherder/pulls/comments/72650244","id":72650244,"diff_hunk":"@@ -75,25 +75,56 @@ treeherder.factory('PhAlerts', [\n                 this.updateStatus(status);\n             };\n         });\n-        AlertSummary.prototype.getTextualSummary = function() {\n+        AlertSummary.prototype.getTextualSummary = function(copySummary = false) {\n             var resultStr = \"\";\n             var improved = _.filter(this.alerts, function(alert) {return !alert.is_regression && alert.visible;});\n             var regressed = _.filter(this.alerts, function(alert) {return alert.is_regression && alert.visible;});\n+            // add summary header if getting text for clipboard only\n+            if (copySummary) {\n+                var lastUpdated = new Date(this.last_updated)\n+                resultStr += \"== Change summary for alert #\" + this.id +\n+                             \" (as of \" + lastUpdated.toLocaleFormat(\"%B %d %Y %H:%M UTC\") + \") ==\\n\"\n+            }\n             if (regressed.length > 0) {\n-                resultStr += \"Summary of tests that regressed:\\n\\n\" +\n-                             _.map(regressed, function(alert) {\n-                                 return \"  \" + alert.title + \" - \" + alert.amount_pct + \"% worse\";\n-                             }).join('\\n') + \"\\n\";\n+                // more details when getting text for the clipboard\n+                if (copySummary) {","path":"ui/js/models/perf/alerts.js","position":21,"original_position":21,"commit_id":"ac84d8f99a388267a9493701234fedc5b4754129","original_commit_id":"ac84d8f99a388267a9493701234fedc5b4754129","user":{"login":"wlach","id":20569,"avatar_url":"https://avatars.githubusercontent.com/u/20569?v=3","gravatar_id":"","url":"https://api.github.com/users/wlach","html_url":"https://github.com/wlach","followers_url":"https://api.github.com/users/wlach/followers","following_url":"https://api.github.com/users/wlach/following{/other_user}","gists_url":"https://api.github.com/users/wlach/gists{/gist_id}","starred_url":"https://api.github.com/users/wlach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlach/subscriptions","organizations_url":"https://api.github.com/users/wlach/orgs","repos_url":"https://api.github.com/users/wlach/repos","events_url":"https://api.github.com/users/wlach/events{/privacy}","received_events_url":"https://api.github.com/users/wlach/received_events","type":"User","site_admin":false},"body":"I think we can unconditionally use the new syntax for the alerts themselves, as I think the syntax is a bit nicer. We just don't need the header.","created_at":"2016-07-28T15:58:30Z","updated_at":"2016-07-28T15:58:30Z","html_url":"https://github.com/mozilla/treeherder/pull/1741#discussion_r72650244","pull_request_url":"https://api.github.com/repos/mozilla/treeherder/pulls/1741","_links":{"self":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/comments/72650244"},"html":{"href":"https://github.com/mozilla/treeherder/pull/1741#discussion_r72650244"},"pull_request":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/1741"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/treeherder/pulls/1741","id":79094719,"html_url":"https://github.com/mozilla/treeherder/pull/1741","diff_url":"https://github.com/mozilla/treeherder/pull/1741.diff","patch_url":"https://github.com/mozilla/treeherder/pull/1741.patch","issue_url":"https://api.github.com/repos/mozilla/treeherder/issues/1741","number":1741,"state":"open","locked":false,"title":"Bug 1285368 - Add more details to the clipboard for copy summary","user":{"login":"rwood-moz","id":2198968,"avatar_url":"https://avatars.githubusercontent.com/u/2198968?v=3","gravatar_id":"","url":"https://api.github.com/users/rwood-moz","html_url":"https://github.com/rwood-moz","followers_url":"https://api.github.com/users/rwood-moz/followers","following_url":"https://api.github.com/users/rwood-moz/following{/other_user}","gists_url":"https://api.github.com/users/rwood-moz/gists{/gist_id}","starred_url":"https://api.github.com/users/rwood-moz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwood-moz/subscriptions","organizations_url":"https://api.github.com/users/rwood-moz/orgs","repos_url":"https://api.github.com/users/rwood-moz/repos","events_url":"https://api.github.com/users/rwood-moz/events{/privacy}","received_events_url":"https://api.github.com/users/rwood-moz/received_events","type":"User","site_admin":false},"body":"\n\n<!-- Reviewable:start -->\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/mozilla/treeherder/1741)\n<!-- Reviewable:end -->\n","created_at":"2016-07-27T20:46:01Z","updated_at":"2016-07-28T15:58:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f8887b8ebd7104afb6098ad8e75e24a3f673a7e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/treeherder/pulls/1741/commits","review_comments_url":"https://api.github.com/repos/mozilla/treeherder/pulls/1741/comments","review_comment_url":"https://api.github.com/repos/mozilla/treeherder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/treeherder/issues/1741/comments","statuses_url":"https://api.github.com/repos/mozilla/treeherder/statuses/ac84d8f99a388267a9493701234fedc5b4754129","head":{"label":"rwood-moz:rwood-bug1285368","ref":"rwood-bug1285368","sha":"ac84d8f99a388267a9493701234fedc5b4754129","user":{"login":"rwood-moz","id":2198968,"avatar_url":"https://avatars.githubusercontent.com/u/2198968?v=3","gravatar_id":"","url":"https://api.github.com/users/rwood-moz","html_url":"https://github.com/rwood-moz","followers_url":"https://api.github.com/users/rwood-moz/followers","following_url":"https://api.github.com/users/rwood-moz/following{/other_user}","gists_url":"https://api.github.com/users/rwood-moz/gists{/gist_id}","starred_url":"https://api.github.com/users/rwood-moz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwood-moz/subscriptions","organizations_url":"https://api.github.com/users/rwood-moz/orgs","repos_url":"https://api.github.com/users/rwood-moz/repos","events_url":"https://api.github.com/users/rwood-moz/events{/privacy}","received_events_url":"https://api.github.com/users/rwood-moz/received_events","type":"User","site_admin":false},"repo":{"id":63898572,"name":"treeherder","full_name":"rwood-moz/treeherder","owner":{"login":"rwood-moz","id":2198968,"avatar_url":"https://avatars.githubusercontent.com/u/2198968?v=3","gravatar_id":"","url":"https://api.github.com/users/rwood-moz","html_url":"https://github.com/rwood-moz","followers_url":"https://api.github.com/users/rwood-moz/followers","following_url":"https://api.github.com/users/rwood-moz/following{/other_user}","gists_url":"https://api.github.com/users/rwood-moz/gists{/gist_id}","starred_url":"https://api.github.com/users/rwood-moz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwood-moz/subscriptions","organizations_url":"https://api.github.com/users/rwood-moz/orgs","repos_url":"https://api.github.com/users/rwood-moz/repos","events_url":"https://api.github.com/users/rwood-moz/events{/privacy}","received_events_url":"https://api.github.com/users/rwood-moz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rwood-moz/treeherder","description":"Dashboard & service for managing CI data for Mozilla projects","fork":true,"url":"https://api.github.com/repos/rwood-moz/treeherder","forks_url":"https://api.github.com/repos/rwood-moz/treeherder/forks","keys_url":"https://api.github.com/repos/rwood-moz/treeherder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rwood-moz/treeherder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rwood-moz/treeherder/teams","hooks_url":"https://api.github.com/repos/rwood-moz/treeherder/hooks","issue_events_url":"https://api.github.com/repos/rwood-moz/treeherder/issues/events{/number}","events_url":"https://api.github.com/repos/rwood-moz/treeherder/events","assignees_url":"https://api.github.com/repos/rwood-moz/treeherder/assignees{/user}","branches_url":"https://api.github.com/repos/rwood-moz/treeherder/branches{/branch}","tags_url":"https://api.github.com/repos/rwood-moz/treeherder/tags","blobs_url":"https://api.github.com/repos/rwood-moz/treeherder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rwood-moz/treeherder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rwood-moz/treeherder/git/refs{/sha}","trees_url":"https://api.github.com/repos/rwood-moz/treeherder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rwood-moz/treeherder/statuses/{sha}","languages_url":"https://api.github.com/repos/rwood-moz/treeherder/languages","stargazers_url":"https://api.github.com/repos/rwood-moz/treeherder/stargazers","contributors_url":"https://api.github.com/repos/rwood-moz/treeherder/contributors","subscribers_url":"https://api.github.com/repos/rwood-moz/treeherder/subscribers","subscription_url":"https://api.github.com/repos/rwood-moz/treeherder/subscription","commits_url":"https://api.github.com/repos/rwood-moz/treeherder/commits{/sha}","git_commits_url":"https://api.github.com/repos/rwood-moz/treeherder/git/commits{/sha}","comments_url":"https://api.github.com/repos/rwood-moz/treeherder/comments{/number}","issue_comment_url":"https://api.github.com/repos/rwood-moz/treeherder/issues/comments{/number}","contents_url":"https://api.github.com/repos/rwood-moz/treeherder/contents/{+path}","compare_url":"https://api.github.com/repos/rwood-moz/treeherder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rwood-moz/treeherder/merges","archive_url":"https://api.github.com/repos/rwood-moz/treeherder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rwood-moz/treeherder/downloads","issues_url":"https://api.github.com/repos/rwood-moz/treeherder/issues{/number}","pulls_url":"https://api.github.com/repos/rwood-moz/treeherder/pulls{/number}","milestones_url":"https://api.github.com/repos/rwood-moz/treeherder/milestones{/number}","notifications_url":"https://api.github.com/repos/rwood-moz/treeherder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rwood-moz/treeherder/labels{/name}","releases_url":"https://api.github.com/repos/rwood-moz/treeherder/releases{/id}","deployments_url":"https://api.github.com/repos/rwood-moz/treeherder/deployments","created_at":"2016-07-21T19:58:07Z","updated_at":"2016-07-21T19:58:09Z","pushed_at":"2016-07-27T20:45:43Z","git_url":"git://github.com/rwood-moz/treeherder.git","ssh_url":"git@github.com:rwood-moz/treeherder.git","clone_url":"https://github.com/rwood-moz/treeherder.git","svn_url":"https://github.com/rwood-moz/treeherder","homepage":"https://wiki.mozilla.org/EngineeringProductivity/Projects/Treeherder","size":43002,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"5da09daa72121d031e51ddfa4adca99d838eb4ac","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":8463294,"name":"treeherder","full_name":"mozilla/treeherder","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/treeherder","description":"Dashboard & service 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":"2016-07-22T05:12:50Z","pushed_at":"2016-07-28T15:45:24Z","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":399389,"stargazers_count":64,"watchers_count":64,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":109,"mirror_url":null,"open_issues_count":31,"forks":109,"open_issues":31,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/1741"},"html":{"href":"https://github.com/mozilla/treeherder/pull/1741"},"issue":{"href":"https://api.github.com/repos/mozilla/treeherder/issues/1741"},"comments":{"href":"https://api.github.com/repos/mozilla/treeherder/issues/1741/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/1741/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/treeherder/pulls/1741/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/treeherder/statuses/ac84d8f99a388267a9493701234fedc5b4754129"}}}}
{"actor":{"display_login":"wlach"}}