{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/3212","repository_url":"https://api.github.com/repos/ckan/ckan","labels_url":"https://api.github.com/repos/ckan/ckan/issues/3212/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/3212/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/3212/events","html_url":"https://github.com/ckan/ckan/pull/3212","id":172681173,"number":3212,"title":"[#3196] Common requests code for Flask and Pylons","user":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"labels":[{"id":316356683,"url":"https://api.github.com/repos/ckan/ckan/labels/Pylons%20-%20Flask%20migration","name":"Pylons - Flask migration","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":{"login":"TkTech","id":72590,"avatar_url":"https://avatars.githubusercontent.com/u/72590?v=3","gravatar_id":"","url":"https://api.github.com/users/TkTech","html_url":"https://github.com/TkTech","followers_url":"https://api.github.com/users/TkTech/followers","following_url":"https://api.github.com/users/TkTech/following{/other_user}","gists_url":"https://api.github.com/users/TkTech/gists{/gist_id}","starred_url":"https://api.github.com/users/TkTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TkTech/subscriptions","organizations_url":"https://api.github.com/users/TkTech/orgs","repos_url":"https://api.github.com/users/TkTech/repos","events_url":"https://api.github.com/users/TkTech/events{/privacy}","received_events_url":"https://api.github.com/users/TkTech/received_events","type":"User","site_admin":false},"assignees":[{"login":"TkTech","id":72590,"avatar_url":"https://avatars.githubusercontent.com/u/72590?v=3","gravatar_id":"","url":"https://api.github.com/users/TkTech","html_url":"https://github.com/TkTech","followers_url":"https://api.github.com/users/TkTech/followers","following_url":"https://api.github.com/users/TkTech/following{/other_user}","gists_url":"https://api.github.com/users/TkTech/gists{/gist_id}","starred_url":"https://api.github.com/users/TkTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TkTech/subscriptions","organizations_url":"https://api.github.com/users/TkTech/orgs","repos_url":"https://api.github.com/users/TkTech/repos","events_url":"https://api.github.com/users/TkTech/events{/privacy}","received_events_url":"https://api.github.com/users/TkTech/received_events","type":"User","site_admin":false},{"login":"wardi","id":153258,"avatar_url":"https://avatars.githubusercontent.com/u/153258?v=3","gravatar_id":"","url":"https://api.github.com/users/wardi","html_url":"https://github.com/wardi","followers_url":"https://api.github.com/users/wardi/followers","following_url":"https://api.github.com/users/wardi/following{/other_user}","gists_url":"https://api.github.com/users/wardi/gists{/gist_id}","starred_url":"https://api.github.com/users/wardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardi/subscriptions","organizations_url":"https://api.github.com/users/wardi/orgs","repos_url":"https://api.github.com/users/wardi/repos","events_url":"https://api.github.com/users/wardi/events{/privacy}","received_events_url":"https://api.github.com/users/wardi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-08-23T12:01:13Z","updated_at":"2016-11-29T09:26:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ckan/ckan/pulls/3212","html_url":"https://github.com/ckan/ckan/pull/3212","diff_url":"https://github.com/ckan/ckan/pull/3212.diff","patch_url":"https://github.com/ckan/ckan/pull/3212.patch"},"body":"This PR is based off #3208, and also contains #3194\n\nThere is a bunch of code located on the `BaseController` which is executed before and after every single request. This PR abstracts it to the `ckan.views` module so it can be reused by Flask as well, with the `before_request` and `after_request` handlers.\n\nCode relates to:\n- Identifying the user via the repoze cookie or the API header\n- Check session cookies\n- Set CORS headers\n- Timer for requests\n- Update CKAN app_globals\n"},"comment":{"url":"https://api.github.com/repos/ckan/ckan/issues/comments/263519010","html_url":"https://github.com/ckan/ckan/pull/3212#issuecomment-263519010","issue_url":"https://api.github.com/repos/ckan/ckan/issues/3212","id":263519010,"user":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T09:26:04Z","updated_at":"2016-11-29T09:26:04Z","body":"@TkTech how is this looking? any other issues to address?"}}
{"actor":{"display_login":"amercader"}}