{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/4419","repository_url":"https://api.github.com/repos/ckan/ckan","labels_url":"https://api.github.com/repos/ckan/ckan/issues/4419/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/4419/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/4419/events","html_url":"https://github.com/ckan/ckan/pull/4419","id":352862649,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMDY0MDQ4","number":4419,"title":"Fix KeyError in package_create","user":{"login":"metaodi","id":538415,"node_id":"MDQ6VXNlcjUzODQxNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/538415?v=4","gravatar_id":"","url":"https://api.github.com/users/metaodi","html_url":"https://github.com/metaodi","followers_url":"https://api.github.com/users/metaodi/followers","following_url":"https://api.github.com/users/metaodi/following{/other_user}","gists_url":"https://api.github.com/users/metaodi/gists{/gist_id}","starred_url":"https://api.github.com/users/metaodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaodi/subscriptions","organizations_url":"https://api.github.com/users/metaodi/orgs","repos_url":"https://api.github.com/users/metaodi/repos","events_url":"https://api.github.com/users/metaodi/events{/privacy}","received_events_url":"https://api.github.com/users/metaodi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T09:00:21Z","updated_at":"2018-08-22T09:10:01Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/ckan/ckan/pulls/4419","html_url":"https://github.com/ckan/ckan/pull/4419","diff_url":"https://github.com/ckan/ckan/pull/4419.diff","patch_url":"https://github.com/ckan/ckan/pull/4419.patch"},"body":"Fixes #4418\r\n\r\n### Proposed fixes:\r\nWhen `return_id_only` is set, don't rely on the context['id'], rather return the id directly from the model.\r\n\r\n\r\n### Features:\r\n\r\n- [x] includes tests covering changes\r\n- [ ] includes updated documentation\r\n- [ ] includes user-visible changes\r\n- [ ] includes API changes\r\n- [ ] includes bugfix for possible backport\r\n\r\nPlease [X] all the boxes above that apply\r\n"},"comment":{"url":"https://api.github.com/repos/ckan/ckan/issues/comments/414966194","html_url":"https://github.com/ckan/ckan/pull/4419#issuecomment-414966194","issue_url":"https://api.github.com/repos/ckan/ckan/issues/4419","id":414966194,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDk2NjE5NA==","user":{"login":"metaodi","id":538415,"node_id":"MDQ6VXNlcjUzODQxNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/538415?v=4","gravatar_id":"","url":"https://api.github.com/users/metaodi","html_url":"https://github.com/metaodi","followers_url":"https://api.github.com/users/metaodi/followers","following_url":"https://api.github.com/users/metaodi/following{/other_user}","gists_url":"https://api.github.com/users/metaodi/gists{/gist_id}","starred_url":"https://api.github.com/users/metaodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaodi/subscriptions","organizations_url":"https://api.github.com/users/metaodi/orgs","repos_url":"https://api.github.com/users/metaodi/repos","events_url":"https://api.github.com/users/metaodi/events{/privacy}","received_events_url":"https://api.github.com/users/metaodi/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T09:10:01Z","updated_at":"2018-08-22T09:10:01Z","author_association":"MEMBER","body":"Maybe @rossjones and/or @wardi can check, as they already know about #4315."}}
{"actor":{"display_login":"metaodi"}}