{"action":"created","comment":{"url":"https://api.github.com/repos/mitodl/odl-video-service/pulls/comments/184979919","pull_request_review_id":116278473,"id":184979919,"diff_hunk":"@@ -87,7 +88,14 @@ export class CollectionListPage extends React.Component<*, void> {\n       return null\n     }\n     if (currentPageData.status === \"ERROR\") {\n-      return <div className=\"collection-list-page-error\">Error!</div>\n+      const supportEmail = SETTINGS.support_email_address || \"\"\n+      return (\n+        <ErrorMessage>\n+          <p>Sorry, we were unable to load the data necessary to process your request. Please reload the page.</p>","path":"static/js/containers/CollectionListPage.js","position":16,"original_position":16,"commit_id":"db33f2b8160c622c6cd6a6834c4a31d22055b49a","original_commit_id":"db33f2b8160c622c6cd6a6834c4a31d22055b49a","user":{"login":"mbertrand","id":187676,"avatar_url":"https://avatars2.githubusercontent.com/u/187676?v=4","gravatar_id":"","url":"https://api.github.com/users/mbertrand","html_url":"https://github.com/mbertrand","followers_url":"https://api.github.com/users/mbertrand/followers","following_url":"https://api.github.com/users/mbertrand/following{/other_user}","gists_url":"https://api.github.com/users/mbertrand/gists{/gist_id}","starred_url":"https://api.github.com/users/mbertrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbertrand/subscriptions","organizations_url":"https://api.github.com/users/mbertrand/orgs","repos_url":"https://api.github.com/users/mbertrand/repos","events_url":"https://api.github.com/users/mbertrand/events{/privacy}","received_events_url":"https://api.github.com/users/mbertrand/received_events","type":"User","site_admin":false},"body":"This content is pretty generic, maybe it could be the default in the `ErrorMessage` component itself?  And customizable if we want to display something slightly different on certain pages?","created_at":"2018-04-30T13:02:36Z","updated_at":"2018-04-30T13:04:29Z","html_url":"https://github.com/mitodl/odl-video-service/pull/570#discussion_r184979919","pull_request_url":"https://api.github.com/repos/mitodl/odl-video-service/pulls/570","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mitodl/odl-video-service/pulls/comments/184979919"},"html":{"href":"https://github.com/mitodl/odl-video-service/pull/570#discussion_r184979919"},"pull_request":{"href":"https://api.github.com/repos/mitodl/odl-video-service/pulls/570"}}},"pull_request":{"url":"https://api.github.com/repos/mitodl/odl-video-service/pulls/570","id":184698287,"html_url":"https://github.com/mitodl/odl-video-service/pull/570","diff_url":"https://github.com/mitodl/odl-video-service/pull/570.diff","patch_url":"https://github.com/mitodl/odl-video-service/pull/570.patch","issue_url":"https://api.github.com/repos/mitodl/odl-video-service/issues/570","number":570,"state":"open","locked":false,"title":"add error message for collections page","user":{"login":"adorsk","id":307075,"avatar_url":"https://avatars1.githubusercontent.com/u/307075?v=4","gravatar_id":"","url":"https://api.github.com/users/adorsk","html_url":"https://github.com/adorsk","followers_url":"https://api.github.com/users/adorsk/followers","following_url":"https://api.github.com/users/adorsk/following{/other_user}","gists_url":"https://api.github.com/users/adorsk/gists{/gist_id}","starred_url":"https://api.github.com/users/adorsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adorsk/subscriptions","organizations_url":"https://api.github.com/users/adorsk/orgs","repos_url":"https://api.github.com/users/adorsk/repos","events_url":"https://api.github.com/users/adorsk/events{/privacy}","received_events_url":"https://api.github.com/users/adorsk/received_events","type":"User","site_admin":false},"body":"#### What are the relevant tickets?\r\nPartially implements #463 .\r\n\r\n#### What's this PR do?\r\n1. Creates an `ErrorMessage` component.\r\n2. Displays this component with a message on the `CollectionsListPage` when there is an api failure.\r\n\r\n#### How should this be manually tested?\r\n1. Go to the collections page `/collections/`\r\n2. Block the url for the collections api. See [this page](    https://stackoverflow.com/questions/27863094/how-to-block-a-url-in-chromes-developer-tools-network-monitor\r\n) for info on how to block.\r\n3. Reload the page.\r\n4. Ensure that the error message looks reasonable.","created_at":"2018-04-27T18:44:09Z","updated_at":"2018-04-30T13:04:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc1f71f63ac73b72e7ecfe2908f2efeeac02c05b","assignee":{"login":"mbertrand","id":187676,"avatar_url":"https://avatars2.githubusercontent.com/u/187676?v=4","gravatar_id":"","url":"https://api.github.com/users/mbertrand","html_url":"https://github.com/mbertrand","followers_url":"https://api.github.com/users/mbertrand/followers","following_url":"https://api.github.com/users/mbertrand/following{/other_user}","gists_url":"https://api.github.com/users/mbertrand/gists{/gist_id}","starred_url":"https://api.github.com/users/mbertrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbertrand/subscriptions","organizations_url":"https://api.github.com/users/mbertrand/orgs","repos_url":"https://api.github.com/users/mbertrand/repos","events_url":"https://api.github.com/users/mbertrand/events{/privacy}","received_events_url":"https://api.github.com/users/mbertrand/received_events","type":"User","site_admin":false},"assignees":[{"login":"mbertrand","id":187676,"avatar_url":"https://avatars2.githubusercontent.com/u/187676?v=4","gravatar_id":"","url":"https://api.github.com/users/mbertrand","html_url":"https://github.com/mbertrand","followers_url":"https://api.github.com/users/mbertrand/followers","following_url":"https://api.github.com/users/mbertrand/following{/other_user}","gists_url":"https://api.github.com/users/mbertrand/gists{/gist_id}","starred_url":"https://api.github.com/users/mbertrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbertrand/subscriptions","organizations_url":"https://api.github.com/users/mbertrand/orgs","repos_url":"https://api.github.com/users/mbertrand/repos","events_url":"https://api.github.com/users/mbertrand/events{/privacy}","received_events_url":"https://api.github.com/users/mbertrand/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":628196829,"url":"https://api.github.com/repos/mitodl/odl-video-service/labels/Needs%20Review","name":"Needs Review","color":"f9d0c4","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mitodl/odl-video-service/pulls/570/commits","review_comments_url":"https://api.github.com/repos/mitodl/odl-video-service/pulls/570/comments","review_comment_url":"https://api.github.com/repos/mitodl/odl-video-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mitodl/odl-video-service/issues/570/comments","statuses_url":"https://api.github.com/repos/mitodl/odl-video-service/statuses/db33f2b8160c622c6cd6a6834c4a31d22055b49a","head":{"label":"mitodl:dorska/error_notification","ref":"dorska/error_notification","sha":"db33f2b8160c622c6cd6a6834c4a31d22055b49a","user":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars2.githubusercontent.com/u/7918516?v=4","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"repo":{"id":88642420,"name":"odl-video-service","full_name":"mitodl/odl-video-service","owner":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars2.githubusercontent.com/u/7918516?v=4","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mitodl/odl-video-service","description":"building blocks for a basic video service for ODL","fork":false,"url":"https://api.github.com/repos/mitodl/odl-video-service","forks_url":"https://api.github.com/repos/mitodl/odl-video-service/forks","keys_url":"https://api.github.com/repos/mitodl/odl-video-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitodl/odl-video-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitodl/odl-video-service/teams","hooks_url":"https://api.github.com/repos/mitodl/odl-video-service/hooks","issue_events_url":"https://api.github.com/repos/mitodl/odl-video-service/issues/events{/number}","events_url":"https://api.github.com/repos/mitodl/odl-video-service/events","assignees_url":"https://api.github.com/repos/mitodl/odl-video-service/assignees{/user}","branches_url":"https://api.github.com/repos/mitodl/odl-video-service/branches{/branch}","tags_url":"https://api.github.com/repos/mitodl/odl-video-service/tags","blobs_url":"https://api.github.com/repos/mitodl/odl-video-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitodl/odl-video-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitodl/odl-video-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitodl/odl-video-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitodl/odl-video-service/statuses/{sha}","languages_url":"https://api.github.com/repos/mitodl/odl-video-service/languages","stargazers_url":"https://api.github.com/repos/mitodl/odl-video-service/stargazers","contributors_url":"https://api.github.com/repos/mitodl/odl-video-service/contributors","subscribers_url":"https://api.github.com/repos/mitodl/odl-video-service/subscribers","subscription_url":"https://api.github.com/repos/mitodl/odl-video-service/subscription","commits_url":"https://api.github.com/repos/mitodl/odl-video-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitodl/odl-video-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitodl/odl-video-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitodl/odl-video-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitodl/odl-video-service/contents/{+path}","compare_url":"https://api.github.com/repos/mitodl/odl-video-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitodl/odl-video-service/merges","archive_url":"https://api.github.com/repos/mitodl/odl-video-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitodl/odl-video-service/downloads","issues_url":"https://api.github.com/repos/mitodl/odl-video-service/issues{/number}","pulls_url":"https://api.github.com/repos/mitodl/odl-video-service/pulls{/number}","milestones_url":"https://api.github.com/repos/mitodl/odl-video-service/milestones{/number}","notifications_url":"https://api.github.com/repos/mitodl/odl-video-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitodl/odl-video-service/labels{/name}","releases_url":"https://api.github.com/repos/mitodl/odl-video-service/releases{/id}","deployments_url":"https://api.github.com/repos/mitodl/odl-video-service/deployments","created_at":"2017-04-18T15:41:48Z","updated_at":"2018-04-27T15:02:42Z","pushed_at":"2018-04-27T21:12:25Z","git_url":"git://github.com/mitodl/odl-video-service.git","ssh_url":"git@github.com:mitodl/odl-video-service.git","clone_url":"https://github.com/mitodl/odl-video-service.git","svn_url":"https://github.com/mitodl/odl-video-service","homepage":null,"size":1004,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":84,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":84,"watchers":2,"default_branch":"master"}},"base":{"label":"mitodl:master","ref":"master","sha":"9509a6f648ab01a345493ba28864764bdf588656","user":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars2.githubusercontent.com/u/7918516?v=4","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"repo":{"id":88642420,"name":"odl-video-service","full_name":"mitodl/odl-video-service","owner":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars2.githubusercontent.com/u/7918516?v=4","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mitodl/odl-video-service","description":"building blocks for a basic video service for ODL","fork":false,"url":"https://api.github.com/repos/mitodl/odl-video-service","forks_url":"https://api.github.com/repos/mitodl/odl-video-service/forks","keys_url":"https://api.github.com/repos/mitodl/odl-video-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitodl/odl-video-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitodl/odl-video-service/teams","hooks_url":"https://api.github.com/repos/mitodl/odl-video-service/hooks","issue_events_url":"https://api.github.com/repos/mitodl/odl-video-service/issues/events{/number}","events_url":"https://api.github.com/repos/mitodl/odl-video-service/events","assignees_url":"https://api.github.com/repos/mitodl/odl-video-service/assignees{/user}","branches_url":"https://api.github.com/repos/mitodl/odl-video-service/branches{/branch}","tags_url":"https://api.github.com/repos/mitodl/odl-video-service/tags","blobs_url":"https://api.github.com/repos/mitodl/odl-video-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitodl/odl-video-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitodl/odl-video-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitodl/odl-video-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitodl/odl-video-service/statuses/{sha}","languages_url":"https://api.github.com/repos/mitodl/odl-video-service/languages","stargazers_url":"https://api.github.com/repos/mitodl/odl-video-service/stargazers","contributors_url":"https://api.github.com/repos/mitodl/odl-video-service/contributors","subscribers_url":"https://api.github.com/repos/mitodl/odl-video-service/subscribers","subscription_url":"https://api.github.com/repos/mitodl/odl-video-service/subscription","commits_url":"https://api.github.com/repos/mitodl/odl-video-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitodl/odl-video-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitodl/odl-video-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitodl/odl-video-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitodl/odl-video-service/contents/{+path}","compare_url":"https://api.github.com/repos/mitodl/odl-video-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitodl/odl-video-service/merges","archive_url":"https://api.github.com/repos/mitodl/odl-video-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitodl/odl-video-service/downloads","issues_url":"https://api.github.com/repos/mitodl/odl-video-service/issues{/number}","pulls_url":"https://api.github.com/repos/mitodl/odl-video-service/pulls{/number}","milestones_url":"https://api.github.com/repos/mitodl/odl-video-service/milestones{/number}","notifications_url":"https://api.github.com/repos/mitodl/odl-video-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitodl/odl-video-service/labels{/name}","releases_url":"https://api.github.com/repos/mitodl/odl-video-service/releases{/id}","deployments_url":"https://api.github.com/repos/mitodl/odl-video-service/deployments","created_at":"2017-04-18T15:41:48Z","updated_at":"2018-04-27T15:02:42Z","pushed_at":"2018-04-27T21:12:25Z","git_url":"git://github.com/mitodl/odl-video-service.git","ssh_url":"git@github.com:mitodl/odl-video-service.git","clone_url":"https://github.com/mitodl/odl-video-service.git","svn_url":"https://github.com/mitodl/odl-video-service","homepage":null,"size":1004,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":84,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":84,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mitodl/odl-video-service/pulls/570"},"html":{"href":"https://github.com/mitodl/odl-video-service/pull/570"},"issue":{"href":"https://api.github.com/repos/mitodl/odl-video-service/issues/570"},"comments":{"href":"https://api.github.com/repos/mitodl/odl-video-service/issues/570/comments"},"review_comments":{"href":"https://api.github.com/repos/mitodl/odl-video-service/pulls/570/comments"},"review_comment":{"href":"https://api.github.com/repos/mitodl/odl-video-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mitodl/odl-video-service/pulls/570/commits"},"statuses":{"href":"https://api.github.com/repos/mitodl/odl-video-service/statuses/db33f2b8160c622c6cd6a6834c4a31d22055b49a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mbertrand"}}