{"action":"created","issue":{"url":"https://api.github.com/repos/Pylons/pyramid/issues/2989","repository_url":"https://api.github.com/repos/Pylons/pyramid","labels_url":"https://api.github.com/repos/Pylons/pyramid/issues/2989/labels{/name}","comments_url":"https://api.github.com/repos/Pylons/pyramid/issues/2989/comments","events_url":"https://api.github.com/repos/Pylons/pyramid/issues/2989/events","html_url":"https://github.com/Pylons/pyramid/pull/2989","id":218780921,"number":2989,"title":"push threadlocals while executing config.include functions","user":{"login":"mmerickel","id":487237,"avatar_url":"https://avatars0.githubusercontent.com/u/487237?v=3","gravatar_id":"","url":"https://api.github.com/users/mmerickel","html_url":"https://github.com/mmerickel","followers_url":"https://api.github.com/users/mmerickel/followers","following_url":"https://api.github.com/users/mmerickel/following{/other_user}","gists_url":"https://api.github.com/users/mmerickel/gists{/gist_id}","starred_url":"https://api.github.com/users/mmerickel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmerickel/subscriptions","organizations_url":"https://api.github.com/users/mmerickel/orgs","repos_url":"https://api.github.com/users/mmerickel/repos","events_url":"https://api.github.com/users/mmerickel/events{/privacy}","received_events_url":"https://api.github.com/users/mmerickel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Pylons/pyramid/milestones/6","html_url":"https://github.com/Pylons/pyramid/milestone/6","labels_url":"https://api.github.com/repos/Pylons/pyramid/milestones/6/labels","id":2200173,"number":6,"title":"1.9","description":"","creator":{"login":"mmerickel","id":487237,"avatar_url":"https://avatars0.githubusercontent.com/u/487237?v=3","gravatar_id":"","url":"https://api.github.com/users/mmerickel","html_url":"https://github.com/mmerickel","followers_url":"https://api.github.com/users/mmerickel/followers","following_url":"https://api.github.com/users/mmerickel/following{/other_user}","gists_url":"https://api.github.com/users/mmerickel/gists{/gist_id}","starred_url":"https://api.github.com/users/mmerickel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmerickel/subscriptions","organizations_url":"https://api.github.com/users/mmerickel/orgs","repos_url":"https://api.github.com/users/mmerickel/repos","events_url":"https://api.github.com/users/mmerickel/events{/privacy}","received_events_url":"https://api.github.com/users/mmerickel/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2016-12-16T06:49:54Z","updated_at":"2017-04-02T21:35:06Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-04-02T17:55:17Z","updated_at":"2017-04-03T08:02:14Z","closed_at":"2017-04-02T21:35:06Z","pull_request":{"url":"https://api.github.com/repos/Pylons/pyramid/pulls/2989","html_url":"https://github.com/Pylons/pyramid/pull/2989","diff_url":"https://github.com/Pylons/pyramid/pull/2989.diff","patch_url":"https://github.com/Pylons/pyramid/pull/2989.patch"},"body":"We don't push threadlocals in the `main` because there is no clear contract on its lifecycle. However we can push them during `config.include(...)` calls so that they are available there. Just a little more incentive to put all your code into include functions!"},"comment":{"url":"https://api.github.com/repos/Pylons/pyramid/issues/comments/291074183","html_url":"https://github.com/Pylons/pyramid/pull/2989#issuecomment-291074183","issue_url":"https://api.github.com/repos/Pylons/pyramid/issues/2989","id":291074183,"user":{"login":"piotr-dobrogost","id":92239,"avatar_url":"https://avatars1.githubusercontent.com/u/92239?v=3","gravatar_id":"","url":"https://api.github.com/users/piotr-dobrogost","html_url":"https://github.com/piotr-dobrogost","followers_url":"https://api.github.com/users/piotr-dobrogost/followers","following_url":"https://api.github.com/users/piotr-dobrogost/following{/other_user}","gists_url":"https://api.github.com/users/piotr-dobrogost/gists{/gist_id}","starred_url":"https://api.github.com/users/piotr-dobrogost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotr-dobrogost/subscriptions","organizations_url":"https://api.github.com/users/piotr-dobrogost/orgs","repos_url":"https://api.github.com/users/piotr-dobrogost/repos","events_url":"https://api.github.com/users/piotr-dobrogost/events{/privacy}","received_events_url":"https://api.github.com/users/piotr-dobrogost/received_events","type":"User","site_admin":false},"created_at":"2017-04-03T08:02:14Z","updated_at":"2017-04-03T08:02:14Z","body":"> We don't push threadlocals in the main because there is no clear contract on its lifecycle. \r\n\r\nMichael, could you please elaborate on this lifecycle issue (I'm curious)?\r\nBtw, is there any section in the docs for this kind of information?"}}
{"actor":{"display_login":"piotr-dobrogost"}}