{"action":"created","comment":{"url":"https://api.github.com/repos/hammerlab/pileup.js/pulls/comments/32992172","id":32992172,"diff_hunk":"@@ -150,6 +152,21 @@ function altContigName(contig: string): string {\n   }\n }\n \n+/**\n+ * Pipe all promise events through a deferred object.\n+ * This is similar to deferred.resolve(promise), except that it allows progress","path":"src/utils.js","position":15,"original_position":15,"commit_id":"1e661f7e9319ea65c8ba130e5009ff98ebb6dce8","original_commit_id":"c695b1ae838f532d632c213784c603e58b995a42","user":{"login":"danvk","id":98301,"avatar_url":"https://avatars.githubusercontent.com/u/98301?v=3","gravatar_id":"","url":"https://api.github.com/users/danvk","html_url":"https://github.com/danvk","followers_url":"https://api.github.com/users/danvk/followers","following_url":"https://api.github.com/users/danvk/following{/other_user}","gists_url":"https://api.github.com/users/danvk/gists{/gist_id}","starred_url":"https://api.github.com/users/danvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danvk/subscriptions","organizations_url":"https://api.github.com/users/danvk/orgs","repos_url":"https://api.github.com/users/danvk/repos","events_url":"https://api.github.com/users/danvk/events{/privacy}","received_events_url":"https://api.github.com/users/danvk/received_events","type":"User","site_admin":false},"body":"I believe this should be exactly the same as `deferred.resolve(promise)`, which resolves/rejects the deferred with whatever the promise eventually winds up as. Except for the notifications part.","created_at":"2015-06-22T22:37:36Z","updated_at":"2015-06-22T22:37:36Z","html_url":"https://github.com/hammerlab/pileup.js/pull/203#discussion_r32992172","pull_request_url":"https://api.github.com/repos/hammerlab/pileup.js/pulls/203","_links":{"self":{"href":"https://api.github.com/repos/hammerlab/pileup.js/pulls/comments/32992172"},"html":{"href":"https://github.com/hammerlab/pileup.js/pull/203#discussion_r32992172"},"pull_request":{"href":"https://api.github.com/repos/hammerlab/pileup.js/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/hammerlab/pileup.js/pulls/203","id":38283510,"html_url":"https://github.com/hammerlab/pileup.js/pull/203","diff_url":"https://github.com/hammerlab/pileup.js/pull/203.diff","patch_url":"https://github.com/hammerlab/pileup.js/pull/203.patch","issue_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/203","number":203,"state":"open","locked":false,"title":"Fire progress events for BAI fetching","user":{"login":"danvk","id":98301,"avatar_url":"https://avatars.githubusercontent.com/u/98301?v=3","gravatar_id":"","url":"https://api.github.com/users/danvk","html_url":"https://github.com/danvk","followers_url":"https://api.github.com/users/danvk/followers","following_url":"https://api.github.com/users/danvk/following{/other_user}","gists_url":"https://api.github.com/users/danvk/gists{/gist_id}","starred_url":"https://api.github.com/users/danvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danvk/subscriptions","organizations_url":"https://api.github.com/users/danvk/orgs","repos_url":"https://api.github.com/users/danvk/repos","events_url":"https://api.github.com/users/danvk/events{/privacy}","received_events_url":"https://api.github.com/users/danvk/received_events","type":"User","site_admin":false},"body":"Fetching the BAI file can be a significant part of the load time for pileup tracks, especially if there are no index chunks available. This will give more immediate feedback to the user that activity is happening.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/hammerlab/pileup.js/203)\n<!-- Reviewable:end -->\n","created_at":"2015-06-22T22:26:02Z","updated_at":"2015-06-22T22:37:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22e6d2620822d212b9e3e075f3bf984047f3b739","assignee":{"login":"ihodes","id":167803,"avatar_url":"https://avatars.githubusercontent.com/u/167803?v=3","gravatar_id":"","url":"https://api.github.com/users/ihodes","html_url":"https://github.com/ihodes","followers_url":"https://api.github.com/users/ihodes/followers","following_url":"https://api.github.com/users/ihodes/following{/other_user}","gists_url":"https://api.github.com/users/ihodes/gists{/gist_id}","starred_url":"https://api.github.com/users/ihodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihodes/subscriptions","organizations_url":"https://api.github.com/users/ihodes/orgs","repos_url":"https://api.github.com/users/ihodes/repos","events_url":"https://api.github.com/users/ihodes/events{/privacy}","received_events_url":"https://api.github.com/users/ihodes/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/hammerlab/pileup.js/pulls/203/commits","review_comments_url":"https://api.github.com/repos/hammerlab/pileup.js/pulls/203/comments","review_comment_url":"https://api.github.com/repos/hammerlab/pileup.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/203/comments","statuses_url":"https://api.github.com/repos/hammerlab/pileup.js/statuses/1e661f7e9319ea65c8ba130e5009ff98ebb6dce8","head":{"label":"hammerlab:track-bai-load","ref":"track-bai-load","sha":"1e661f7e9319ea65c8ba130e5009ff98ebb6dce8","user":{"login":"hammerlab","id":6563873,"avatar_url":"https://avatars.githubusercontent.com/u/6563873?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerlab","html_url":"https://github.com/hammerlab","followers_url":"https://api.github.com/users/hammerlab/followers","following_url":"https://api.github.com/users/hammerlab/following{/other_user}","gists_url":"https://api.github.com/users/hammerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerlab/subscriptions","organizations_url":"https://api.github.com/users/hammerlab/orgs","repos_url":"https://api.github.com/users/hammerlab/repos","events_url":"https://api.github.com/users/hammerlab/events{/privacy}","received_events_url":"https://api.github.com/users/hammerlab/received_events","type":"Organization","site_admin":false},"repo":{"id":29933736,"name":"pileup.js","full_name":"hammerlab/pileup.js","owner":{"login":"hammerlab","id":6563873,"avatar_url":"https://avatars.githubusercontent.com/u/6563873?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerlab","html_url":"https://github.com/hammerlab","followers_url":"https://api.github.com/users/hammerlab/followers","following_url":"https://api.github.com/users/hammerlab/following{/other_user}","gists_url":"https://api.github.com/users/hammerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerlab/subscriptions","organizations_url":"https://api.github.com/users/hammerlab/orgs","repos_url":"https://api.github.com/users/hammerlab/repos","events_url":"https://api.github.com/users/hammerlab/events{/privacy}","received_events_url":"https://api.github.com/users/hammerlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hammerlab/pileup.js","description":"Interactive in-browser track viewer","fork":false,"url":"https://api.github.com/repos/hammerlab/pileup.js","forks_url":"https://api.github.com/repos/hammerlab/pileup.js/forks","keys_url":"https://api.github.com/repos/hammerlab/pileup.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hammerlab/pileup.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hammerlab/pileup.js/teams","hooks_url":"https://api.github.com/repos/hammerlab/pileup.js/hooks","issue_events_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/events{/number}","events_url":"https://api.github.com/repos/hammerlab/pileup.js/events","assignees_url":"https://api.github.com/repos/hammerlab/pileup.js/assignees{/user}","branches_url":"https://api.github.com/repos/hammerlab/pileup.js/branches{/branch}","tags_url":"https://api.github.com/repos/hammerlab/pileup.js/tags","blobs_url":"https://api.github.com/repos/hammerlab/pileup.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hammerlab/pileup.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hammerlab/pileup.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/hammerlab/pileup.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hammerlab/pileup.js/statuses/{sha}","languages_url":"https://api.github.com/repos/hammerlab/pileup.js/languages","stargazers_url":"https://api.github.com/repos/hammerlab/pileup.js/stargazers","contributors_url":"https://api.github.com/repos/hammerlab/pileup.js/contributors","subscribers_url":"https://api.github.com/repos/hammerlab/pileup.js/subscribers","subscription_url":"https://api.github.com/repos/hammerlab/pileup.js/subscription","commits_url":"https://api.github.com/repos/hammerlab/pileup.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/hammerlab/pileup.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/hammerlab/pileup.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/hammerlab/pileup.js/contents/{+path}","compare_url":"https://api.github.com/repos/hammerlab/pileup.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hammerlab/pileup.js/merges","archive_url":"https://api.github.com/repos/hammerlab/pileup.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hammerlab/pileup.js/downloads","issues_url":"https://api.github.com/repos/hammerlab/pileup.js/issues{/number}","pulls_url":"https://api.github.com/repos/hammerlab/pileup.js/pulls{/number}","milestones_url":"https://api.github.com/repos/hammerlab/pileup.js/milestones{/number}","notifications_url":"https://api.github.com/repos/hammerlab/pileup.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hammerlab/pileup.js/labels{/name}","releases_url":"https://api.github.com/repos/hammerlab/pileup.js/releases{/id}","created_at":"2015-01-27T20:36:43Z","updated_at":"2015-06-22T15:43:34Z","pushed_at":"2015-06-22T22:36:15Z","git_url":"git://github.com/hammerlab/pileup.js.git","ssh_url":"git@github.com:hammerlab/pileup.js.git","clone_url":"https://github.com/hammerlab/pileup.js.git","svn_url":"https://github.com/hammerlab/pileup.js","homepage":null,"size":4977,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":56,"forks":3,"open_issues":56,"watchers":20,"default_branch":"master"}},"base":{"label":"hammerlab:master","ref":"master","sha":"5f067b8a8e1285860aba1685835007f715d170b3","user":{"login":"hammerlab","id":6563873,"avatar_url":"https://avatars.githubusercontent.com/u/6563873?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerlab","html_url":"https://github.com/hammerlab","followers_url":"https://api.github.com/users/hammerlab/followers","following_url":"https://api.github.com/users/hammerlab/following{/other_user}","gists_url":"https://api.github.com/users/hammerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerlab/subscriptions","organizations_url":"https://api.github.com/users/hammerlab/orgs","repos_url":"https://api.github.com/users/hammerlab/repos","events_url":"https://api.github.com/users/hammerlab/events{/privacy}","received_events_url":"https://api.github.com/users/hammerlab/received_events","type":"Organization","site_admin":false},"repo":{"id":29933736,"name":"pileup.js","full_name":"hammerlab/pileup.js","owner":{"login":"hammerlab","id":6563873,"avatar_url":"https://avatars.githubusercontent.com/u/6563873?v=3","gravatar_id":"","url":"https://api.github.com/users/hammerlab","html_url":"https://github.com/hammerlab","followers_url":"https://api.github.com/users/hammerlab/followers","following_url":"https://api.github.com/users/hammerlab/following{/other_user}","gists_url":"https://api.github.com/users/hammerlab/gists{/gist_id}","starred_url":"https://api.github.com/users/hammerlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammerlab/subscriptions","organizations_url":"https://api.github.com/users/hammerlab/orgs","repos_url":"https://api.github.com/users/hammerlab/repos","events_url":"https://api.github.com/users/hammerlab/events{/privacy}","received_events_url":"https://api.github.com/users/hammerlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hammerlab/pileup.js","description":"Interactive in-browser track viewer","fork":false,"url":"https://api.github.com/repos/hammerlab/pileup.js","forks_url":"https://api.github.com/repos/hammerlab/pileup.js/forks","keys_url":"https://api.github.com/repos/hammerlab/pileup.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hammerlab/pileup.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hammerlab/pileup.js/teams","hooks_url":"https://api.github.com/repos/hammerlab/pileup.js/hooks","issue_events_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/events{/number}","events_url":"https://api.github.com/repos/hammerlab/pileup.js/events","assignees_url":"https://api.github.com/repos/hammerlab/pileup.js/assignees{/user}","branches_url":"https://api.github.com/repos/hammerlab/pileup.js/branches{/branch}","tags_url":"https://api.github.com/repos/hammerlab/pileup.js/tags","blobs_url":"https://api.github.com/repos/hammerlab/pileup.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hammerlab/pileup.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hammerlab/pileup.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/hammerlab/pileup.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hammerlab/pileup.js/statuses/{sha}","languages_url":"https://api.github.com/repos/hammerlab/pileup.js/languages","stargazers_url":"https://api.github.com/repos/hammerlab/pileup.js/stargazers","contributors_url":"https://api.github.com/repos/hammerlab/pileup.js/contributors","subscribers_url":"https://api.github.com/repos/hammerlab/pileup.js/subscribers","subscription_url":"https://api.github.com/repos/hammerlab/pileup.js/subscription","commits_url":"https://api.github.com/repos/hammerlab/pileup.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/hammerlab/pileup.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/hammerlab/pileup.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/hammerlab/pileup.js/contents/{+path}","compare_url":"https://api.github.com/repos/hammerlab/pileup.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hammerlab/pileup.js/merges","archive_url":"https://api.github.com/repos/hammerlab/pileup.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hammerlab/pileup.js/downloads","issues_url":"https://api.github.com/repos/hammerlab/pileup.js/issues{/number}","pulls_url":"https://api.github.com/repos/hammerlab/pileup.js/pulls{/number}","milestones_url":"https://api.github.com/repos/hammerlab/pileup.js/milestones{/number}","notifications_url":"https://api.github.com/repos/hammerlab/pileup.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hammerlab/pileup.js/labels{/name}","releases_url":"https://api.github.com/repos/hammerlab/pileup.js/releases{/id}","created_at":"2015-01-27T20:36:43Z","updated_at":"2015-06-22T15:43:34Z","pushed_at":"2015-06-22T22:36:15Z","git_url":"git://github.com/hammerlab/pileup.js.git","ssh_url":"git@github.com:hammerlab/pileup.js.git","clone_url":"https://github.com/hammerlab/pileup.js.git","svn_url":"https://github.com/hammerlab/pileup.js","homepage":null,"size":4977,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":56,"forks":3,"open_issues":56,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hammerlab/pileup.js/pulls/203"},"html":{"href":"https://github.com/hammerlab/pileup.js/pull/203"},"issue":{"href":"https://api.github.com/repos/hammerlab/pileup.js/issues/203"},"comments":{"href":"https://api.github.com/repos/hammerlab/pileup.js/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/hammerlab/pileup.js/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/hammerlab/pileup.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hammerlab/pileup.js/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/hammerlab/pileup.js/statuses/1e661f7e9319ea65c8ba130e5009ff98ebb6dce8"}}}}