{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/27402193","id":27402193,"diff_hunk":"@@ -615,6 +655,9 @@ class Node(GuidStoredObject, AddonModelMixin):\n     # {<User.id>: [<Node._id>, <Node2._id>, ...] }\n     child_node_subscriptions = fields.DictionaryField(default=dict)\n \n+    # Files that contains comments\n+    commented_files = fields.DictionaryField(default=dict)","path":"website/project/model.py","position":97,"original_position":97,"commit_id":"ab7ae19ea8145b143621dadef30aaab529baabde","original_commit_id":"ab7ae19ea8145b143621dadef30aaab529baabde","user":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"body":"OK, if this field is necessary, then please document its format.","created_at":"2015-03-30T15:46:37Z","updated_at":"2015-03-30T15:46:37Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/1762#discussion_r27402193","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/1762","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/27402193"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/1762#discussion_r27402193"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/1762"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/1762","id":29101229,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/1762","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/1762.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/1762.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1762","number":1762,"state":"open","locked":false,"title":"Feature/comment pane","user":{"login":"huangginny","id":8628591,"avatar_url":"https://avatars.githubusercontent.com/u/8628591?v=3","gravatar_id":"","url":"https://api.github.com/users/huangginny","html_url":"https://github.com/huangginny","followers_url":"https://api.github.com/users/huangginny/followers","following_url":"https://api.github.com/users/huangginny/following{/other_user}","gists_url":"https://api.github.com/users/huangginny/gists{/gist_id}","starred_url":"https://api.github.com/users/huangginny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangginny/subscriptions","organizations_url":"https://api.github.com/users/huangginny/orgs","repos_url":"https://api.github.com/users/huangginny/repos","events_url":"https://api.github.com/users/huangginny/events{/privacy}","received_events_url":"https://api.github.com/users/huangginny/received_events","type":"User","site_admin":false},"body":"# Todo list \r\n- [x] Load comments and check whether file exists at the same time\r\n    - [x] Loading state and loaded state\r\n    - [x] Call waterbutler\r\n    - [x] Recent comments refactor\r\n- [x] Show comment but say \"File deleted\"\r\n- [x] Remove unnecessary API calls to fetch discussion users\r\n- [x] Make hidden comments not expandable (using knockout)\r\n- [x] May need to remove \"unread comments\"\r\n    - [x] File timestamps\r\n    - [x] Async call\r\n- [x] Figshare file name\r\n- [ ] Migration\r\n","created_at":"2015-02-11T15:45:32Z","updated_at":"2015-03-30T15:46:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33c62046201cc437aabef2a43b8d1fa48b70802f","assignee":null,"milestone":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/28","html_url":"https://github.com/CenterForOpenScience/osf.io/milestones/0.31.0","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/28/labels","id":1038148,"number":28,"title":"0.31.0","description":"","creator":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":1,"state":"open","created_at":"2015-03-25T13:34:28Z","updated_at":"2015-03-30T15:33:35Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/1762/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/1762/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1762/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/ab7ae19ea8145b143621dadef30aaab529baabde","head":{"label":"huangginny:feature/comment-pane","ref":"feature/comment-pane","sha":"ab7ae19ea8145b143621dadef30aaab529baabde","user":{"login":"huangginny","id":8628591,"avatar_url":"https://avatars.githubusercontent.com/u/8628591?v=3","gravatar_id":"","url":"https://api.github.com/users/huangginny","html_url":"https://github.com/huangginny","followers_url":"https://api.github.com/users/huangginny/followers","following_url":"https://api.github.com/users/huangginny/following{/other_user}","gists_url":"https://api.github.com/users/huangginny/gists{/gist_id}","starred_url":"https://api.github.com/users/huangginny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangginny/subscriptions","organizations_url":"https://api.github.com/users/huangginny/orgs","repos_url":"https://api.github.com/users/huangginny/repos","events_url":"https://api.github.com/users/huangginny/events{/privacy}","received_events_url":"https://api.github.com/users/huangginny/received_events","type":"User","site_admin":false},"repo":{"id":26926810,"name":"osf.io","full_name":"huangginny/osf.io","owner":{"login":"huangginny","id":8628591,"avatar_url":"https://avatars.githubusercontent.com/u/8628591?v=3","gravatar_id":"","url":"https://api.github.com/users/huangginny","html_url":"https://github.com/huangginny","followers_url":"https://api.github.com/users/huangginny/followers","following_url":"https://api.github.com/users/huangginny/following{/other_user}","gists_url":"https://api.github.com/users/huangginny/gists{/gist_id}","starred_url":"https://api.github.com/users/huangginny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangginny/subscriptions","organizations_url":"https://api.github.com/users/huangginny/orgs","repos_url":"https://api.github.com/users/huangginny/repos","events_url":"https://api.github.com/users/huangginny/events{/privacy}","received_events_url":"https://api.github.com/users/huangginny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/huangginny/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/huangginny/osf.io","forks_url":"https://api.github.com/repos/huangginny/osf.io/forks","keys_url":"https://api.github.com/repos/huangginny/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huangginny/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huangginny/osf.io/teams","hooks_url":"https://api.github.com/repos/huangginny/osf.io/hooks","issue_events_url":"https://api.github.com/repos/huangginny/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/huangginny/osf.io/events","assignees_url":"https://api.github.com/repos/huangginny/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/huangginny/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/huangginny/osf.io/tags","blobs_url":"https://api.github.com/repos/huangginny/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huangginny/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huangginny/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/huangginny/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huangginny/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/huangginny/osf.io/languages","stargazers_url":"https://api.github.com/repos/huangginny/osf.io/stargazers","contributors_url":"https://api.github.com/repos/huangginny/osf.io/contributors","subscribers_url":"https://api.github.com/repos/huangginny/osf.io/subscribers","subscription_url":"https://api.github.com/repos/huangginny/osf.io/subscription","commits_url":"https://api.github.com/repos/huangginny/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/huangginny/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/huangginny/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/huangginny/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/huangginny/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/huangginny/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huangginny/osf.io/merges","archive_url":"https://api.github.com/repos/huangginny/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huangginny/osf.io/downloads","issues_url":"https://api.github.com/repos/huangginny/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/huangginny/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/huangginny/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/huangginny/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huangginny/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/huangginny/osf.io/releases{/id}","created_at":"2014-11-20T18:53:18Z","updated_at":"2015-03-25T16:37:45Z","pushed_at":"2015-03-27T18:31:40Z","git_url":"git://github.com/huangginny/osf.io.git","ssh_url":"git@github.com:huangginny/osf.io.git","clone_url":"https://github.com/huangginny/osf.io.git","svn_url":"https://github.com/huangginny/osf.io","homepage":"http://osf.io","size":86266,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"f31fc9ecbfda9ff16a3f949998f806be8cbf8da2","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2015-03-27T21:48:36Z","pushed_at":"2015-03-30T14:19:29Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":190635,"stargazers_count":88,"watchers_count":88,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":384,"forks":64,"open_issues":384,"watchers":88,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/1762"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/1762"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1762"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1762/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/1762/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/1762/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/ab7ae19ea8145b143621dadef30aaab529baabde"}}}}