{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/3097","labels_url":"https://api.github.com/repos/odoo/odoo/issues/3097/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/3097/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/3097/events","html_url":"https://github.com/odoo/odoo/pull/3097","id":45862612,"number":3097,"title":"[FIX] website_blog: Fixed the next post loop issue.","user":{"login":"rgo-odoo","id":7601649,"avatar_url":"https://avatars.githubusercontent.com/u/7601649?v=3","gravatar_id":"","url":"https://api.github.com/users/rgo-odoo","html_url":"https://github.com/rgo-odoo","followers_url":"https://api.github.com/users/rgo-odoo/followers","following_url":"https://api.github.com/users/rgo-odoo/following{/other_user}","gists_url":"https://api.github.com/users/rgo-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/rgo-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgo-odoo/subscriptions","organizations_url":"https://api.github.com/users/rgo-odoo/orgs","repos_url":"https://api.github.com/users/rgo-odoo/repos","events_url":"https://api.github.com/users/rgo-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/rgo-odoo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/odoo/odoo/labels/OE","name":"OE","color":"a24689"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-10-15T12:56:59Z","updated_at":"2015-01-28T10:17:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/3097","html_url":"https://github.com/odoo/odoo/pull/3097","diff_url":"https://github.com/odoo/odoo/pull/3097.diff","patch_url":"https://github.com/odoo/odoo/pull/3097.patch"},"body":"When all blog posts are been visited by the user then clicking on \"Read Next\" should start looping into those visited blogs again, but currently, it stuck looping into the same blog post(or 2 blog posts), video ref: https://docs.google.com/a/openerp.com/file/d/0BxqHe5rtIxY0UTl2Rmlkb2JkTkk/edit\r\n\r\nNow, in the current code, search on \"blog.post\" object performed twice and each has a problem, first search was performed ordering by \"ranking\", a function field, which is not supported and second search was performed on \"id\" of \"blog.blog\" object. This branch improves this.\r\n\r\nWith this fix, when client visits the blog post first time(that is, 'visited_blogs' cookies is not set) it will display the most visited blog posts first and then once all blog posts are been visited it will restart listing the blog posts referring the 'visited_blogs' cookies(that is, in the same sequence as it was displayed first time to client).\r\n\r\nKindly review it and share your feedback on it.\r\nThanks."},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/71810739","html_url":"https://github.com/odoo/odoo/pull/3097#issuecomment-71810739","issue_url":"https://api.github.com/repos/odoo/odoo/issues/3097","id":71810739,"user":{"login":"rgo-odoo","id":7601649,"avatar_url":"https://avatars.githubusercontent.com/u/7601649?v=3","gravatar_id":"","url":"https://api.github.com/users/rgo-odoo","html_url":"https://github.com/rgo-odoo","followers_url":"https://api.github.com/users/rgo-odoo/followers","following_url":"https://api.github.com/users/rgo-odoo/following{/other_user}","gists_url":"https://api.github.com/users/rgo-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/rgo-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgo-odoo/subscriptions","organizations_url":"https://api.github.com/users/rgo-odoo/orgs","repos_url":"https://api.github.com/users/rgo-odoo/repos","events_url":"https://api.github.com/users/rgo-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/rgo-odoo/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T10:17:47Z","updated_at":"2015-01-28T10:17:47Z","body":"Thanks for the review @mart-e. Now \"Read Next\" will present the next post as shown in the main page."}}