{"action":"closed","issue":{"url":"https://api.github.com/repos/tstringer/discuss-this/issues/4","labels_url":"https://api.github.com/repos/tstringer/discuss-this/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/tstringer/discuss-this/issues/4/comments","events_url":"https://api.github.com/repos/tstringer/discuss-this/issues/4/events","html_url":"https://github.com/tstringer/discuss-this/issues/4","id":111611700,"number":4,"title":"Create functionality to purge local storage","user":{"login":"tstringer","id":1445483,"avatar_url":"https://avatars.githubusercontent.com/u/1445483?v=3","gravatar_id":"","url":"https://api.github.com/users/tstringer","html_url":"https://github.com/tstringer","followers_url":"https://api.github.com/users/tstringer/followers","following_url":"https://api.github.com/users/tstringer/following{/other_user}","gists_url":"https://api.github.com/users/tstringer/gists{/gist_id}","starred_url":"https://api.github.com/users/tstringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstringer/subscriptions","organizations_url":"https://api.github.com/users/tstringer/orgs","repos_url":"https://api.github.com/users/tstringer/repos","events_url":"https://api.github.com/users/tstringer/events{/privacy}","received_events_url":"https://api.github.com/users/tstringer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tstringer/discuss-this/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"tstringer","id":1445483,"avatar_url":"https://avatars.githubusercontent.com/u/1445483?v=3","gravatar_id":"","url":"https://api.github.com/users/tstringer","html_url":"https://github.com/tstringer","followers_url":"https://api.github.com/users/tstringer/followers","following_url":"https://api.github.com/users/tstringer/following{/other_user}","gists_url":"https://api.github.com/users/tstringer/gists{/gist_id}","starred_url":"https://api.github.com/users/tstringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstringer/subscriptions","organizations_url":"https://api.github.com/users/tstringer/orgs","repos_url":"https://api.github.com/users/tstringer/repos","events_url":"https://api.github.com/users/tstringer/events{/privacy}","received_events_url":"https://api.github.com/users/tstringer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/tstringer/discuss-this/milestones/1","html_url":"https://github.com/tstringer/discuss-this/milestones/Initial%20release","labels_url":"https://api.github.com/repos/tstringer/discuss-this/milestones/1/labels","id":1357220,"number":1,"title":"Initial release","description":"This will be when initial development and testing is complete, and the public can hit the API.","creator":{"login":"tstringer","id":1445483,"avatar_url":"https://avatars.githubusercontent.com/u/1445483?v=3","gravatar_id":"","url":"https://api.github.com/users/tstringer","html_url":"https://github.com/tstringer","followers_url":"https://api.github.com/users/tstringer/followers","following_url":"https://api.github.com/users/tstringer/following{/other_user}","gists_url":"https://api.github.com/users/tstringer/gists{/gist_id}","starred_url":"https://api.github.com/users/tstringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstringer/subscriptions","organizations_url":"https://api.github.com/users/tstringer/orgs","repos_url":"https://api.github.com/users/tstringer/repos","events_url":"https://api.github.com/users/tstringer/events{/privacy}","received_events_url":"https://api.github.com/users/tstringer/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2015-10-15T12:58:27Z","updated_at":"2015-10-19T00:43:01Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-10-15T13:03:54Z","updated_at":"2015-10-19T00:43:01Z","closed_at":"2015-10-19T00:43:01Z","body":"Currently, when you vote on an answer or question, it adds the ObjectId of the item to local storage.  There is a limit to local storage, and likewise no need to bloat this.  ObjectIds are only valid for the current question (when the question expires, the current answer set will no longer be needed, and any unselected next question candidates will be discarded).\r\n\r\nThe solution here is to do a check on ObjectIds that are in local storage and determine if they are stale and no longer needed."}}