{"action":"closed","number":307,"pull_request":{"url":"https://api.github.com/repos/ssbc/phoenix/pulls/307","id":28680633,"html_url":"https://github.com/ssbc/phoenix/pull/307","diff_url":"https://github.com/ssbc/phoenix/pull/307.diff","patch_url":"https://github.com/ssbc/phoenix/pull/307.patch","issue_url":"https://api.github.com/repos/ssbc/phoenix/issues/307","number":307,"state":"closed","locked":false,"title":"use relatedMessages instead of custom index","user":{"login":"dominictarr","id":259374,"avatar_url":"https://avatars.githubusercontent.com/u/259374?v=3","gravatar_id":"","url":"https://api.github.com/users/dominictarr","html_url":"https://github.com/dominictarr","followers_url":"https://api.github.com/users/dominictarr/followers","following_url":"https://api.github.com/users/dominictarr/following{/other_user}","gists_url":"https://api.github.com/users/dominictarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dominictarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominictarr/subscriptions","organizations_url":"https://api.github.com/users/dominictarr/orgs","repos_url":"https://api.github.com/users/dominictarr/repos","events_url":"https://api.github.com/users/dominictarr/events{/privacy}","received_events_url":"https://api.github.com/users/dominictarr/received_events","type":"User","site_admin":false},"body":"This pull request paves the cowpath of the custom index defined by phoenix-api, by using the new generic query defined in secure-scuttlebutt.\r\n\r\nAlso, removed getParentPost wasn't necessary... we can just use an ordinary `get` here,\r\nbecause we already have the content of the message.\r\nI just grabbed the top level `repliesTo.msg` link, since post messages have a standard structure.\r\n\r\nI think if we replaced the way reply counts are gotten for the inbox we could ditch the thread indexes entirely.","created_at":"2015-02-04T22:17:56Z","updated_at":"2015-02-05T04:28:16Z","closed_at":"2015-02-05T04:28:16Z","merged_at":"2015-02-05T04:28:16Z","merge_commit_sha":"b9959908b3d6753fd4aeca3ade224424b57dd175","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ssbc/phoenix/pulls/307/commits","review_comments_url":"https://api.github.com/repos/ssbc/phoenix/pulls/307/comments","review_comment_url":"https://api.github.com/repos/ssbc/phoenix/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ssbc/phoenix/issues/307/comments","statuses_url":"https://api.github.com/repos/ssbc/phoenix/statuses/063125d94e17974813886babb8a6ed22410c95ee","head":{"label":"dominictarr:related","ref":"related","sha":"063125d94e17974813886babb8a6ed22410c95ee","user":{"login":"dominictarr","id":259374,"avatar_url":"https://avatars.githubusercontent.com/u/259374?v=3","gravatar_id":"","url":"https://api.github.com/users/dominictarr","html_url":"https://github.com/dominictarr","followers_url":"https://api.github.com/users/dominictarr/followers","following_url":"https://api.github.com/users/dominictarr/following{/other_user}","gists_url":"https://api.github.com/users/dominictarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dominictarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominictarr/subscriptions","organizations_url":"https://api.github.com/users/dominictarr/orgs","repos_url":"https://api.github.com/users/dominictarr/repos","events_url":"https://api.github.com/users/dominictarr/events{/privacy}","received_events_url":"https://api.github.com/users/dominictarr/received_events","type":"User","site_admin":false},"repo":{"id":24266978,"name":"phoenix","full_name":"dominictarr/phoenix","owner":{"login":"dominictarr","id":259374,"avatar_url":"https://avatars.githubusercontent.com/u/259374?v=3","gravatar_id":"","url":"https://api.github.com/users/dominictarr","html_url":"https://github.com/dominictarr","followers_url":"https://api.github.com/users/dominictarr/followers","following_url":"https://api.github.com/users/dominictarr/following{/other_user}","gists_url":"https://api.github.com/users/dominictarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dominictarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominictarr/subscriptions","organizations_url":"https://api.github.com/users/dominictarr/orgs","repos_url":"https://api.github.com/users/dominictarr/repos","events_url":"https://api.github.com/users/dominictarr/events{/privacy}","received_events_url":"https://api.github.com/users/dominictarr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dominictarr/phoenix","description":"Distributed social network","fork":true,"url":"https://api.github.com/repos/dominictarr/phoenix","forks_url":"https://api.github.com/repos/dominictarr/phoenix/forks","keys_url":"https://api.github.com/repos/dominictarr/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dominictarr/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dominictarr/phoenix/teams","hooks_url":"https://api.github.com/repos/dominictarr/phoenix/hooks","issue_events_url":"https://api.github.com/repos/dominictarr/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/dominictarr/phoenix/events","assignees_url":"https://api.github.com/repos/dominictarr/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/dominictarr/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/dominictarr/phoenix/tags","blobs_url":"https://api.github.com/repos/dominictarr/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dominictarr/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dominictarr/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/dominictarr/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dominictarr/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/dominictarr/phoenix/languages","stargazers_url":"https://api.github.com/repos/dominictarr/phoenix/stargazers","contributors_url":"https://api.github.com/repos/dominictarr/phoenix/contributors","subscribers_url":"https://api.github.com/repos/dominictarr/phoenix/subscribers","subscription_url":"https://api.github.com/repos/dominictarr/phoenix/subscription","commits_url":"https://api.github.com/repos/dominictarr/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/dominictarr/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/dominictarr/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/dominictarr/phoenix/issues/comments/{number}","contents_url":"https://api.github.com/repos/dominictarr/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/dominictarr/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dominictarr/phoenix/merges","archive_url":"https://api.github.com/repos/dominictarr/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dominictarr/phoenix/downloads","issues_url":"https://api.github.com/repos/dominictarr/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/dominictarr/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/dominictarr/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/dominictarr/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dominictarr/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/dominictarr/phoenix/releases{/id}","created_at":"2014-09-20T15:53:13Z","updated_at":"2014-11-22T17:00:15Z","pushed_at":"2015-02-05T04:26:43Z","git_url":"git://github.com/dominictarr/phoenix.git","ssh_url":"git@github.com:dominictarr/phoenix.git","clone_url":"https://github.com/dominictarr/phoenix.git","svn_url":"https://github.com/dominictarr/phoenix","homepage":"","size":29337,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"master"}},"base":{"label":"ssbc:master","ref":"master","sha":"e661254616d5a21610df52970c8d0c40d3d3d917","user":{"login":"ssbc","id":10190339,"avatar_url":"https://avatars.githubusercontent.com/u/10190339?v=3","gravatar_id":"","url":"https://api.github.com/users/ssbc","html_url":"https://github.com/ssbc","followers_url":"https://api.github.com/users/ssbc/followers","following_url":"https://api.github.com/users/ssbc/following{/other_user}","gists_url":"https://api.github.com/users/ssbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbc/subscriptions","organizations_url":"https://api.github.com/users/ssbc/orgs","repos_url":"https://api.github.com/users/ssbc/repos","events_url":"https://api.github.com/users/ssbc/events{/privacy}","received_events_url":"https://api.github.com/users/ssbc/received_events","type":"Organization","site_admin":false},"repo":{"id":22821314,"name":"phoenix","full_name":"ssbc/phoenix","owner":{"login":"ssbc","id":10190339,"avatar_url":"https://avatars.githubusercontent.com/u/10190339?v=3","gravatar_id":"","url":"https://api.github.com/users/ssbc","html_url":"https://github.com/ssbc","followers_url":"https://api.github.com/users/ssbc/followers","following_url":"https://api.github.com/users/ssbc/following{/other_user}","gists_url":"https://api.github.com/users/ssbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbc/subscriptions","organizations_url":"https://api.github.com/users/ssbc/orgs","repos_url":"https://api.github.com/users/ssbc/repos","events_url":"https://api.github.com/users/ssbc/events{/privacy}","received_events_url":"https://api.github.com/users/ssbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ssbc/phoenix","description":"scuttlebot's web ui","fork":false,"url":"https://api.github.com/repos/ssbc/phoenix","forks_url":"https://api.github.com/repos/ssbc/phoenix/forks","keys_url":"https://api.github.com/repos/ssbc/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ssbc/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ssbc/phoenix/teams","hooks_url":"https://api.github.com/repos/ssbc/phoenix/hooks","issue_events_url":"https://api.github.com/repos/ssbc/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/ssbc/phoenix/events","assignees_url":"https://api.github.com/repos/ssbc/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/ssbc/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/ssbc/phoenix/tags","blobs_url":"https://api.github.com/repos/ssbc/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ssbc/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ssbc/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/ssbc/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ssbc/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/ssbc/phoenix/languages","stargazers_url":"https://api.github.com/repos/ssbc/phoenix/stargazers","contributors_url":"https://api.github.com/repos/ssbc/phoenix/contributors","subscribers_url":"https://api.github.com/repos/ssbc/phoenix/subscribers","subscription_url":"https://api.github.com/repos/ssbc/phoenix/subscription","commits_url":"https://api.github.com/repos/ssbc/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/ssbc/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/ssbc/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/ssbc/phoenix/issues/comments/{number}","contents_url":"https://api.github.com/repos/ssbc/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/ssbc/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ssbc/phoenix/merges","archive_url":"https://api.github.com/repos/ssbc/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ssbc/phoenix/downloads","issues_url":"https://api.github.com/repos/ssbc/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/ssbc/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/ssbc/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/ssbc/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ssbc/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/ssbc/phoenix/releases{/id}","created_at":"2014-08-10T23:36:22Z","updated_at":"2015-02-05T04:28:16Z","pushed_at":"2015-02-05T04:28:16Z","git_url":"git://github.com/ssbc/phoenix.git","ssh_url":"git@github.com:ssbc/phoenix.git","clone_url":"https://github.com/ssbc/phoenix.git","svn_url":"https://github.com/ssbc/phoenix","homepage":"","size":33317,"stargazers_count":150,"watchers_count":150,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":59,"forks":16,"open_issues":59,"watchers":150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ssbc/phoenix/pulls/307"},"html":{"href":"https://github.com/ssbc/phoenix/pull/307"},"issue":{"href":"https://api.github.com/repos/ssbc/phoenix/issues/307"},"comments":{"href":"https://api.github.com/repos/ssbc/phoenix/issues/307/comments"},"review_comments":{"href":"https://api.github.com/repos/ssbc/phoenix/pulls/307/comments"},"review_comment":{"href":"https://api.github.com/repos/ssbc/phoenix/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ssbc/phoenix/pulls/307/commits"},"statuses":{"href":"https://api.github.com/repos/ssbc/phoenix/statuses/063125d94e17974813886babb8a6ed22410c95ee"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pfraze","id":1270099,"avatar_url":"https://avatars.githubusercontent.com/u/1270099?v=3","gravatar_id":"","url":"https://api.github.com/users/pfraze","html_url":"https://github.com/pfraze","followers_url":"https://api.github.com/users/pfraze/followers","following_url":"https://api.github.com/users/pfraze/following{/other_user}","gists_url":"https://api.github.com/users/pfraze/gists{/gist_id}","starred_url":"https://api.github.com/users/pfraze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfraze/subscriptions","organizations_url":"https://api.github.com/users/pfraze/orgs","repos_url":"https://api.github.com/users/pfraze/repos","events_url":"https://api.github.com/users/pfraze/events{/privacy}","received_events_url":"https://api.github.com/users/pfraze/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":3,"additions":21,"deletions":13,"changed_files":3}}