{"action":"created","comment":{"url":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/comments/200988907","pull_request_review_id":135400924,"id":200988907,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDk4ODkwNw==","diff_hunk":"@@ -1 +1,68 @@\n-export * from \"./healthchecks\";\n+import { database as db } from \"../models\";\n+\n+export function runHealthChecks() {\n+    // Checks database connectivity by auth attempt\n+    function databaseConnectivityCheck() {\n+        return db.authenticate();\n+    }\n+\n+    function handleResolve({ label, promise }) {\n+        return { label, promise: promise.then(() => ({ [label]: true })) };","path":"server/health/index.js","position":11,"original_position":11,"commit_id":"76ad2600a6c21b2cc089eea5e446ce34d83efa50","original_commit_id":"76ad2600a6c21b2cc089eea5e446ce34d83efa50","user":{"login":"pb82","id":1851198,"node_id":"MDQ6VXNlcjE4NTExOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1851198?v=4","gravatar_id":"","url":"https://api.github.com/users/pb82","html_url":"https://github.com/pb82","followers_url":"https://api.github.com/users/pb82/followers","following_url":"https://api.github.com/users/pb82/following{/other_user}","gists_url":"https://api.github.com/users/pb82/gists{/gist_id}","starred_url":"https://api.github.com/users/pb82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pb82/subscriptions","organizations_url":"https://api.github.com/users/pb82/orgs","repos_url":"https://api.github.com/users/pb82/repos","events_url":"https://api.github.com/users/pb82/events{/privacy}","received_events_url":"https://api.github.com/users/pb82/received_events","type":"User","site_admin":false},"body":"We pass the label to the function to be able to output a name with the health check. `handleResolve` is mapped over first: We have to return label again from there to be able to use it in the following `handleReject`. We don't return the label from there because we no longer need it (resolve and reject use it already) and more importantly: we are required to procue a list of promises, not obejcts with a label and a promise.","created_at":"2018-07-09T12:48:23Z","updated_at":"2018-07-09T12:48:23Z","html_url":"https://github.com/aerogear/data-sync-ui/pull/18#discussion_r200988907","pull_request_url":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/18","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/comments/200988907"},"html":{"href":"https://github.com/aerogear/data-sync-ui/pull/18#discussion_r200988907"},"pull_request":{"href":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/18"}},"in_reply_to_id":200987985},"pull_request":{"url":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/18","id":200086216,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMDg2MjE2","html_url":"https://github.com/aerogear/data-sync-ui/pull/18","diff_url":"https://github.com/aerogear/data-sync-ui/pull/18.diff","patch_url":"https://github.com/aerogear/data-sync-ui/pull/18.patch","issue_url":"https://api.github.com/repos/aerogear/data-sync-ui/issues/18","number":18,"state":"open","locked":false,"title":"update health endpoint","user":{"login":"pb82","id":1851198,"node_id":"MDQ6VXNlcjE4NTExOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1851198?v=4","gravatar_id":"","url":"https://api.github.com/users/pb82","html_url":"https://github.com/pb82","followers_url":"https://api.github.com/users/pb82/followers","following_url":"https://api.github.com/users/pb82/following{/other_user}","gists_url":"https://api.github.com/users/pb82/gists{/gist_id}","starred_url":"https://api.github.com/users/pb82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pb82/subscriptions","organizations_url":"https://api.github.com/users/pb82/orgs","repos_url":"https://api.github.com/users/pb82/repos","events_url":"https://api.github.com/users/pb82/events{/privacy}","received_events_url":"https://api.github.com/users/pb82/received_events","type":"User","site_admin":false},"body":"Update the health endpoint to use the same format as on the server. Also remove animations from the tabs.","created_at":"2018-07-09T12:38:56Z","updated_at":"2018-07-09T12:48:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4ac8e413ab78da989d983c5ec9e33065baaeede","assignee":null,"assignees":[],"requested_reviewers":[{"login":"cfoskin","id":7661017,"node_id":"MDQ6VXNlcjc2NjEwMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/7661017?v=4","gravatar_id":"","url":"https://api.github.com/users/cfoskin","html_url":"https://github.com/cfoskin","followers_url":"https://api.github.com/users/cfoskin/followers","following_url":"https://api.github.com/users/cfoskin/following{/other_user}","gists_url":"https://api.github.com/users/cfoskin/gists{/gist_id}","starred_url":"https://api.github.com/users/cfoskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfoskin/subscriptions","organizations_url":"https://api.github.com/users/cfoskin/orgs","repos_url":"https://api.github.com/users/cfoskin/repos","events_url":"https://api.github.com/users/cfoskin/events{/privacy}","received_events_url":"https://api.github.com/users/cfoskin/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/18/commits","review_comments_url":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/18/comments","review_comment_url":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aerogear/data-sync-ui/issues/18/comments","statuses_url":"https://api.github.com/repos/aerogear/data-sync-ui/statuses/76ad2600a6c21b2cc089eea5e446ce34d83efa50","head":{"label":"pb82:update-health","ref":"update-health","sha":"76ad2600a6c21b2cc089eea5e446ce34d83efa50","user":{"login":"pb82","id":1851198,"node_id":"MDQ6VXNlcjE4NTExOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1851198?v=4","gravatar_id":"","url":"https://api.github.com/users/pb82","html_url":"https://github.com/pb82","followers_url":"https://api.github.com/users/pb82/followers","following_url":"https://api.github.com/users/pb82/following{/other_user}","gists_url":"https://api.github.com/users/pb82/gists{/gist_id}","starred_url":"https://api.github.com/users/pb82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pb82/subscriptions","organizations_url":"https://api.github.com/users/pb82/orgs","repos_url":"https://api.github.com/users/pb82/repos","events_url":"https://api.github.com/users/pb82/events{/privacy}","received_events_url":"https://api.github.com/users/pb82/received_events","type":"User","site_admin":false},"repo":{"id":139414172,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0MTQxNzI=","name":"data-sync-ui","full_name":"pb82/data-sync-ui","owner":{"login":"pb82","id":1851198,"node_id":"MDQ6VXNlcjE4NTExOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1851198?v=4","gravatar_id":"","url":"https://api.github.com/users/pb82","html_url":"https://github.com/pb82","followers_url":"https://api.github.com/users/pb82/followers","following_url":"https://api.github.com/users/pb82/following{/other_user}","gists_url":"https://api.github.com/users/pb82/gists{/gist_id}","starred_url":"https://api.github.com/users/pb82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pb82/subscriptions","organizations_url":"https://api.github.com/users/pb82/orgs","repos_url":"https://api.github.com/users/pb82/repos","events_url":"https://api.github.com/users/pb82/events{/privacy}","received_events_url":"https://api.github.com/users/pb82/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pb82/data-sync-ui","description":"UI for the AeroGear Data Sync server","fork":true,"url":"https://api.github.com/repos/pb82/data-sync-ui","forks_url":"https://api.github.com/repos/pb82/data-sync-ui/forks","keys_url":"https://api.github.com/repos/pb82/data-sync-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pb82/data-sync-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pb82/data-sync-ui/teams","hooks_url":"https://api.github.com/repos/pb82/data-sync-ui/hooks","issue_events_url":"https://api.github.com/repos/pb82/data-sync-ui/issues/events{/number}","events_url":"https://api.github.com/repos/pb82/data-sync-ui/events","assignees_url":"https://api.github.com/repos/pb82/data-sync-ui/assignees{/user}","branches_url":"https://api.github.com/repos/pb82/data-sync-ui/branches{/branch}","tags_url":"https://api.github.com/repos/pb82/data-sync-ui/tags","blobs_url":"https://api.github.com/repos/pb82/data-sync-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pb82/data-sync-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pb82/data-sync-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/pb82/data-sync-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pb82/data-sync-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/pb82/data-sync-ui/languages","stargazers_url":"https://api.github.com/repos/pb82/data-sync-ui/stargazers","contributors_url":"https://api.github.com/repos/pb82/data-sync-ui/contributors","subscribers_url":"https://api.github.com/repos/pb82/data-sync-ui/subscribers","subscription_url":"https://api.github.com/repos/pb82/data-sync-ui/subscription","commits_url":"https://api.github.com/repos/pb82/data-sync-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/pb82/data-sync-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/pb82/data-sync-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/pb82/data-sync-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/pb82/data-sync-ui/contents/{+path}","compare_url":"https://api.github.com/repos/pb82/data-sync-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pb82/data-sync-ui/merges","archive_url":"https://api.github.com/repos/pb82/data-sync-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pb82/data-sync-ui/downloads","issues_url":"https://api.github.com/repos/pb82/data-sync-ui/issues{/number}","pulls_url":"https://api.github.com/repos/pb82/data-sync-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/pb82/data-sync-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/pb82/data-sync-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pb82/data-sync-ui/labels{/name}","releases_url":"https://api.github.com/repos/pb82/data-sync-ui/releases{/id}","deployments_url":"https://api.github.com/repos/pb82/data-sync-ui/deployments","created_at":"2018-07-02T08:31:47Z","updated_at":"2018-07-02T08:31:49Z","pushed_at":"2018-07-09T12:41:07Z","git_url":"git://github.com/pb82/data-sync-ui.git","ssh_url":"git@github.com:pb82/data-sync-ui.git","clone_url":"https://github.com/pb82/data-sync-ui.git","svn_url":"https://github.com/pb82/data-sync-ui","homepage":null,"size":5405,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aerogear:master","ref":"master","sha":"c72363aa65cd595198f30dc5d8cef47a68e3bc34","user":{"login":"aerogear","id":954205,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk1NDIwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/954205?v=4","gravatar_id":"","url":"https://api.github.com/users/aerogear","html_url":"https://github.com/aerogear","followers_url":"https://api.github.com/users/aerogear/followers","following_url":"https://api.github.com/users/aerogear/following{/other_user}","gists_url":"https://api.github.com/users/aerogear/gists{/gist_id}","starred_url":"https://api.github.com/users/aerogear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerogear/subscriptions","organizations_url":"https://api.github.com/users/aerogear/orgs","repos_url":"https://api.github.com/users/aerogear/repos","events_url":"https://api.github.com/users/aerogear/events{/privacy}","received_events_url":"https://api.github.com/users/aerogear/received_events","type":"Organization","site_admin":false},"repo":{"id":139133264,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkxMzMyNjQ=","name":"data-sync-ui","full_name":"aerogear/data-sync-ui","owner":{"login":"aerogear","id":954205,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk1NDIwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/954205?v=4","gravatar_id":"","url":"https://api.github.com/users/aerogear","html_url":"https://github.com/aerogear","followers_url":"https://api.github.com/users/aerogear/followers","following_url":"https://api.github.com/users/aerogear/following{/other_user}","gists_url":"https://api.github.com/users/aerogear/gists{/gist_id}","starred_url":"https://api.github.com/users/aerogear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerogear/subscriptions","organizations_url":"https://api.github.com/users/aerogear/orgs","repos_url":"https://api.github.com/users/aerogear/repos","events_url":"https://api.github.com/users/aerogear/events{/privacy}","received_events_url":"https://api.github.com/users/aerogear/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aerogear/data-sync-ui","description":"UI for the AeroGear Data Sync server","fork":false,"url":"https://api.github.com/repos/aerogear/data-sync-ui","forks_url":"https://api.github.com/repos/aerogear/data-sync-ui/forks","keys_url":"https://api.github.com/repos/aerogear/data-sync-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aerogear/data-sync-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aerogear/data-sync-ui/teams","hooks_url":"https://api.github.com/repos/aerogear/data-sync-ui/hooks","issue_events_url":"https://api.github.com/repos/aerogear/data-sync-ui/issues/events{/number}","events_url":"https://api.github.com/repos/aerogear/data-sync-ui/events","assignees_url":"https://api.github.com/repos/aerogear/data-sync-ui/assignees{/user}","branches_url":"https://api.github.com/repos/aerogear/data-sync-ui/branches{/branch}","tags_url":"https://api.github.com/repos/aerogear/data-sync-ui/tags","blobs_url":"https://api.github.com/repos/aerogear/data-sync-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aerogear/data-sync-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aerogear/data-sync-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/aerogear/data-sync-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aerogear/data-sync-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/aerogear/data-sync-ui/languages","stargazers_url":"https://api.github.com/repos/aerogear/data-sync-ui/stargazers","contributors_url":"https://api.github.com/repos/aerogear/data-sync-ui/contributors","subscribers_url":"https://api.github.com/repos/aerogear/data-sync-ui/subscribers","subscription_url":"https://api.github.com/repos/aerogear/data-sync-ui/subscription","commits_url":"https://api.github.com/repos/aerogear/data-sync-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/aerogear/data-sync-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/aerogear/data-sync-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/aerogear/data-sync-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/aerogear/data-sync-ui/contents/{+path}","compare_url":"https://api.github.com/repos/aerogear/data-sync-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aerogear/data-sync-ui/merges","archive_url":"https://api.github.com/repos/aerogear/data-sync-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aerogear/data-sync-ui/downloads","issues_url":"https://api.github.com/repos/aerogear/data-sync-ui/issues{/number}","pulls_url":"https://api.github.com/repos/aerogear/data-sync-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/aerogear/data-sync-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/aerogear/data-sync-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aerogear/data-sync-ui/labels{/name}","releases_url":"https://api.github.com/repos/aerogear/data-sync-ui/releases{/id}","deployments_url":"https://api.github.com/repos/aerogear/data-sync-ui/deployments","created_at":"2018-06-29T09:58:59Z","updated_at":"2018-07-08T04:00:23Z","pushed_at":"2018-07-09T12:41:08Z","git_url":"git://github.com/aerogear/data-sync-ui.git","ssh_url":"git@github.com:aerogear/data-sync-ui.git","clone_url":"https://github.com/aerogear/data-sync-ui.git","svn_url":"https://github.com/aerogear/data-sync-ui","homepage":null,"size":5388,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/18"},"html":{"href":"https://github.com/aerogear/data-sync-ui/pull/18"},"issue":{"href":"https://api.github.com/repos/aerogear/data-sync-ui/issues/18"},"comments":{"href":"https://api.github.com/repos/aerogear/data-sync-ui/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aerogear/data-sync-ui/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/aerogear/data-sync-ui/statuses/76ad2600a6c21b2cc089eea5e446ce34d83efa50"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"pb82"}}