{"action":"created","comment":{"url":"https://api.github.com/repos/devtools-html/perf.html/pulls/comments/111443950","pull_request_review_id":32692084,"id":111443950,"diff_hunk":"@@ -28,26 +57,31 @@ class ProfileViewWhenReadyImpl extends Component {\n \n   render() {\n     const { view, dataSource } = this.props;\n-    switch (view) {\n+    switch (view.step) {\n       case 'INITIALIZING': {\n-        switch (dataSource) {\n-          case 'none':\n-            return <Home />;\n-          case 'from-addon':\n-            return <div>Retrieving profile from the gecko profiler addon...</div>;\n-          case 'from-file':\n-            return <div>Reading the file and parsing the profile in it...</div>;\n-          case 'local':\n-            return <div>Not implemented yet.</div>;\n-          case 'public':\n-            return <div>Retrieving profile from the public profile store...</div>;\n-          default:\n-            return <div>View not found.</div>;\n+        if (dataSource === 'none') {\n+          return <Home />;\n+        }\n+\n+        const message = LOADING_MESSAGES[dataSource] || 'View not found';\n+        let additionalMessage = null;\n+        if (view.additionalData && view.additionalData.attempt) {\n+          const attempt = view.additionalData.attempt;\n+          additionalMessage = `Tried ${fewTimes(attempt.count)} out of ${attempt.total}.`;\n         }\n+\n+        return (\n+          <div>\n+            <div>{ message }</div>\n+            { additionalMessage && <div>{ additionalMessage }</div>}\n+          </div>\n+        );\n       }\n+      case 'FATAL_ERROR':\n+        return <div>Couldn't load the profile from the store.</div>;","path":"src/content/containers/Root.js","position":76,"original_position":76,"commit_id":"90062d001a97f0dc6654cb84871e802b80463603","original_commit_id":"90062d001a97f0dc6654cb84871e802b80463603","user":{"login":"julienw","id":454175,"avatar_url":"https://avatars3.githubusercontent.com/u/454175?v=3","gravatar_id":"","url":"https://api.github.com/users/julienw","html_url":"https://github.com/julienw","followers_url":"https://api.github.com/users/julienw/followers","following_url":"https://api.github.com/users/julienw/following{/other_user}","gists_url":"https://api.github.com/users/julienw/gists{/gist_id}","starred_url":"https://api.github.com/users/julienw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienw/subscriptions","organizations_url":"https://api.github.com/users/julienw/orgs","repos_url":"https://api.github.com/users/julienw/repos","events_url":"https://api.github.com/users/julienw/events{/privacy}","received_events_url":"https://api.github.com/users/julienw/received_events","type":"User","site_admin":false},"body":"github doesn't like this but this seems OK; any idea how to overcome the issue ?","created_at":"2017-04-13T17:32:05Z","updated_at":"2017-04-13T17:32:06Z","html_url":"https://github.com/devtools-html/perf.html/pull/264#discussion_r111443950","pull_request_url":"https://api.github.com/repos/devtools-html/perf.html/pulls/264","_links":{"self":{"href":"https://api.github.com/repos/devtools-html/perf.html/pulls/comments/111443950"},"html":{"href":"https://github.com/devtools-html/perf.html/pull/264#discussion_r111443950"},"pull_request":{"href":"https://api.github.com/repos/devtools-html/perf.html/pulls/264"}}},"pull_request":{"url":"https://api.github.com/repos/devtools-html/perf.html/pulls/264","id":115805746,"html_url":"https://github.com/devtools-html/perf.html/pull/264","diff_url":"https://github.com/devtools-html/perf.html/pull/264.diff","patch_url":"https://github.com/devtools-html/perf.html/pull/264.patch","issue_url":"https://api.github.com/repos/devtools-html/perf.html/issues/264","number":264,"state":"open","locked":false,"title":"[WIP] If the profile was not found in the profile store (on the server), sh…","user":{"login":"julienw","id":454175,"avatar_url":"https://avatars3.githubusercontent.com/u/454175?v=3","gravatar_id":"","url":"https://api.github.com/users/julienw","html_url":"https://github.com/julienw","followers_url":"https://api.github.com/users/julienw/followers","following_url":"https://api.github.com/users/julienw/following{/other_user}","gists_url":"https://api.github.com/users/julienw/gists{/gist_id}","starred_url":"https://api.github.com/users/julienw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienw/subscriptions","organizations_url":"https://api.github.com/users/julienw/orgs","repos_url":"https://api.github.com/users/julienw/repos","events_url":"https://api.github.com/users/julienw/events{/privacy}","received_events_url":"https://api.github.com/users/julienw/received_events","type":"User","site_admin":false},"body":"…ow a message and keep re-requesting it.\r\n\r\nCloses #250","created_at":"2017-04-13T17:31:37Z","updated_at":"2017-04-13T17:32:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26c44afcd2fa2bd589e4aa3aa979267b76162c53","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/devtools-html/perf.html/pulls/264/commits","review_comments_url":"https://api.github.com/repos/devtools-html/perf.html/pulls/264/comments","review_comment_url":"https://api.github.com/repos/devtools-html/perf.html/pulls/comments{/number}","comments_url":"https://api.github.com/repos/devtools-html/perf.html/issues/264/comments","statuses_url":"https://api.github.com/repos/devtools-html/perf.html/statuses/90062d001a97f0dc6654cb84871e802b80463603","head":{"label":"julienw:250-rerequest-profile-in-store","ref":"250-rerequest-profile-in-store","sha":"90062d001a97f0dc6654cb84871e802b80463603","user":{"login":"julienw","id":454175,"avatar_url":"https://avatars3.githubusercontent.com/u/454175?v=3","gravatar_id":"","url":"https://api.github.com/users/julienw","html_url":"https://github.com/julienw","followers_url":"https://api.github.com/users/julienw/followers","following_url":"https://api.github.com/users/julienw/following{/other_user}","gists_url":"https://api.github.com/users/julienw/gists{/gist_id}","starred_url":"https://api.github.com/users/julienw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienw/subscriptions","organizations_url":"https://api.github.com/users/julienw/orgs","repos_url":"https://api.github.com/users/julienw/repos","events_url":"https://api.github.com/users/julienw/events{/privacy}","received_events_url":"https://api.github.com/users/julienw/received_events","type":"User","site_admin":false},"repo":{"id":85606366,"name":"perf.html","full_name":"julienw/perf.html","owner":{"login":"julienw","id":454175,"avatar_url":"https://avatars3.githubusercontent.com/u/454175?v=3","gravatar_id":"","url":"https://api.github.com/users/julienw","html_url":"https://github.com/julienw","followers_url":"https://api.github.com/users/julienw/followers","following_url":"https://api.github.com/users/julienw/following{/other_user}","gists_url":"https://api.github.com/users/julienw/gists{/gist_id}","starred_url":"https://api.github.com/users/julienw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienw/subscriptions","organizations_url":"https://api.github.com/users/julienw/orgs","repos_url":"https://api.github.com/users/julienw/repos","events_url":"https://api.github.com/users/julienw/events{/privacy}","received_events_url":"https://api.github.com/users/julienw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/julienw/perf.html","description":"Firefox Performance tools for the web, by the web 🛥","fork":true,"url":"https://api.github.com/repos/julienw/perf.html","forks_url":"https://api.github.com/repos/julienw/perf.html/forks","keys_url":"https://api.github.com/repos/julienw/perf.html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/julienw/perf.html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/julienw/perf.html/teams","hooks_url":"https://api.github.com/repos/julienw/perf.html/hooks","issue_events_url":"https://api.github.com/repos/julienw/perf.html/issues/events{/number}","events_url":"https://api.github.com/repos/julienw/perf.html/events","assignees_url":"https://api.github.com/repos/julienw/perf.html/assignees{/user}","branches_url":"https://api.github.com/repos/julienw/perf.html/branches{/branch}","tags_url":"https://api.github.com/repos/julienw/perf.html/tags","blobs_url":"https://api.github.com/repos/julienw/perf.html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/julienw/perf.html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/julienw/perf.html/git/refs{/sha}","trees_url":"https://api.github.com/repos/julienw/perf.html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/julienw/perf.html/statuses/{sha}","languages_url":"https://api.github.com/repos/julienw/perf.html/languages","stargazers_url":"https://api.github.com/repos/julienw/perf.html/stargazers","contributors_url":"https://api.github.com/repos/julienw/perf.html/contributors","subscribers_url":"https://api.github.com/repos/julienw/perf.html/subscribers","subscription_url":"https://api.github.com/repos/julienw/perf.html/subscription","commits_url":"https://api.github.com/repos/julienw/perf.html/commits{/sha}","git_commits_url":"https://api.github.com/repos/julienw/perf.html/git/commits{/sha}","comments_url":"https://api.github.com/repos/julienw/perf.html/comments{/number}","issue_comment_url":"https://api.github.com/repos/julienw/perf.html/issues/comments{/number}","contents_url":"https://api.github.com/repos/julienw/perf.html/contents/{+path}","compare_url":"https://api.github.com/repos/julienw/perf.html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/julienw/perf.html/merges","archive_url":"https://api.github.com/repos/julienw/perf.html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/julienw/perf.html/downloads","issues_url":"https://api.github.com/repos/julienw/perf.html/issues{/number}","pulls_url":"https://api.github.com/repos/julienw/perf.html/pulls{/number}","milestones_url":"https://api.github.com/repos/julienw/perf.html/milestones{/number}","notifications_url":"https://api.github.com/repos/julienw/perf.html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/julienw/perf.html/labels{/name}","releases_url":"https://api.github.com/repos/julienw/perf.html/releases{/id}","deployments_url":"https://api.github.com/repos/julienw/perf.html/deployments","created_at":"2017-03-20T17:30:11Z","updated_at":"2017-03-20T17:30:13Z","pushed_at":"2017-04-13T17:15:20Z","git_url":"git://github.com/julienw/perf.html.git","ssh_url":"git@github.com:julienw/perf.html.git","clone_url":"https://github.com/julienw/perf.html.git","svn_url":"https://github.com/julienw/perf.html","homepage":"https://perf-html.io/","size":2824,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"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":"devtools-html:master","ref":"master","sha":"d7a86dbe95fa6c9f4d2fda685d146b1da897d6a6","user":{"login":"devtools-html","id":19979421,"avatar_url":"https://avatars1.githubusercontent.com/u/19979421?v=3","gravatar_id":"","url":"https://api.github.com/users/devtools-html","html_url":"https://github.com/devtools-html","followers_url":"https://api.github.com/users/devtools-html/followers","following_url":"https://api.github.com/users/devtools-html/following{/other_user}","gists_url":"https://api.github.com/users/devtools-html/gists{/gist_id}","starred_url":"https://api.github.com/users/devtools-html/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devtools-html/subscriptions","organizations_url":"https://api.github.com/users/devtools-html/orgs","repos_url":"https://api.github.com/users/devtools-html/repos","events_url":"https://api.github.com/users/devtools-html/events{/privacy}","received_events_url":"https://api.github.com/users/devtools-html/received_events","type":"Organization","site_admin":false},"repo":{"id":3607308,"name":"perf.html","full_name":"devtools-html/perf.html","owner":{"login":"devtools-html","id":19979421,"avatar_url":"https://avatars1.githubusercontent.com/u/19979421?v=3","gravatar_id":"","url":"https://api.github.com/users/devtools-html","html_url":"https://github.com/devtools-html","followers_url":"https://api.github.com/users/devtools-html/followers","following_url":"https://api.github.com/users/devtools-html/following{/other_user}","gists_url":"https://api.github.com/users/devtools-html/gists{/gist_id}","starred_url":"https://api.github.com/users/devtools-html/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devtools-html/subscriptions","organizations_url":"https://api.github.com/users/devtools-html/orgs","repos_url":"https://api.github.com/users/devtools-html/repos","events_url":"https://api.github.com/users/devtools-html/events{/privacy}","received_events_url":"https://api.github.com/users/devtools-html/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/devtools-html/perf.html","description":"Firefox Performance tools for the web, by the web 🛥","fork":false,"url":"https://api.github.com/repos/devtools-html/perf.html","forks_url":"https://api.github.com/repos/devtools-html/perf.html/forks","keys_url":"https://api.github.com/repos/devtools-html/perf.html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devtools-html/perf.html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devtools-html/perf.html/teams","hooks_url":"https://api.github.com/repos/devtools-html/perf.html/hooks","issue_events_url":"https://api.github.com/repos/devtools-html/perf.html/issues/events{/number}","events_url":"https://api.github.com/repos/devtools-html/perf.html/events","assignees_url":"https://api.github.com/repos/devtools-html/perf.html/assignees{/user}","branches_url":"https://api.github.com/repos/devtools-html/perf.html/branches{/branch}","tags_url":"https://api.github.com/repos/devtools-html/perf.html/tags","blobs_url":"https://api.github.com/repos/devtools-html/perf.html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devtools-html/perf.html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devtools-html/perf.html/git/refs{/sha}","trees_url":"https://api.github.com/repos/devtools-html/perf.html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devtools-html/perf.html/statuses/{sha}","languages_url":"https://api.github.com/repos/devtools-html/perf.html/languages","stargazers_url":"https://api.github.com/repos/devtools-html/perf.html/stargazers","contributors_url":"https://api.github.com/repos/devtools-html/perf.html/contributors","subscribers_url":"https://api.github.com/repos/devtools-html/perf.html/subscribers","subscription_url":"https://api.github.com/repos/devtools-html/perf.html/subscription","commits_url":"https://api.github.com/repos/devtools-html/perf.html/commits{/sha}","git_commits_url":"https://api.github.com/repos/devtools-html/perf.html/git/commits{/sha}","comments_url":"https://api.github.com/repos/devtools-html/perf.html/comments{/number}","issue_comment_url":"https://api.github.com/repos/devtools-html/perf.html/issues/comments{/number}","contents_url":"https://api.github.com/repos/devtools-html/perf.html/contents/{+path}","compare_url":"https://api.github.com/repos/devtools-html/perf.html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devtools-html/perf.html/merges","archive_url":"https://api.github.com/repos/devtools-html/perf.html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devtools-html/perf.html/downloads","issues_url":"https://api.github.com/repos/devtools-html/perf.html/issues{/number}","pulls_url":"https://api.github.com/repos/devtools-html/perf.html/pulls{/number}","milestones_url":"https://api.github.com/repos/devtools-html/perf.html/milestones{/number}","notifications_url":"https://api.github.com/repos/devtools-html/perf.html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devtools-html/perf.html/labels{/name}","releases_url":"https://api.github.com/repos/devtools-html/perf.html/releases{/id}","deployments_url":"https://api.github.com/repos/devtools-html/perf.html/deployments","created_at":"2012-03-02T23:55:22Z","updated_at":"2017-04-11T14:58:19Z","pushed_at":"2017-04-13T17:31:38Z","git_url":"git://github.com/devtools-html/perf.html.git","ssh_url":"git@github.com:devtools-html/perf.html.git","clone_url":"https://github.com/devtools-html/perf.html.git","svn_url":"https://github.com/devtools-html/perf.html","homepage":"https://perf-html.io/","size":2775,"stargazers_count":42,"watchers_count":42,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":118,"forks":12,"open_issues":118,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/devtools-html/perf.html/pulls/264"},"html":{"href":"https://github.com/devtools-html/perf.html/pull/264"},"issue":{"href":"https://api.github.com/repos/devtools-html/perf.html/issues/264"},"comments":{"href":"https://api.github.com/repos/devtools-html/perf.html/issues/264/comments"},"review_comments":{"href":"https://api.github.com/repos/devtools-html/perf.html/pulls/264/comments"},"review_comment":{"href":"https://api.github.com/repos/devtools-html/perf.html/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/devtools-html/perf.html/pulls/264/commits"},"statuses":{"href":"https://api.github.com/repos/devtools-html/perf.html/statuses/90062d001a97f0dc6654cb84871e802b80463603"}}}}
{"actor":{"display_login":"julienw"}}