{"action":"created","comment":{"url":"https://api.github.com/repos/sourcegraph/appdash/pulls/comments/50447897","id":50447897,"diff_hunk":"@@ -104,6 +105,7 @@ func (a *App) d3timelineInner(t *appdash.Trace, depth int) ([]timelineItem, erro\n \t\tmsec := time.Duration(item.Times[0].End-item.Times[0].Start) * time.Millisecond\n \t\tif msec > 0 {\n \t\t\tts.Label = fmt.Sprintf(\"%s (%s)\", item.Label, msec)\n+\t\t\tts.Latency = int64(msec)","path":"traceapp/vis.go","position":18,"original_position":18,"commit_id":"a38920e0cbbf3deaf0710a45bf2f00c67a3ed6ac","original_commit_id":"a38920e0cbbf3deaf0710a45bf2f00c67a3ed6ac","user":{"login":"slimsag","id":3173176,"avatar_url":"https://avatars.githubusercontent.com/u/3173176?v=3","gravatar_id":"","url":"https://api.github.com/users/slimsag","html_url":"https://github.com/slimsag","followers_url":"https://api.github.com/users/slimsag/followers","following_url":"https://api.github.com/users/slimsag/following{/other_user}","gists_url":"https://api.github.com/users/slimsag/gists{/gist_id}","starred_url":"https://api.github.com/users/slimsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimsag/subscriptions","organizations_url":"https://api.github.com/users/slimsag/orgs","repos_url":"https://api.github.com/users/slimsag/repos","events_url":"https://api.github.com/users/slimsag/events{/privacy}","received_events_url":"https://api.github.com/users/slimsag/received_events","type":"User","site_admin":false},"body":"s/latency/duration","created_at":"2016-01-21T19:15:12Z","updated_at":"2016-01-21T19:15:12Z","html_url":"https://github.com/sourcegraph/appdash/pull/97#discussion_r50447897","pull_request_url":"https://api.github.com/repos/sourcegraph/appdash/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/sourcegraph/appdash/pulls/comments/50447897"},"html":{"href":"https://github.com/sourcegraph/appdash/pull/97#discussion_r50447897"},"pull_request":{"href":"https://api.github.com/repos/sourcegraph/appdash/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/sourcegraph/appdash/pulls/97","id":55999399,"html_url":"https://github.com/sourcegraph/appdash/pull/97","diff_url":"https://github.com/sourcegraph/appdash/pull/97.diff","patch_url":"https://github.com/sourcegraph/appdash/pull/97.patch","issue_url":"https://api.github.com/repos/sourcegraph/appdash/issues/97","number":97,"state":"open","locked":false,"title":"Added sort buttons on trace view","user":{"login":"evalphobia","id":2827521,"avatar_url":"https://avatars.githubusercontent.com/u/2827521?v=3","gravatar_id":"","url":"https://api.github.com/users/evalphobia","html_url":"https://github.com/evalphobia","followers_url":"https://api.github.com/users/evalphobia/followers","following_url":"https://api.github.com/users/evalphobia/following{/other_user}","gists_url":"https://api.github.com/users/evalphobia/gists{/gist_id}","starred_url":"https://api.github.com/users/evalphobia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evalphobia/subscriptions","organizations_url":"https://api.github.com/users/evalphobia/orgs","repos_url":"https://api.github.com/users/evalphobia/repos","events_url":"https://api.github.com/users/evalphobia/events{/privacy}","received_events_url":"https://api.github.com/users/evalphobia/received_events","type":"User","site_admin":false},"body":"This PR sort feature on trace view.\r\n\r\n1. sort order by `starting_time`\r\n2. sort order by `ending_time`\r\n3. sort order by `latency` (added new filed)\r\n4. sort order by `label` (alphabetically)\r\n\r\nEach sort is worked as `ascending order` first click and `descending order` by clicking same button.\r\n","created_at":"2016-01-14T07:02:51Z","updated_at":"2016-01-21T19:15:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71856c82e955be73e29c05892c6256568dea49e1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sourcegraph/appdash/pulls/97/commits","review_comments_url":"https://api.github.com/repos/sourcegraph/appdash/pulls/97/comments","review_comment_url":"https://api.github.com/repos/sourcegraph/appdash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sourcegraph/appdash/issues/97/comments","statuses_url":"https://api.github.com/repos/sourcegraph/appdash/statuses/a38920e0cbbf3deaf0710a45bf2f00c67a3ed6ac","head":{"label":"evalphobia:feature/sort-timeline","ref":"feature/sort-timeline","sha":"a38920e0cbbf3deaf0710a45bf2f00c67a3ed6ac","user":{"login":"evalphobia","id":2827521,"avatar_url":"https://avatars.githubusercontent.com/u/2827521?v=3","gravatar_id":"","url":"https://api.github.com/users/evalphobia","html_url":"https://github.com/evalphobia","followers_url":"https://api.github.com/users/evalphobia/followers","following_url":"https://api.github.com/users/evalphobia/following{/other_user}","gists_url":"https://api.github.com/users/evalphobia/gists{/gist_id}","starred_url":"https://api.github.com/users/evalphobia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evalphobia/subscriptions","organizations_url":"https://api.github.com/users/evalphobia/orgs","repos_url":"https://api.github.com/users/evalphobia/repos","events_url":"https://api.github.com/users/evalphobia/events{/privacy}","received_events_url":"https://api.github.com/users/evalphobia/received_events","type":"User","site_admin":false},"repo":{"id":48494098,"name":"appdash","full_name":"evalphobia/appdash","owner":{"login":"evalphobia","id":2827521,"avatar_url":"https://avatars.githubusercontent.com/u/2827521?v=3","gravatar_id":"","url":"https://api.github.com/users/evalphobia","html_url":"https://github.com/evalphobia","followers_url":"https://api.github.com/users/evalphobia/followers","following_url":"https://api.github.com/users/evalphobia/following{/other_user}","gists_url":"https://api.github.com/users/evalphobia/gists{/gist_id}","starred_url":"https://api.github.com/users/evalphobia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evalphobia/subscriptions","organizations_url":"https://api.github.com/users/evalphobia/orgs","repos_url":"https://api.github.com/users/evalphobia/repos","events_url":"https://api.github.com/users/evalphobia/events{/privacy}","received_events_url":"https://api.github.com/users/evalphobia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evalphobia/appdash","description":"Application tracing system for Go, based on Google's Dapper. Formerly known as apptrace.","fork":true,"url":"https://api.github.com/repos/evalphobia/appdash","forks_url":"https://api.github.com/repos/evalphobia/appdash/forks","keys_url":"https://api.github.com/repos/evalphobia/appdash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evalphobia/appdash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evalphobia/appdash/teams","hooks_url":"https://api.github.com/repos/evalphobia/appdash/hooks","issue_events_url":"https://api.github.com/repos/evalphobia/appdash/issues/events{/number}","events_url":"https://api.github.com/repos/evalphobia/appdash/events","assignees_url":"https://api.github.com/repos/evalphobia/appdash/assignees{/user}","branches_url":"https://api.github.com/repos/evalphobia/appdash/branches{/branch}","tags_url":"https://api.github.com/repos/evalphobia/appdash/tags","blobs_url":"https://api.github.com/repos/evalphobia/appdash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evalphobia/appdash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evalphobia/appdash/git/refs{/sha}","trees_url":"https://api.github.com/repos/evalphobia/appdash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evalphobia/appdash/statuses/{sha}","languages_url":"https://api.github.com/repos/evalphobia/appdash/languages","stargazers_url":"https://api.github.com/repos/evalphobia/appdash/stargazers","contributors_url":"https://api.github.com/repos/evalphobia/appdash/contributors","subscribers_url":"https://api.github.com/repos/evalphobia/appdash/subscribers","subscription_url":"https://api.github.com/repos/evalphobia/appdash/subscription","commits_url":"https://api.github.com/repos/evalphobia/appdash/commits{/sha}","git_commits_url":"https://api.github.com/repos/evalphobia/appdash/git/commits{/sha}","comments_url":"https://api.github.com/repos/evalphobia/appdash/comments{/number}","issue_comment_url":"https://api.github.com/repos/evalphobia/appdash/issues/comments{/number}","contents_url":"https://api.github.com/repos/evalphobia/appdash/contents/{+path}","compare_url":"https://api.github.com/repos/evalphobia/appdash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evalphobia/appdash/merges","archive_url":"https://api.github.com/repos/evalphobia/appdash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evalphobia/appdash/downloads","issues_url":"https://api.github.com/repos/evalphobia/appdash/issues{/number}","pulls_url":"https://api.github.com/repos/evalphobia/appdash/pulls{/number}","milestones_url":"https://api.github.com/repos/evalphobia/appdash/milestones{/number}","notifications_url":"https://api.github.com/repos/evalphobia/appdash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evalphobia/appdash/labels{/name}","releases_url":"https://api.github.com/repos/evalphobia/appdash/releases{/id}","created_at":"2015-12-23T14:19:40Z","updated_at":"2016-01-14T06:05:25Z","pushed_at":"2016-01-14T06:54:32Z","git_url":"git://github.com/evalphobia/appdash.git","ssh_url":"git@github.com:evalphobia/appdash.git","clone_url":"https://github.com/evalphobia/appdash.git","svn_url":"https://github.com/evalphobia/appdash","homepage":"https://sourcegraph.com/sourcegraph/appdash","size":464,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"sourcegraph:master","ref":"master","sha":"84f0569d9f76fa140bf22dd45ab978bba2cb31b0","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":26996090,"name":"appdash","full_name":"sourcegraph/appdash","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/appdash","description":"Application tracing system for Go, based on Google's Dapper. Formerly known as apptrace.","fork":false,"url":"https://api.github.com/repos/sourcegraph/appdash","forks_url":"https://api.github.com/repos/sourcegraph/appdash/forks","keys_url":"https://api.github.com/repos/sourcegraph/appdash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/appdash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/appdash/teams","hooks_url":"https://api.github.com/repos/sourcegraph/appdash/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/appdash/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/appdash/events","assignees_url":"https://api.github.com/repos/sourcegraph/appdash/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/appdash/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/appdash/tags","blobs_url":"https://api.github.com/repos/sourcegraph/appdash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/appdash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/appdash/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/appdash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/appdash/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/appdash/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/appdash/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/appdash/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/appdash/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/appdash/subscription","commits_url":"https://api.github.com/repos/sourcegraph/appdash/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/appdash/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/appdash/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/appdash/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/appdash/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/appdash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/appdash/merges","archive_url":"https://api.github.com/repos/sourcegraph/appdash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/appdash/downloads","issues_url":"https://api.github.com/repos/sourcegraph/appdash/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/appdash/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/appdash/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/appdash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/appdash/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/appdash/releases{/id}","created_at":"2014-11-22T10:47:38Z","updated_at":"2016-01-21T04:15:10Z","pushed_at":"2016-01-21T19:08:21Z","git_url":"git://github.com/sourcegraph/appdash.git","ssh_url":"git@github.com:sourcegraph/appdash.git","clone_url":"https://github.com/sourcegraph/appdash.git","svn_url":"https://github.com/sourcegraph/appdash","homepage":"https://sourcegraph.com/sourcegraph/appdash","size":474,"stargazers_count":363,"watchers_count":363,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":8,"forks":21,"open_issues":8,"watchers":363,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sourcegraph/appdash/pulls/97"},"html":{"href":"https://github.com/sourcegraph/appdash/pull/97"},"issue":{"href":"https://api.github.com/repos/sourcegraph/appdash/issues/97"},"comments":{"href":"https://api.github.com/repos/sourcegraph/appdash/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/sourcegraph/appdash/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/sourcegraph/appdash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sourcegraph/appdash/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/sourcegraph/appdash/statuses/a38920e0cbbf3deaf0710a45bf2f00c67a3ed6ac"}}}}