{"action":"created","comment":{"url":"https://api.github.com/repos/PolymerLabs/project-health/pulls/comments/179825720","pull_request_review_id":110141922,"id":179825720,"diff_hunk":"@@ -0,0 +1,50 @@\n+import * as express from 'express';\n+\n+import {GenericStatusResponse} from '../../types/api';\n+import {userModel} from '../models/userModel';\n+\n+import {createAPIRoute, ResponseDetails} from './api-route';\n+\n+async function handleUpdateRequest(request: express.Request):\n+    Promise<ResponseDetails<GenericStatusResponse>> {\n+  const userRecord = await userModel.getUserRecordFromRequest(request);\n+  if (!userRecord) {\n+    return {\n+      statusCode: 400,","path":"src/server/apis/last-viewed.ts","position":13,"original_position":13,"commit_id":"efa62926be393aa5c087d4520c654acb3b19ab15","original_commit_id":"efa62926be393aa5c087d4520c654acb3b19ab15","user":{"login":"samuelli","id":787668,"avatar_url":"https://avatars1.githubusercontent.com/u/787668?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelli","html_url":"https://github.com/samuelli","followers_url":"https://api.github.com/users/samuelli/followers","following_url":"https://api.github.com/users/samuelli/following{/other_user}","gists_url":"https://api.github.com/users/samuelli/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelli/subscriptions","organizations_url":"https://api.github.com/users/samuelli/orgs","repos_url":"https://api.github.com/users/samuelli/repos","events_url":"https://api.github.com/users/samuelli/events{/privacy}","received_events_url":"https://api.github.com/users/samuelli/received_events","type":"User","site_admin":false},"body":"Use `401 Unauthorized` instead.","created_at":"2018-04-06T17:33:28Z","updated_at":"2018-04-06T17:36:45Z","html_url":"https://github.com/PolymerLabs/project-health/pull/390#discussion_r179825720","pull_request_url":"https://api.github.com/repos/PolymerLabs/project-health/pulls/390","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/PolymerLabs/project-health/pulls/comments/179825720"},"html":{"href":"https://github.com/PolymerLabs/project-health/pull/390#discussion_r179825720"},"pull_request":{"href":"https://api.github.com/repos/PolymerLabs/project-health/pulls/390"}}},"pull_request":{"url":"https://api.github.com/repos/PolymerLabs/project-health/pulls/390","id":180001700,"html_url":"https://github.com/PolymerLabs/project-health/pull/390","diff_url":"https://github.com/PolymerLabs/project-health/pull/390.diff","patch_url":"https://github.com/PolymerLabs/project-health/pull/390.patch","issue_url":"https://api.github.com/repos/PolymerLabs/project-health/issues/390","number":390,"state":"open","locked":false,"title":"Adding new acitivity indicator","user":{"login":"gauntface","id":139760,"avatar_url":"https://avatars0.githubusercontent.com/u/139760?v=4","gravatar_id":"","url":"https://api.github.com/users/gauntface","html_url":"https://github.com/gauntface","followers_url":"https://api.github.com/users/gauntface/followers","following_url":"https://api.github.com/users/gauntface/following{/other_user}","gists_url":"https://api.github.com/users/gauntface/gists{/gist_id}","starred_url":"https://api.github.com/users/gauntface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauntface/subscriptions","organizations_url":"https://api.github.com/users/gauntface/orgs","repos_url":"https://api.github.com/users/gauntface/repos","events_url":"https://api.github.com/users/gauntface/events{/privacy}","received_events_url":"https://api.github.com/users/gauntface/received_events","type":"User","site_admin":false},"body":"- Adds UI for \"has new activity\".\r\n- Fixes a bug in user model where some values were needlessly getting reset.\r\n\r\n![screenshot from 2018-04-06 09-56-03](https://user-images.githubusercontent.com/139760/38433707-be4ecc64-3980-11e8-854b-a3a436f30f40.png)\r\n","created_at":"2018-04-06T16:56:21Z","updated_at":"2018-04-06T17:36:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4da4d5755db3ac87900a26d7a7a751886b87f06b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PolymerLabs/project-health/pulls/390/commits","review_comments_url":"https://api.github.com/repos/PolymerLabs/project-health/pulls/390/comments","review_comment_url":"https://api.github.com/repos/PolymerLabs/project-health/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolymerLabs/project-health/issues/390/comments","statuses_url":"https://api.github.com/repos/PolymerLabs/project-health/statuses/efa62926be393aa5c087d4520c654acb3b19ab15","head":{"label":"PolymerLabs:new-acitivity-ui","ref":"new-acitivity-ui","sha":"efa62926be393aa5c087d4520c654acb3b19ab15","user":{"login":"PolymerLabs","id":5912903,"avatar_url":"https://avatars2.githubusercontent.com/u/5912903?v=4","gravatar_id":"","url":"https://api.github.com/users/PolymerLabs","html_url":"https://github.com/PolymerLabs","followers_url":"https://api.github.com/users/PolymerLabs/followers","following_url":"https://api.github.com/users/PolymerLabs/following{/other_user}","gists_url":"https://api.github.com/users/PolymerLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerLabs/subscriptions","organizations_url":"https://api.github.com/users/PolymerLabs/orgs","repos_url":"https://api.github.com/users/PolymerLabs/repos","events_url":"https://api.github.com/users/PolymerLabs/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":108609951,"name":"project-health","full_name":"PolymerLabs/project-health","owner":{"login":"PolymerLabs","id":5912903,"avatar_url":"https://avatars2.githubusercontent.com/u/5912903?v=4","gravatar_id":"","url":"https://api.github.com/users/PolymerLabs","html_url":"https://github.com/PolymerLabs","followers_url":"https://api.github.com/users/PolymerLabs/followers","following_url":"https://api.github.com/users/PolymerLabs/following{/other_user}","gists_url":"https://api.github.com/users/PolymerLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerLabs/subscriptions","organizations_url":"https://api.github.com/users/PolymerLabs/orgs","repos_url":"https://api.github.com/users/PolymerLabs/repos","events_url":"https://api.github.com/users/PolymerLabs/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolymerLabs/project-health","description":null,"fork":false,"url":"https://api.github.com/repos/PolymerLabs/project-health","forks_url":"https://api.github.com/repos/PolymerLabs/project-health/forks","keys_url":"https://api.github.com/repos/PolymerLabs/project-health/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerLabs/project-health/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerLabs/project-health/teams","hooks_url":"https://api.github.com/repos/PolymerLabs/project-health/hooks","issue_events_url":"https://api.github.com/repos/PolymerLabs/project-health/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerLabs/project-health/events","assignees_url":"https://api.github.com/repos/PolymerLabs/project-health/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerLabs/project-health/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerLabs/project-health/tags","blobs_url":"https://api.github.com/repos/PolymerLabs/project-health/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerLabs/project-health/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerLabs/project-health/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerLabs/project-health/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerLabs/project-health/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerLabs/project-health/languages","stargazers_url":"https://api.github.com/repos/PolymerLabs/project-health/stargazers","contributors_url":"https://api.github.com/repos/PolymerLabs/project-health/contributors","subscribers_url":"https://api.github.com/repos/PolymerLabs/project-health/subscribers","subscription_url":"https://api.github.com/repos/PolymerLabs/project-health/subscription","commits_url":"https://api.github.com/repos/PolymerLabs/project-health/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerLabs/project-health/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerLabs/project-health/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerLabs/project-health/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerLabs/project-health/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerLabs/project-health/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerLabs/project-health/merges","archive_url":"https://api.github.com/repos/PolymerLabs/project-health/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerLabs/project-health/downloads","issues_url":"https://api.github.com/repos/PolymerLabs/project-health/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerLabs/project-health/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerLabs/project-health/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerLabs/project-health/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerLabs/project-health/labels{/name}","releases_url":"https://api.github.com/repos/PolymerLabs/project-health/releases{/id}","deployments_url":"https://api.github.com/repos/PolymerLabs/project-health/deployments","created_at":"2017-10-28T01:16:52Z","updated_at":"2018-04-06T16:31:07Z","pushed_at":"2018-04-06T17:33:35Z","git_url":"git://github.com/PolymerLabs/project-health.git","ssh_url":"git@github.com:PolymerLabs/project-health.git","clone_url":"https://github.com/PolymerLabs/project-health.git","svn_url":"https://github.com/PolymerLabs/project-health","homepage":null,"size":5150,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":2,"open_issues":35,"watchers":3,"default_branch":"master"}},"base":{"label":"PolymerLabs:master","ref":"master","sha":"b827c15ab9845548d4410de21cf8446eebb95f44","user":{"login":"PolymerLabs","id":5912903,"avatar_url":"https://avatars2.githubusercontent.com/u/5912903?v=4","gravatar_id":"","url":"https://api.github.com/users/PolymerLabs","html_url":"https://github.com/PolymerLabs","followers_url":"https://api.github.com/users/PolymerLabs/followers","following_url":"https://api.github.com/users/PolymerLabs/following{/other_user}","gists_url":"https://api.github.com/users/PolymerLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerLabs/subscriptions","organizations_url":"https://api.github.com/users/PolymerLabs/orgs","repos_url":"https://api.github.com/users/PolymerLabs/repos","events_url":"https://api.github.com/users/PolymerLabs/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":108609951,"name":"project-health","full_name":"PolymerLabs/project-health","owner":{"login":"PolymerLabs","id":5912903,"avatar_url":"https://avatars2.githubusercontent.com/u/5912903?v=4","gravatar_id":"","url":"https://api.github.com/users/PolymerLabs","html_url":"https://github.com/PolymerLabs","followers_url":"https://api.github.com/users/PolymerLabs/followers","following_url":"https://api.github.com/users/PolymerLabs/following{/other_user}","gists_url":"https://api.github.com/users/PolymerLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerLabs/subscriptions","organizations_url":"https://api.github.com/users/PolymerLabs/orgs","repos_url":"https://api.github.com/users/PolymerLabs/repos","events_url":"https://api.github.com/users/PolymerLabs/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolymerLabs/project-health","description":null,"fork":false,"url":"https://api.github.com/repos/PolymerLabs/project-health","forks_url":"https://api.github.com/repos/PolymerLabs/project-health/forks","keys_url":"https://api.github.com/repos/PolymerLabs/project-health/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerLabs/project-health/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerLabs/project-health/teams","hooks_url":"https://api.github.com/repos/PolymerLabs/project-health/hooks","issue_events_url":"https://api.github.com/repos/PolymerLabs/project-health/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerLabs/project-health/events","assignees_url":"https://api.github.com/repos/PolymerLabs/project-health/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerLabs/project-health/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerLabs/project-health/tags","blobs_url":"https://api.github.com/repos/PolymerLabs/project-health/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerLabs/project-health/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerLabs/project-health/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerLabs/project-health/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerLabs/project-health/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerLabs/project-health/languages","stargazers_url":"https://api.github.com/repos/PolymerLabs/project-health/stargazers","contributors_url":"https://api.github.com/repos/PolymerLabs/project-health/contributors","subscribers_url":"https://api.github.com/repos/PolymerLabs/project-health/subscribers","subscription_url":"https://api.github.com/repos/PolymerLabs/project-health/subscription","commits_url":"https://api.github.com/repos/PolymerLabs/project-health/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerLabs/project-health/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerLabs/project-health/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerLabs/project-health/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerLabs/project-health/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerLabs/project-health/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerLabs/project-health/merges","archive_url":"https://api.github.com/repos/PolymerLabs/project-health/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerLabs/project-health/downloads","issues_url":"https://api.github.com/repos/PolymerLabs/project-health/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerLabs/project-health/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerLabs/project-health/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerLabs/project-health/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerLabs/project-health/labels{/name}","releases_url":"https://api.github.com/repos/PolymerLabs/project-health/releases{/id}","deployments_url":"https://api.github.com/repos/PolymerLabs/project-health/deployments","created_at":"2017-10-28T01:16:52Z","updated_at":"2018-04-06T16:31:07Z","pushed_at":"2018-04-06T17:33:35Z","git_url":"git://github.com/PolymerLabs/project-health.git","ssh_url":"git@github.com:PolymerLabs/project-health.git","clone_url":"https://github.com/PolymerLabs/project-health.git","svn_url":"https://github.com/PolymerLabs/project-health","homepage":null,"size":5150,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":2,"open_issues":35,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolymerLabs/project-health/pulls/390"},"html":{"href":"https://github.com/PolymerLabs/project-health/pull/390"},"issue":{"href":"https://api.github.com/repos/PolymerLabs/project-health/issues/390"},"comments":{"href":"https://api.github.com/repos/PolymerLabs/project-health/issues/390/comments"},"review_comments":{"href":"https://api.github.com/repos/PolymerLabs/project-health/pulls/390/comments"},"review_comment":{"href":"https://api.github.com/repos/PolymerLabs/project-health/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolymerLabs/project-health/pulls/390/commits"},"statuses":{"href":"https://api.github.com/repos/PolymerLabs/project-health/statuses/efa62926be393aa5c087d4520c654acb3b19ab15"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"samuelli"}}