{"action":"created","issue":{"url":"https://api.github.com/repos/pculture/unisubs/issues/3059","repository_url":"https://api.github.com/repos/pculture/unisubs","labels_url":"https://api.github.com/repos/pculture/unisubs/issues/3059/labels{/name}","comments_url":"https://api.github.com/repos/pculture/unisubs/issues/3059/comments","events_url":"https://api.github.com/repos/pculture/unisubs/issues/3059/events","html_url":"https://github.com/pculture/unisubs/issues/3059","id":282197134,"number":3059,"title":"Update message hiding code","user":{"login":"bendk","id":1012809,"avatar_url":"https://avatars3.githubusercontent.com/u/1012809?v=4","gravatar_id":"","url":"https://api.github.com/users/bendk","html_url":"https://github.com/bendk","followers_url":"https://api.github.com/users/bendk/followers","following_url":"https://api.github.com/users/bendk/following{/other_user}","gists_url":"https://api.github.com/users/bendk/gists{/gist_id}","starred_url":"https://api.github.com/users/bendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendk/subscriptions","organizations_url":"https://api.github.com/users/bendk/orgs","repos_url":"https://api.github.com/users/bendk/repos","events_url":"https://api.github.com/users/bendk/events{/privacy}","received_events_url":"https://api.github.com/users/bendk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bendk","id":1012809,"avatar_url":"https://avatars3.githubusercontent.com/u/1012809?v=4","gravatar_id":"","url":"https://api.github.com/users/bendk","html_url":"https://github.com/bendk","followers_url":"https://api.github.com/users/bendk/followers","following_url":"https://api.github.com/users/bendk/following{/other_user}","gists_url":"https://api.github.com/users/bendk/gists{/gist_id}","starred_url":"https://api.github.com/users/bendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendk/subscriptions","organizations_url":"https://api.github.com/users/bendk/orgs","repos_url":"https://api.github.com/users/bendk/repos","events_url":"https://api.github.com/users/bendk/events{/privacy}","received_events_url":"https://api.github.com/users/bendk/received_events","type":"User","site_admin":false},"assignees":[{"login":"bendk","id":1012809,"avatar_url":"https://avatars3.githubusercontent.com/u/1012809?v=4","gravatar_id":"","url":"https://api.github.com/users/bendk","html_url":"https://github.com/bendk","followers_url":"https://api.github.com/users/bendk/followers","following_url":"https://api.github.com/users/bendk/following{/other_user}","gists_url":"https://api.github.com/users/bendk/gists{/gist_id}","starred_url":"https://api.github.com/users/bendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendk/subscriptions","organizations_url":"https://api.github.com/users/bendk/orgs","repos_url":"https://api.github.com/users/bendk/repos","events_url":"https://api.github.com/users/bendk/events{/privacy}","received_events_url":"https://api.github.com/users/bendk/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/pculture/unisubs/milestones/52","html_url":"https://github.com/pculture/unisubs/milestone/52","labels_url":"https://api.github.com/repos/pculture/unisubs/milestones/52/labels","id":2981192,"number":52,"title":"Sprint 33","description":"","creator":{"login":"kslottow","id":22455700,"avatar_url":"https://avatars1.githubusercontent.com/u/22455700?v=4","gravatar_id":"","url":"https://api.github.com/users/kslottow","html_url":"https://github.com/kslottow","followers_url":"https://api.github.com/users/kslottow/followers","following_url":"https://api.github.com/users/kslottow/following{/other_user}","gists_url":"https://api.github.com/users/kslottow/gists{/gist_id}","starred_url":"https://api.github.com/users/kslottow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kslottow/subscriptions","organizations_url":"https://api.github.com/users/kslottow/orgs","repos_url":"https://api.github.com/users/kslottow/repos","events_url":"https://api.github.com/users/kslottow/events{/privacy}","received_events_url":"https://api.github.com/users/kslottow/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":2,"state":"open","created_at":"2017-12-15T03:59:47Z","updated_at":"2018-02-26T19:15:55Z","due_on":"2018-03-07T08:00:00Z","closed_at":null},"comments":16,"created_at":"2017-12-14T18:30:59Z","updated_at":"2018-02-27T21:38:54Z","closed_at":null,"author_association":"OWNER","body":"Right now the code handles this by setting a cookie and using that to hide the messages.  That's not great, since in the caching code we want to avoid sending cookies if we can.  Instead, I think we should handle it like this:\r\n\r\n - Add a last_hidden_message field to CustomUser\r\n - When the user clicks the hide link/button, then we do the following:\r\n   - Hide the div we're displaying to the user\r\n   - Make a POST request, that updates the last_hidden_message field.\r\n- When we're rendering the messages code, we use the field, rather than the cookie."},"comment":{"url":"https://api.github.com/repos/pculture/unisubs/issues/comments/369035356","html_url":"https://github.com/pculture/unisubs/issues/3059#issuecomment-369035356","issue_url":"https://api.github.com/repos/pculture/unisubs/issues/3059","id":369035356,"user":{"login":"bendk","id":1012809,"avatar_url":"https://avatars3.githubusercontent.com/u/1012809?v=4","gravatar_id":"","url":"https://api.github.com/users/bendk","html_url":"https://github.com/bendk","followers_url":"https://api.github.com/users/bendk/followers","following_url":"https://api.github.com/users/bendk/following{/other_user}","gists_url":"https://api.github.com/users/bendk/gists{/gist_id}","starred_url":"https://api.github.com/users/bendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendk/subscriptions","organizations_url":"https://api.github.com/users/bendk/orgs","repos_url":"https://api.github.com/users/bendk/repos","events_url":"https://api.github.com/users/bendk/events{/privacy}","received_events_url":"https://api.github.com/users/bendk/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T21:38:54Z","updated_at":"2018-02-27T21:38:54Z","author_association":"OWNER","body":"One more fix, sorry for all the back and forth here."}}
{"actor":{"display_login":"bendk"}}