{"action":"created","comment":{"url":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/comments/135756563","pull_request_review_id":59202357,"id":135756563,"diff_hunk":"@@ -0,0 +1,105 @@\n+import React, { PureComponent } from 'react';\n+import PropTypes from 'prop-types';\n+import R from 'ramda';\n+import {\n+  Link,\n+} from 'react-router-dom';\n+\n+import block from '../../../helpers/bem-cn';\n+\n+import Correct from './Correct';\n+import Icon from '../../Icon/Icon';\n+import Pagination from '../../Pagination/Pagination';\n+import HealthCheckModal from '../../modals/HealthCheckModal/HealthCheckModal';\n+\n+import './HealthCheckList.css';\n+\n+const b = block('j-healthcheck');\n+const bList = block(b('list')());\n+const bItem = block(b('list-item')());\n+\n+const propTypes = {\n+    clearHealthCheckDetails: PropTypes.func.isRequired,\n+    currentPageIndex: PropTypes.number.isRequired,\n+    fetchHealthCheckList: PropTypes.func.isRequired,\n+    fetchHealthCheckItem: PropTypes.func.isRequired,\n+    healthcheckList: PropTypes.arrayOf(PropTypes.object).isRequired,\n+    setCurrentPageIndex: PropTypes.func.isRequired,\n+};\n+\n+class HealthCheckList extends PureComponent {\n+    componentDidMount() {\n+        this.props.fetchHealthCheckList();\n+    }\n+\n+    test = name => {\n+        this.props.fetchHealthCheckItem(name);\n+    }\n+\n+    renderList = () => {\n+        return (\n+            <div>Oooops</div>\n+        );\n+    }\n+\n+    renderHealthcheckInfo = list => {\n+        const {\n+            clearHealthCheckDetails,\n+            problemToDisplay,\n+            status,\n+        } = this.props;\n+\n+        if (status) {\n+            return (\n+                <div className={b('pane').mix('j-pane')}>\n+                    <Correct className={b('correct')()} />\n+                </div>\n+            );\n+        }\n+\n+        return (\n+            <div className={bList()}>\n+                {\n+                    list.map(item => {\n+                        return (\n+                            <div className={bItem()} key={item.name}>\n+                                <div className={bItem('name')}>{item.name}</div>\n+                                <div className={bItem('message')}>{item.message}</div>\n+                                <div className={bItem('details')} onClick={() => this.test(item.name)}>Show Details</div>\n+                                <Link to={`/${item.name}`}>\n+                                    <Icon type=\"edit\" />\n+                                </Link>\n+                            </div>\n+                        );\n+                    })\n+                }\n+\n+                <HealthCheckModal\n+                    className={b('modal')()}\n+                    isOpen={!R.isEmpty(problemToDisplay)}\n+                    closeModal={clearHealthCheckDetails}\n+                    message={problemToDisplay.status}\n+                    statusText={problemToDisplay.name}\n+                    problems={problemToDisplay.list}\n+                />\n+            </div>\n+        );\n+    }\n+\n+    render() {\n+        return (\n+            <Pagination\n+                list={this.props.healthcheckList}","path":"src/modules/pages/HealthCheckPage/HealthCheckList.js","position":84,"original_position":92,"commit_id":"3e417914896bb1aa40177af9b4901dc41927ec87","original_commit_id":"1326973935b71e09831a02577bd8be144180b14d","user":{"login":"ivanzusko","id":8372070,"avatar_url":"https://avatars1.githubusercontent.com/u/8372070?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanzusko","html_url":"https://github.com/ivanzusko","followers_url":"https://api.github.com/users/ivanzusko/followers","following_url":"https://api.github.com/users/ivanzusko/following{/other_user}","gists_url":"https://api.github.com/users/ivanzusko/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanzusko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanzusko/subscriptions","organizations_url":"https://api.github.com/users/ivanzusko/orgs","repos_url":"https://api.github.com/users/ivanzusko/repos","events_url":"https://api.github.com/users/ivanzusko/events{/privacy}","received_events_url":"https://api.github.com/users/ivanzusko/received_events","type":"User","site_admin":false},"body":"@Vxplus :+1:","created_at":"2017-08-29T10:53:48Z","updated_at":"2017-08-29T10:53:48Z","html_url":"https://github.com/hellofresh/janus-dashboard/pull/28#discussion_r135756563","pull_request_url":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/comments/135756563"},"html":{"href":"https://github.com/hellofresh/janus-dashboard/pull/28#discussion_r135756563"},"pull_request":{"href":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/28"}},"in_reply_to_id":134169092},"pull_request":{"url":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/28","id":136486959,"html_url":"https://github.com/hellofresh/janus-dashboard/pull/28","diff_url":"https://github.com/hellofresh/janus-dashboard/pull/28.diff","patch_url":"https://github.com/hellofresh/janus-dashboard/pull/28.patch","issue_url":"https://api.github.com/repos/hellofresh/janus-dashboard/issues/28","number":28,"state":"open","locked":false,"title":"Feature/COMM-2236  health check screen","user":{"login":"ivanzusko","id":8372070,"avatar_url":"https://avatars1.githubusercontent.com/u/8372070?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanzusko","html_url":"https://github.com/ivanzusko","followers_url":"https://api.github.com/users/ivanzusko/followers","following_url":"https://api.github.com/users/ivanzusko/following{/other_user}","gists_url":"https://api.github.com/users/ivanzusko/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanzusko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanzusko/subscriptions","organizations_url":"https://api.github.com/users/ivanzusko/orgs","repos_url":"https://api.github.com/users/ivanzusko/repos","events_url":"https://api.github.com/users/ivanzusko/events{/privacy}","received_events_url":"https://api.github.com/users/ivanzusko/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-18T14:03:45Z","updated_at":"2017-08-29T10:53:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"393291034cd78e2cfbd8a06fd7c6d9014bc55fde","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Vxplus","id":2334450,"avatar_url":"https://avatars2.githubusercontent.com/u/2334450?v=4","gravatar_id":"","url":"https://api.github.com/users/Vxplus","html_url":"https://github.com/Vxplus","followers_url":"https://api.github.com/users/Vxplus/followers","following_url":"https://api.github.com/users/Vxplus/following{/other_user}","gists_url":"https://api.github.com/users/Vxplus/gists{/gist_id}","starred_url":"https://api.github.com/users/Vxplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vxplus/subscriptions","organizations_url":"https://api.github.com/users/Vxplus/orgs","repos_url":"https://api.github.com/users/Vxplus/repos","events_url":"https://api.github.com/users/Vxplus/events{/privacy}","received_events_url":"https://api.github.com/users/Vxplus/received_events","type":"User","site_admin":false},{"login":"josemussa","id":4422500,"avatar_url":"https://avatars3.githubusercontent.com/u/4422500?v=4","gravatar_id":"","url":"https://api.github.com/users/josemussa","html_url":"https://github.com/josemussa","followers_url":"https://api.github.com/users/josemussa/followers","following_url":"https://api.github.com/users/josemussa/following{/other_user}","gists_url":"https://api.github.com/users/josemussa/gists{/gist_id}","starred_url":"https://api.github.com/users/josemussa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josemussa/subscriptions","organizations_url":"https://api.github.com/users/josemussa/orgs","repos_url":"https://api.github.com/users/josemussa/repos","events_url":"https://api.github.com/users/josemussa/events{/privacy}","received_events_url":"https://api.github.com/users/josemussa/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/28/commits","review_comments_url":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/28/comments","review_comment_url":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hellofresh/janus-dashboard/issues/28/comments","statuses_url":"https://api.github.com/repos/hellofresh/janus-dashboard/statuses/3e417914896bb1aa40177af9b4901dc41927ec87","head":{"label":"hellofresh:feature/COMM-2236__health-check-screen","ref":"feature/COMM-2236__health-check-screen","sha":"3e417914896bb1aa40177af9b4901dc41927ec87","user":{"login":"hellofresh","id":4430027,"avatar_url":"https://avatars1.githubusercontent.com/u/4430027?v=4","gravatar_id":"","url":"https://api.github.com/users/hellofresh","html_url":"https://github.com/hellofresh","followers_url":"https://api.github.com/users/hellofresh/followers","following_url":"https://api.github.com/users/hellofresh/following{/other_user}","gists_url":"https://api.github.com/users/hellofresh/gists{/gist_id}","starred_url":"https://api.github.com/users/hellofresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellofresh/subscriptions","organizations_url":"https://api.github.com/users/hellofresh/orgs","repos_url":"https://api.github.com/users/hellofresh/repos","events_url":"https://api.github.com/users/hellofresh/events{/privacy}","received_events_url":"https://api.github.com/users/hellofresh/received_events","type":"Organization","site_admin":false},"repo":{"id":87945629,"name":"janus-dashboard","full_name":"hellofresh/janus-dashboard","owner":{"login":"hellofresh","id":4430027,"avatar_url":"https://avatars1.githubusercontent.com/u/4430027?v=4","gravatar_id":"","url":"https://api.github.com/users/hellofresh","html_url":"https://github.com/hellofresh","followers_url":"https://api.github.com/users/hellofresh/followers","following_url":"https://api.github.com/users/hellofresh/following{/other_user}","gists_url":"https://api.github.com/users/hellofresh/gists{/gist_id}","starred_url":"https://api.github.com/users/hellofresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellofresh/subscriptions","organizations_url":"https://api.github.com/users/hellofresh/orgs","repos_url":"https://api.github.com/users/hellofresh/repos","events_url":"https://api.github.com/users/hellofresh/events{/privacy}","received_events_url":"https://api.github.com/users/hellofresh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hellofresh/janus-dashboard","description":"Admin panel for Janus, an API Gateway","fork":false,"url":"https://api.github.com/repos/hellofresh/janus-dashboard","forks_url":"https://api.github.com/repos/hellofresh/janus-dashboard/forks","keys_url":"https://api.github.com/repos/hellofresh/janus-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hellofresh/janus-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hellofresh/janus-dashboard/teams","hooks_url":"https://api.github.com/repos/hellofresh/janus-dashboard/hooks","issue_events_url":"https://api.github.com/repos/hellofresh/janus-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/hellofresh/janus-dashboard/events","assignees_url":"https://api.github.com/repos/hellofresh/janus-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/hellofresh/janus-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/hellofresh/janus-dashboard/tags","blobs_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hellofresh/janus-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/hellofresh/janus-dashboard/languages","stargazers_url":"https://api.github.com/repos/hellofresh/janus-dashboard/stargazers","contributors_url":"https://api.github.com/repos/hellofresh/janus-dashboard/contributors","subscribers_url":"https://api.github.com/repos/hellofresh/janus-dashboard/subscribers","subscription_url":"https://api.github.com/repos/hellofresh/janus-dashboard/subscription","commits_url":"https://api.github.com/repos/hellofresh/janus-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/hellofresh/janus-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/hellofresh/janus-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/hellofresh/janus-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/hellofresh/janus-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hellofresh/janus-dashboard/merges","archive_url":"https://api.github.com/repos/hellofresh/janus-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hellofresh/janus-dashboard/downloads","issues_url":"https://api.github.com/repos/hellofresh/janus-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/hellofresh/janus-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/hellofresh/janus-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hellofresh/janus-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/hellofresh/janus-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/hellofresh/janus-dashboard/deployments","created_at":"2017-04-11T14:43:18Z","updated_at":"2017-08-28T09:42:41Z","pushed_at":"2017-08-29T09:57:56Z","git_url":"git://github.com/hellofresh/janus-dashboard.git","ssh_url":"git@github.com:hellofresh/janus-dashboard.git","clone_url":"https://github.com/hellofresh/janus-dashboard.git","svn_url":"https://github.com/hellofresh/janus-dashboard","homepage":"","size":634,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"hellofresh:master","ref":"master","sha":"238c056276ef53ec302c3253b80a2c4694bf460b","user":{"login":"hellofresh","id":4430027,"avatar_url":"https://avatars1.githubusercontent.com/u/4430027?v=4","gravatar_id":"","url":"https://api.github.com/users/hellofresh","html_url":"https://github.com/hellofresh","followers_url":"https://api.github.com/users/hellofresh/followers","following_url":"https://api.github.com/users/hellofresh/following{/other_user}","gists_url":"https://api.github.com/users/hellofresh/gists{/gist_id}","starred_url":"https://api.github.com/users/hellofresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellofresh/subscriptions","organizations_url":"https://api.github.com/users/hellofresh/orgs","repos_url":"https://api.github.com/users/hellofresh/repos","events_url":"https://api.github.com/users/hellofresh/events{/privacy}","received_events_url":"https://api.github.com/users/hellofresh/received_events","type":"Organization","site_admin":false},"repo":{"id":87945629,"name":"janus-dashboard","full_name":"hellofresh/janus-dashboard","owner":{"login":"hellofresh","id":4430027,"avatar_url":"https://avatars1.githubusercontent.com/u/4430027?v=4","gravatar_id":"","url":"https://api.github.com/users/hellofresh","html_url":"https://github.com/hellofresh","followers_url":"https://api.github.com/users/hellofresh/followers","following_url":"https://api.github.com/users/hellofresh/following{/other_user}","gists_url":"https://api.github.com/users/hellofresh/gists{/gist_id}","starred_url":"https://api.github.com/users/hellofresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellofresh/subscriptions","organizations_url":"https://api.github.com/users/hellofresh/orgs","repos_url":"https://api.github.com/users/hellofresh/repos","events_url":"https://api.github.com/users/hellofresh/events{/privacy}","received_events_url":"https://api.github.com/users/hellofresh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hellofresh/janus-dashboard","description":"Admin panel for Janus, an API Gateway","fork":false,"url":"https://api.github.com/repos/hellofresh/janus-dashboard","forks_url":"https://api.github.com/repos/hellofresh/janus-dashboard/forks","keys_url":"https://api.github.com/repos/hellofresh/janus-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hellofresh/janus-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hellofresh/janus-dashboard/teams","hooks_url":"https://api.github.com/repos/hellofresh/janus-dashboard/hooks","issue_events_url":"https://api.github.com/repos/hellofresh/janus-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/hellofresh/janus-dashboard/events","assignees_url":"https://api.github.com/repos/hellofresh/janus-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/hellofresh/janus-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/hellofresh/janus-dashboard/tags","blobs_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hellofresh/janus-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/hellofresh/janus-dashboard/languages","stargazers_url":"https://api.github.com/repos/hellofresh/janus-dashboard/stargazers","contributors_url":"https://api.github.com/repos/hellofresh/janus-dashboard/contributors","subscribers_url":"https://api.github.com/repos/hellofresh/janus-dashboard/subscribers","subscription_url":"https://api.github.com/repos/hellofresh/janus-dashboard/subscription","commits_url":"https://api.github.com/repos/hellofresh/janus-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/hellofresh/janus-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/hellofresh/janus-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/hellofresh/janus-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/hellofresh/janus-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/hellofresh/janus-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hellofresh/janus-dashboard/merges","archive_url":"https://api.github.com/repos/hellofresh/janus-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hellofresh/janus-dashboard/downloads","issues_url":"https://api.github.com/repos/hellofresh/janus-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/hellofresh/janus-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/hellofresh/janus-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hellofresh/janus-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/hellofresh/janus-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/hellofresh/janus-dashboard/deployments","created_at":"2017-04-11T14:43:18Z","updated_at":"2017-08-28T09:42:41Z","pushed_at":"2017-08-29T09:57:56Z","git_url":"git://github.com/hellofresh/janus-dashboard.git","ssh_url":"git@github.com:hellofresh/janus-dashboard.git","clone_url":"https://github.com/hellofresh/janus-dashboard.git","svn_url":"https://github.com/hellofresh/janus-dashboard","homepage":"","size":634,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/28"},"html":{"href":"https://github.com/hellofresh/janus-dashboard/pull/28"},"issue":{"href":"https://api.github.com/repos/hellofresh/janus-dashboard/issues/28"},"comments":{"href":"https://api.github.com/repos/hellofresh/janus-dashboard/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hellofresh/janus-dashboard/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/hellofresh/janus-dashboard/statuses/3e417914896bb1aa40177af9b4901dc41927ec87"}}}}
{"actor":{"display_login":"ivanzusko"}}