{"action":"created","issue":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/1452","labels_url":"https://api.github.com/repos/Elgg/Elgg/issues/1452/labels{/name}","comments_url":"https://api.github.com/repos/Elgg/Elgg/issues/1452/comments","events_url":"https://api.github.com/repos/Elgg/Elgg/issues/1452/events","html_url":"https://github.com/Elgg/Elgg/issues/1452","id":11069749,"number":1452,"title":"listing views/pagination do not handle elements deleted while viewing (Trac #1452)","user":{"login":"elgg-gitbot","id":3541971,"avatar_url":"https://avatars.githubusercontent.com/u/3541971?v=3","gravatar_id":"","url":"https://api.github.com/users/elgg-gitbot","html_url":"https://github.com/elgg-gitbot","followers_url":"https://api.github.com/users/elgg-gitbot/followers","following_url":"https://api.github.com/users/elgg-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/elgg-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/elgg-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elgg-gitbot/subscriptions","organizations_url":"https://api.github.com/users/elgg-gitbot/orgs","repos_url":"https://api.github.com/users/elgg-gitbot/repos","events_url":"https://api.github.com/users/elgg-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/elgg-gitbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Elgg/Elgg/labels/engine","name":"engine","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-02-16T16:02:57Z","updated_at":"2015-02-17T20:19:12Z","closed_at":null,"body":"_Original ticket http://trac.elgg.org/ticket/1452 on 40060134-07-10 by cash, assigned to unknown._\n\nElgg version: 1.6\n\nIf there are 11 blogs in a listing, there are two pages in the pagination. If one of the blogs is deleted before you click on the second page, the 2nd page is empty except for the nav elements. \n\nWe're starting to run into this because we've implemented some ajax actions that allow users to unfriend people without requiring a page reload. The same thing can occur if someone deletes a blog or any other entity while someone else is viewing the list.\n\nOur solution is to put a check into the listing view. If there are no entities to view, we display a message to tell the user to go back to the previous page. It is less disconcerting than an empty page with only nav elements."},"comment":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/comments/74744393","html_url":"https://github.com/Elgg/Elgg/issues/1452#issuecomment-74744393","issue_url":"https://api.github.com/repos/Elgg/Elgg/issues/1452","id":74744393,"user":{"login":"mrclay","id":170687,"avatar_url":"https://avatars.githubusercontent.com/u/170687?v=3","gravatar_id":"","url":"https://api.github.com/users/mrclay","html_url":"https://github.com/mrclay","followers_url":"https://api.github.com/users/mrclay/followers","following_url":"https://api.github.com/users/mrclay/following{/other_user}","gists_url":"https://api.github.com/users/mrclay/gists{/gist_id}","starred_url":"https://api.github.com/users/mrclay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrclay/subscriptions","organizations_url":"https://api.github.com/users/mrclay/orgs","repos_url":"https://api.github.com/users/mrclay/repos","events_url":"https://api.github.com/users/mrclay/events{/privacy}","received_events_url":"https://api.github.com/users/mrclay/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T20:19:12Z","updated_at":"2015-02-17T20:19:12Z","body":"Strategy would be: add data-offset and data-count to the navbar HTML. In JS, check these values for all navbars in the page, and they're all out of bounds, forward to the last available offset."}}