{"action":"created","issue":{"url":"https://api.github.com/repos/kurtlewis/ceas-ambassadors-website/issues/5","repository_url":"https://api.github.com/repos/kurtlewis/ceas-ambassadors-website","labels_url":"https://api.github.com/repos/kurtlewis/ceas-ambassadors-website/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/kurtlewis/ceas-ambassadors-website/issues/5/comments","events_url":"https://api.github.com/repos/kurtlewis/ceas-ambassadors-website/issues/5/events","html_url":"https://github.com/kurtlewis/ceas-ambassadors-website/issues/5","id":330086218,"node_id":"MDU6SXNzdWUzMzAwODYyMTg=","number":5,"title":"New system for handling alerts","user":{"login":"kurtlewis","id":4043087,"node_id":"MDQ6VXNlcjQwNDMwODc=","avatar_url":"https://avatars3.githubusercontent.com/u/4043087?v=4","gravatar_id":"","url":"https://api.github.com/users/kurtlewis","html_url":"https://github.com/kurtlewis","followers_url":"https://api.github.com/users/kurtlewis/followers","following_url":"https://api.github.com/users/kurtlewis/following{/other_user}","gists_url":"https://api.github.com/users/kurtlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtlewis/subscriptions","organizations_url":"https://api.github.com/users/kurtlewis/orgs","repos_url":"https://api.github.com/users/kurtlewis/repos","events_url":"https://api.github.com/users/kurtlewis/events{/privacy}","received_events_url":"https://api.github.com/users/kurtlewis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kurtlewis","id":4043087,"node_id":"MDQ6VXNlcjQwNDMwODc=","avatar_url":"https://avatars3.githubusercontent.com/u/4043087?v=4","gravatar_id":"","url":"https://api.github.com/users/kurtlewis","html_url":"https://github.com/kurtlewis","followers_url":"https://api.github.com/users/kurtlewis/followers","following_url":"https://api.github.com/users/kurtlewis/following{/other_user}","gists_url":"https://api.github.com/users/kurtlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtlewis/subscriptions","organizations_url":"https://api.github.com/users/kurtlewis/orgs","repos_url":"https://api.github.com/users/kurtlewis/repos","events_url":"https://api.github.com/users/kurtlewis/events{/privacy}","received_events_url":"https://api.github.com/users/kurtlewis/received_events","type":"User","site_admin":false},"assignees":[{"login":"kurtlewis","id":4043087,"node_id":"MDQ6VXNlcjQwNDMwODc=","avatar_url":"https://avatars3.githubusercontent.com/u/4043087?v=4","gravatar_id":"","url":"https://api.github.com/users/kurtlewis","html_url":"https://github.com/kurtlewis","followers_url":"https://api.github.com/users/kurtlewis/followers","following_url":"https://api.github.com/users/kurtlewis/following{/other_user}","gists_url":"https://api.github.com/users/kurtlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtlewis/subscriptions","organizations_url":"https://api.github.com/users/kurtlewis/orgs","repos_url":"https://api.github.com/users/kurtlewis/repos","events_url":"https://api.github.com/users/kurtlewis/events{/privacy}","received_events_url":"https://api.github.com/users/kurtlewis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-06-07T01:32:11Z","updated_at":"2018-06-11T00:12:04Z","closed_at":null,"author_association":"OWNER","body":"Currently alerts can only be created and used in a single middleware context - meaning they can't be handed to the next middleware handler. It'd be really nice to be able to `res.redirect()` and still be able to send a flash, but unfortunately that isn't possible without doing something hacky or gross.\r\n\r\nI created an `alerts` branch which adds the alert to the `req.locals` object. This object does persist across levels of middleware, but unfortunately that object isn't persisted across calls to `res.redirect()`\r\n\r\n## Possible Solutions\r\n1. Find a way to make the `alerts` branch work (unlikely)\r\n1. https://stackoverflow.com/a/38355597/7400944 - requires loading from `req.sessions` which is not pretty\r\n1. use connect-flash module https://github.com/jaredhanson/connect-flash"},"comment":{"url":"https://api.github.com/repos/kurtlewis/ceas-ambassadors-website/issues/comments/396093207","html_url":"https://github.com/kurtlewis/ceas-ambassadors-website/issues/5#issuecomment-396093207","issue_url":"https://api.github.com/repos/kurtlewis/ceas-ambassadors-website/issues/5","id":396093207,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjA5MzIwNw==","user":{"login":"kurtlewis","id":4043087,"node_id":"MDQ6VXNlcjQwNDMwODc=","avatar_url":"https://avatars3.githubusercontent.com/u/4043087?v=4","gravatar_id":"","url":"https://api.github.com/users/kurtlewis","html_url":"https://github.com/kurtlewis","followers_url":"https://api.github.com/users/kurtlewis/followers","following_url":"https://api.github.com/users/kurtlewis/following{/other_user}","gists_url":"https://api.github.com/users/kurtlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtlewis/subscriptions","organizations_url":"https://api.github.com/users/kurtlewis/orgs","repos_url":"https://api.github.com/users/kurtlewis/repos","events_url":"https://api.github.com/users/kurtlewis/events{/privacy}","received_events_url":"https://api.github.com/users/kurtlewis/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T00:12:04Z","updated_at":"2018-06-11T00:12:04Z","author_association":"OWNER","body":"the `alerts` branch is going to work! Instead of using `res.redirect` in code, I can just call route handlers, which will handle passing data between them! Happy days!"}}
{"actor":{"display_login":"kurtlewis"}}