{"action":"closed","issue":{"url":"https://api.github.com/repos/WordPoints/wordpoints/issues/329","labels_url":"https://api.github.com/repos/WordPoints/wordpoints/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/WordPoints/wordpoints/issues/329/comments","events_url":"https://api.github.com/repos/WordPoints/wordpoints/issues/329/events","html_url":"https://github.com/WordPoints/wordpoints/issues/329","id":85754454,"number":329,"title":"WordPoints_Rank_Group::remove_rank() doesn't clear cache when deleting rows","user":{"login":"JDGrimes","id":4005415,"avatar_url":"https://avatars.githubusercontent.com/u/4005415?v=3","gravatar_id":"","url":"https://api.github.com/users/JDGrimes","html_url":"https://github.com/JDGrimes","followers_url":"https://api.github.com/users/JDGrimes/followers","following_url":"https://api.github.com/users/JDGrimes/following{/other_user}","gists_url":"https://api.github.com/users/JDGrimes/gists{/gist_id}","starred_url":"https://api.github.com/users/JDGrimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDGrimes/subscriptions","organizations_url":"https://api.github.com/users/JDGrimes/orgs","repos_url":"https://api.github.com/users/JDGrimes/repos","events_url":"https://api.github.com/users/JDGrimes/events{/privacy}","received_events_url":"https://api.github.com/users/JDGrimes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WordPoints/wordpoints/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"JDGrimes","id":4005415,"avatar_url":"https://avatars.githubusercontent.com/u/4005415?v=3","gravatar_id":"","url":"https://api.github.com/users/JDGrimes","html_url":"https://github.com/JDGrimes","followers_url":"https://api.github.com/users/JDGrimes/followers","following_url":"https://api.github.com/users/JDGrimes/following{/other_user}","gists_url":"https://api.github.com/users/JDGrimes/gists{/gist_id}","starred_url":"https://api.github.com/users/JDGrimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDGrimes/subscriptions","organizations_url":"https://api.github.com/users/JDGrimes/orgs","repos_url":"https://api.github.com/users/JDGrimes/repos","events_url":"https://api.github.com/users/JDGrimes/events{/privacy}","received_events_url":"https://api.github.com/users/JDGrimes/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/WordPoints/wordpoints/milestones/12","html_url":"https://github.com/WordPoints/wordpoints/milestones/2.0.0","labels_url":"https://api.github.com/repos/WordPoints/wordpoints/milestones/12/labels","id":962478,"number":12,"title":"2.0.0","description":"","creator":{"login":"JDGrimes","id":4005415,"avatar_url":"https://avatars.githubusercontent.com/u/4005415?v=3","gravatar_id":"","url":"https://api.github.com/users/JDGrimes","html_url":"https://github.com/JDGrimes","followers_url":"https://api.github.com/users/JDGrimes/followers","following_url":"https://api.github.com/users/JDGrimes/following{/other_user}","gists_url":"https://api.github.com/users/JDGrimes/gists{/gist_id}","starred_url":"https://api.github.com/users/JDGrimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDGrimes/subscriptions","organizations_url":"https://api.github.com/users/JDGrimes/orgs","repos_url":"https://api.github.com/users/JDGrimes/repos","events_url":"https://api.github.com/users/JDGrimes/events{/privacy}","received_events_url":"https://api.github.com/users/JDGrimes/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":28,"state":"open","created_at":"2015-02-02T21:44:17Z","updated_at":"2015-06-11T14:02:20Z","due_on":"2015-06-30T04:00:00Z","closed_at":null},"comments":0,"created_at":"2015-06-06T13:50:07Z","updated_at":"2015-06-11T14:02:20Z","closed_at":"2015-06-11T14:02:20Z","body":"`WordPoints_Rank_Group::remove_rank()` removes a rank from a group. In the process it has to reassign all of the users how have that rank to the next lower rank. There is an edge case though. When the base rank is being deleted, there is no previous rank. In that case, the rows for that rank are deleted from the user ranks table. But the caches aren't cleared.\r\n\r\nAgain, this is an edge case, but we should handle it gracefully.\r\n\r\nSpun off of #227."}}