{"action":"closed","number":27440,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/27440","id":218175096,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MTc1MDk2","html_url":"https://github.com/Automattic/wp-calypso/pull/27440","diff_url":"https://github.com/Automattic/wp-calypso/pull/27440.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/27440.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/27440","number":27440,"state":"closed","locked":false,"title":"Reader: fix x-post combining for updates and gaps","user":{"login":"bluefuton","id":17325,"node_id":"MDQ6VXNlcjE3MzI1","avatar_url":"https://avatars2.githubusercontent.com/u/17325?v=4","gravatar_id":"","url":"https://api.github.com/users/bluefuton","html_url":"https://github.com/bluefuton","followers_url":"https://api.github.com/users/bluefuton/followers","following_url":"https://api.github.com/users/bluefuton/following{/other_user}","gists_url":"https://api.github.com/users/bluefuton/gists{/gist_id}","starred_url":"https://api.github.com/users/bluefuton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluefuton/subscriptions","organizations_url":"https://api.github.com/users/bluefuton/orgs","repos_url":"https://api.github.com/users/bluefuton/repos","events_url":"https://api.github.com/users/bluefuton/events{/privacy}","received_events_url":"https://api.github.com/users/bluefuton/received_events","type":"User","site_admin":false},"body":"In https://github.com/Automattic/wp-calypso/pull/25823 we started combining duplicate x-posts in the Reader stream, like this:\r\n\r\n![image](https://user-images.githubusercontent.com/17325/46054733-b3c6a880-c19c-11e8-8411-8775c3462e2f.png)\r\n\r\nI noticed that the x-post combining wasn't happening when posts were loaded from a 'gap':\r\n\r\n<img width=\"820\" alt=\"screen shot 2018-09-26 at 14 54 26\" src=\"https://user-images.githubusercontent.com/17325/46054630-40bd3200-c19c-11e8-8edd-3a61d796528d.png\">\r\n\r\n...or from the orange update pill that appears to tell you about new posts:\r\n\r\n<img width=\"195\" alt=\"screen shot 2018-09-26 at 14 56 12\" src=\"https://user-images.githubusercontent.com/17325/46054645-54689880-c19c-11e8-8552-f7c0442ca527.png\">\r\n\r\nThis PR applies x-post combining for those scenarios too.\r\n\r\n### Testing instructions\r\n\r\nVisit a stream with x-posts (like the team stream). Make sure that consecutive x-posts for the same original post have been combined like this:\r\n\r\n![image](https://user-images.githubusercontent.com/17325/46054738-b88b5c80-c19c-11e8-92ce-605543aad9d8.png)\r\n\r\nTo trigger the update pill or a gap, you can browse the team stream at a previous point in time, like this:\r\n\r\nhttp://calypso.localhost:3000/read/a8c?at=2018-09-25T04:00:00Z\r\n","created_at":"2018-09-26T02:58:18Z","updated_at":"2018-10-23T23:01:42Z","closed_at":"2018-10-23T23:01:42Z","merged_at":"2018-10-23T23:01:42Z","merge_commit_sha":"0a923cec8ae1007c813533f3aa87598d81b4109d","assignee":{"login":"bluefuton","id":17325,"node_id":"MDQ6VXNlcjE3MzI1","avatar_url":"https://avatars2.githubusercontent.com/u/17325?v=4","gravatar_id":"","url":"https://api.github.com/users/bluefuton","html_url":"https://github.com/bluefuton","followers_url":"https://api.github.com/users/bluefuton/followers","following_url":"https://api.github.com/users/bluefuton/following{/other_user}","gists_url":"https://api.github.com/users/bluefuton/gists{/gist_id}","starred_url":"https://api.github.com/users/bluefuton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluefuton/subscriptions","organizations_url":"https://api.github.com/users/bluefuton/orgs","repos_url":"https://api.github.com/users/bluefuton/repos","events_url":"https://api.github.com/users/bluefuton/events{/privacy}","received_events_url":"https://api.github.com/users/bluefuton/received_events","type":"User","site_admin":false},"assignees":[{"login":"bluefuton","id":17325,"node_id":"MDQ6VXNlcjE3MzI1","avatar_url":"https://avatars2.githubusercontent.com/u/17325?v=4","gravatar_id":"","url":"https://api.github.com/users/bluefuton","html_url":"https://github.com/bluefuton","followers_url":"https://api.github.com/users/bluefuton/followers","following_url":"https://api.github.com/users/bluefuton/following{/other_user}","gists_url":"https://api.github.com/users/bluefuton/gists{/gist_id}","starred_url":"https://api.github.com/users/bluefuton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluefuton/subscriptions","organizations_url":"https://api.github.com/users/bluefuton/orgs","repos_url":"https://api.github.com/users/bluefuton/repos","events_url":"https://api.github.com/users/bluefuton/events{/privacy}","received_events_url":"https://api.github.com/users/bluefuton/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"blowery","id":14350,"node_id":"MDQ6VXNlcjE0MzUw","avatar_url":"https://avatars1.githubusercontent.com/u/14350?v=4","gravatar_id":"","url":"https://api.github.com/users/blowery","html_url":"https://github.com/blowery","followers_url":"https://api.github.com/users/blowery/followers","following_url":"https://api.github.com/users/blowery/following{/other_user}","gists_url":"https://api.github.com/users/blowery/gists{/gist_id}","starred_url":"https://api.github.com/users/blowery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowery/subscriptions","organizations_url":"https://api.github.com/users/blowery/orgs","repos_url":"https://api.github.com/users/blowery/repos","events_url":"https://api.github.com/users/blowery/events{/privacy}","received_events_url":"https://api.github.com/users/blowery/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":285010024,"node_id":"MDU6TGFiZWwyODUwMTAwMjQ=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Reader","name":"Reader","color":"006b75","default":false},{"id":285010030,"node_id":"MDU6TGFiZWwyODUwMTAwMzA=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Ready%20to%20Merge","name":"[Status] Ready to Merge","color":"d4fb79","default":false}],"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/40","html_url":"https://github.com/Automattic/wp-calypso/milestone/40","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/40/labels","id":1437662,"node_id":"MDk6TWlsZXN0b25lMTQzNzY2Mg==","number":40,"title":"Reader: Bug Backlog","description":"Reader bugs that we've decided to fix.\r\n\r\nThis is a bucket milestone and not date driven. It serves to hold issues until we decide to actively work on them.\r\n\r\nEnhancements and new features should not be part of this milestone.","creator":{"login":"blowery","id":14350,"node_id":"MDQ6VXNlcjE0MzUw","avatar_url":"https://avatars1.githubusercontent.com/u/14350?v=4","gravatar_id":"","url":"https://api.github.com/users/blowery","html_url":"https://github.com/blowery","followers_url":"https://api.github.com/users/blowery/followers","following_url":"https://api.github.com/users/blowery/following{/other_user}","gists_url":"https://api.github.com/users/blowery/gists{/gist_id}","starred_url":"https://api.github.com/users/blowery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowery/subscriptions","organizations_url":"https://api.github.com/users/blowery/orgs","repos_url":"https://api.github.com/users/blowery/repos","events_url":"https://api.github.com/users/blowery/events{/privacy}","received_events_url":"https://api.github.com/users/blowery/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":212,"state":"open","created_at":"2015-12-01T15:04:01Z","updated_at":"2018-10-23T23:01:42Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/27440/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/27440/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/27440/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/56b1249482e9e94db6db20183aab123bed3788c8","head":{"label":"Automattic:fix/reader/xpost-combining-updates-and-gaps","ref":"fix/reader/xpost-combining-updates-and-gaps","sha":"56b1249482e9e94db6db20183aab123bed3788c8","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"node_id":"MDEwOlJlcG9zaXRvcnk0NTkzNjg5NQ==","name":"wp-calypso","full_name":"Automattic/wp-calypso","private":false,"owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-10-23T19:50:51Z","pushed_at":"2018-10-23T23:01:42Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":115180,"stargazers_count":10524,"watchers_count":10524,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1481,"mirror_url":null,"archived":false,"open_issues_count":1638,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1481,"open_issues":1638,"watchers":10524,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"4212ee9de19108bb74695d17724857d529cd6246","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"node_id":"MDEwOlJlcG9zaXRvcnk0NTkzNjg5NQ==","name":"wp-calypso","full_name":"Automattic/wp-calypso","private":false,"owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-10-23T19:50:51Z","pushed_at":"2018-10-23T23:01:42Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":115180,"stargazers_count":10524,"watchers_count":10524,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1481,"mirror_url":null,"archived":false,"open_issues_count":1638,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1481,"open_issues":1638,"watchers":10524,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/27440"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/27440"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/27440"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/27440/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/27440/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/27440/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/56b1249482e9e94db6db20183aab123bed3788c8"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"bluefuton","id":17325,"node_id":"MDQ6VXNlcjE3MzI1","avatar_url":"https://avatars2.githubusercontent.com/u/17325?v=4","gravatar_id":"","url":"https://api.github.com/users/bluefuton","html_url":"https://github.com/bluefuton","followers_url":"https://api.github.com/users/bluefuton/followers","following_url":"https://api.github.com/users/bluefuton/following{/other_user}","gists_url":"https://api.github.com/users/bluefuton/gists{/gist_id}","starred_url":"https://api.github.com/users/bluefuton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluefuton/subscriptions","organizations_url":"https://api.github.com/users/bluefuton/orgs","repos_url":"https://api.github.com/users/bluefuton/repos","events_url":"https://api.github.com/users/bluefuton/events{/privacy}","received_events_url":"https://api.github.com/users/bluefuton/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":70,"deletions":8,"changed_files":5}}
{"actor":{"display_login":"bluefuton"}}