{"action":"created","issue":{"url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1459","labels_url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1459/labels{/name}","comments_url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1459/comments","events_url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1459/events","html_url":"https://github.com/CPAN-API/metacpan-web/issues/1459","id":58431338,"number":1459,"title":"Feature Request: Adding diff link to recent page","user":{"login":"yuki-kimoto","id":81858,"avatar_url":"https://avatars.githubusercontent.com/u/81858?v=3","gravatar_id":"","url":"https://api.github.com/users/yuki-kimoto","html_url":"https://github.com/yuki-kimoto","followers_url":"https://api.github.com/users/yuki-kimoto/followers","following_url":"https://api.github.com/users/yuki-kimoto/following{/other_user}","gists_url":"https://api.github.com/users/yuki-kimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/yuki-kimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuki-kimoto/subscriptions","organizations_url":"https://api.github.com/users/yuki-kimoto/orgs","repos_url":"https://api.github.com/users/yuki-kimoto/repos","events_url":"https://api.github.com/users/yuki-kimoto/events{/privacy}","received_events_url":"https://api.github.com/users/yuki-kimoto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-21T00:55:47Z","updated_at":"2015-03-05T03:41:22Z","closed_at":null,"body":"I want link to diff of before version in recent page.\r\n\r\nhttps://metacpan.org/recent\r\n\r\nFor example, I want to see the following information easily.\r\n\r\nhttps://metacpan.org/diff/file?target=ZWON/RedisDB-2.40/&source=ZWON/RedisDB-2.39/\r\n\r\nrecent page only have only distribution link.\r\nhttps://metacpan.org/release/RedisDB\r\n\r\nBut I want to see diff information easily in updated module.\r\n\r\nCan you add diff link in recent page?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/comments/77301078","html_url":"https://github.com/CPAN-API/metacpan-web/issues/1459#issuecomment-77301078","issue_url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1459","id":77301078,"user":{"login":"oalders","id":96205,"avatar_url":"https://avatars.githubusercontent.com/u/96205?v=3","gravatar_id":"","url":"https://api.github.com/users/oalders","html_url":"https://github.com/oalders","followers_url":"https://api.github.com/users/oalders/followers","following_url":"https://api.github.com/users/oalders/following{/other_user}","gists_url":"https://api.github.com/users/oalders/gists{/gist_id}","starred_url":"https://api.github.com/users/oalders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oalders/subscriptions","organizations_url":"https://api.github.com/users/oalders/orgs","repos_url":"https://api.github.com/users/oalders/repos","events_url":"https://api.github.com/users/oalders/events{/privacy}","received_events_url":"https://api.github.com/users/oalders/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T03:41:22Z","updated_at":"2015-03-05T03:41:22Z","body":"I think this would be an easier query with a relational database.  Having said that, the api has a /diff endpoint which is basically undocumented.  Given the name of a release it should be able to automatically produce a diff against the previous release:\r\n\r\nhttps://github.com/CPAN-API/cpan-api/blob/master/lib/MetaCPAN/Server/Controller/Diff.pm#L26\r\n\r\nFor example: https://api.metacpan.org/diff/release/HTML-Restrict\r\n\r\nNow that will only work for the very latest authorized releases (unless I'm misreading it), but we could look at tweaking the API endpoint (or adding a new one) in cpan-api to accept an arbitrary release and diff it against the previous release and then have metacpan-web take advantage of this.\r\n\r\nThat would save the lookups needed to produce the feed as we'd only try to get a diff on demand.\r\n\r\n@rwstauner, what do you think?"}}