{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/59642932","id":59642932,"diff_hunk":"@@ -1084,6 +1084,11 @@ Undocumented.prototype.readFeed = function( query, fn ) {\n \tthis.wpcom.req.get( '/read/feed/' + encodeURIComponent( query.ID ), params, fn );\n };\n \n+Undocumented.prototype.discoverFeed = function( query, fn ) {\n+\tdebug( '/read/feed' );\n+\tthis.wpcom.req.get( '/read/feed/', query, fn );","path":"client/lib/wpcom-undocumented/lib/undocumented.js","position":null,"original_position":6,"commit_id":"ba190406e1bfb760e854d07b500a9785df8f5ef2","original_commit_id":"978405e58381b5b84fe61b6af9f7c028322eecd7","user":{"login":"tyxla","id":8436925,"avatar_url":"https://avatars.githubusercontent.com/u/8436925?v=3","gravatar_id":"","url":"https://api.github.com/users/tyxla","html_url":"https://github.com/tyxla","followers_url":"https://api.github.com/users/tyxla/followers","following_url":"https://api.github.com/users/tyxla/following{/other_user}","gists_url":"https://api.github.com/users/tyxla/gists{/gist_id}","starred_url":"https://api.github.com/users/tyxla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyxla/subscriptions","organizations_url":"https://api.github.com/users/tyxla/orgs","repos_url":"https://api.github.com/users/tyxla/repos","events_url":"https://api.github.com/users/tyxla/events{/privacy}","received_events_url":"https://api.github.com/users/tyxla/received_events","type":"User","site_admin":false},"body":"Done, thanks for the tip.","created_at":"2016-04-13T23:23:50Z","updated_at":"2016-04-13T23:23:50Z","html_url":"https://github.com/Automattic/wp-calypso/pull/4615#discussion_r59642932","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4615","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/59642932"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/4615#discussion_r59642932"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4615"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4615","id":65842413,"html_url":"https://github.com/Automattic/wp-calypso/pull/4615","diff_url":"https://github.com/Automattic/wp-calypso/pull/4615.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/4615.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4615","number":4615,"state":"open","locked":false,"title":"Reader: Implement feed discovery by URL in read/feed","user":{"login":"tyxla","id":8436925,"avatar_url":"https://avatars.githubusercontent.com/u/8436925?v=3","gravatar_id":"","url":"https://api.github.com/users/tyxla","html_url":"https://github.com/tyxla","followers_url":"https://api.github.com/users/tyxla/followers","following_url":"https://api.github.com/users/tyxla/following{/other_user}","gists_url":"https://api.github.com/users/tyxla/gists{/gist_id}","starred_url":"https://api.github.com/users/tyxla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyxla/subscriptions","organizations_url":"https://api.github.com/users/tyxla/orgs","repos_url":"https://api.github.com/users/tyxla/repos","events_url":"https://api.github.com/users/tyxla/events{/privacy}","received_events_url":"https://api.github.com/users/tyxla/received_events","type":"User","site_admin":false},"body":"This PR adds support for `/read/feeds/` usage with a domain/URL, directing the request to a new discovery endpoint instead of the default `/read/feed/:id` endpoint. \r\n\r\nAn example URL that uses this functionality in Calypso would look like this: http://calypso.localhost:3000/read/feeds/blog.chromium.org\r\n\r\nIf a feed is found during the discovery process, the stream of that feed will be loaded.\r\n\r\nThe old `/read/feeds/:id` URLs will still use the default `/read/feed/:id` endpoint, like they did before.\r\n\r\nThe new endpoint is still in development. Some notes about it:\r\n* It will live in `/read/feed/?url=$url`, so an example request to it will look like this: https://public-api.wordpress.com/rest/v1/read/feed/?url=blog.chromium.org\r\n* It will return an array of found feeds, where each feed will contain a subscribe URL and may contain a feed ID.\r\n* Response of the new endpoint would look similar to this example:\r\n\r\n```\r\n{\r\n\t\"feeds\" : [\r\n\t\t{\r\n\t\t\t\"subscribe_URL\": \"http:\\/\\/blog.chromium.org\",\r\n\t\t\t\"feed_ID\":\"46147304\"\r\n\t\t}\r\n\t]\r\n}\r\n```\r\n\r\nTesting will be possible once the new endpoint is ready and deployed live.\r\n\r\n/cc @blowery, @mdawaffe","created_at":"2016-04-08T20:25:01Z","updated_at":"2016-04-13T23:23:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3dc7f35e44774617272358003aafbf255fc54798","assignee":null,"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/41","html_url":"https://github.com/Automattic/wp-calypso/milestones/Reader:%20Feature%20Backlog","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/41/labels","id":1437663,"number":41,"title":"Reader: Feature Backlog","description":"Reader feature we've decided to tackle.\r\n\r\nThis is a bucket milestone, not a date driven milestone. Feature Backlog contains feature requests that have been triaged and we have decided to work on them at some point in the future. Bugs should not be included here, they should be triaged to the Bug Backlog.","creator":{"login":"blowery","id":14350,"avatar_url":"https://avatars.githubusercontent.com/u/14350?v=3","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":41,"closed_issues":10,"state":"open","created_at":"2015-12-01T15:05:13Z","updated_at":"2016-04-11T11:41:19Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4615/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4615/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/4615/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/ba190406e1bfb760e854d07b500a9785df8f5ef2","head":{"label":"tyxla:try/read-feed-url-discovery","ref":"try/read-feed-url-discovery","sha":"ba190406e1bfb760e854d07b500a9785df8f5ef2","user":{"login":"tyxla","id":8436925,"avatar_url":"https://avatars.githubusercontent.com/u/8436925?v=3","gravatar_id":"","url":"https://api.github.com/users/tyxla","html_url":"https://github.com/tyxla","followers_url":"https://api.github.com/users/tyxla/followers","following_url":"https://api.github.com/users/tyxla/following{/other_user}","gists_url":"https://api.github.com/users/tyxla/gists{/gist_id}","starred_url":"https://api.github.com/users/tyxla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyxla/subscriptions","organizations_url":"https://api.github.com/users/tyxla/orgs","repos_url":"https://api.github.com/users/tyxla/repos","events_url":"https://api.github.com/users/tyxla/events{/privacy}","received_events_url":"https://api.github.com/users/tyxla/received_events","type":"User","site_admin":false},"repo":{"id":53005862,"name":"wp-calypso","full_name":"tyxla/wp-calypso","owner":{"login":"tyxla","id":8436925,"avatar_url":"https://avatars.githubusercontent.com/u/8436925?v=3","gravatar_id":"","url":"https://api.github.com/users/tyxla","html_url":"https://github.com/tyxla","followers_url":"https://api.github.com/users/tyxla/followers","following_url":"https://api.github.com/users/tyxla/following{/other_user}","gists_url":"https://api.github.com/users/tyxla/gists{/gist_id}","starred_url":"https://api.github.com/users/tyxla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyxla/subscriptions","organizations_url":"https://api.github.com/users/tyxla/orgs","repos_url":"https://api.github.com/users/tyxla/repos","events_url":"https://api.github.com/users/tyxla/events{/privacy}","received_events_url":"https://api.github.com/users/tyxla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tyxla/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":true,"url":"https://api.github.com/repos/tyxla/wp-calypso","forks_url":"https://api.github.com/repos/tyxla/wp-calypso/forks","keys_url":"https://api.github.com/repos/tyxla/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tyxla/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tyxla/wp-calypso/teams","hooks_url":"https://api.github.com/repos/tyxla/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/tyxla/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/tyxla/wp-calypso/events","assignees_url":"https://api.github.com/repos/tyxla/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/tyxla/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/tyxla/wp-calypso/tags","blobs_url":"https://api.github.com/repos/tyxla/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tyxla/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tyxla/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/tyxla/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tyxla/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/tyxla/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/tyxla/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/tyxla/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/tyxla/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/tyxla/wp-calypso/subscription","commits_url":"https://api.github.com/repos/tyxla/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/tyxla/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/tyxla/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/tyxla/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/tyxla/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/tyxla/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tyxla/wp-calypso/merges","archive_url":"https://api.github.com/repos/tyxla/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tyxla/wp-calypso/downloads","issues_url":"https://api.github.com/repos/tyxla/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/tyxla/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/tyxla/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/tyxla/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tyxla/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/tyxla/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/tyxla/wp-calypso/deployments","created_at":"2016-03-03T00:01:17Z","updated_at":"2016-03-03T00:01:30Z","pushed_at":"2016-04-13T23:09:47Z","git_url":"git://github.com/tyxla/wp-calypso.git","ssh_url":"git@github.com:tyxla/wp-calypso.git","clone_url":"https://github.com/tyxla/wp-calypso.git","svn_url":"https://github.com/tyxla/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":16522,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"Automattic:master","ref":"master","sha":"87d243be357dc5f79c2e96f81b0029ed36898673","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new 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":"2016-04-13T22:33:19Z","pushed_at":"2016-04-13T23:20:19Z","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":73781,"stargazers_count":7148,"watchers_count":7148,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":859,"mirror_url":null,"open_issues_count":1279,"forks":859,"open_issues":1279,"watchers":7148,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4615"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/4615"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/4615"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/4615/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4615/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/4615/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/ba190406e1bfb760e854d07b500a9785df8f5ef2"}}}}