{"action":"created","issue":{"url":"https://api.github.com/repos/CanalTP/navitia/issues/2158","repository_url":"https://api.github.com/repos/CanalTP/navitia","labels_url":"https://api.github.com/repos/CanalTP/navitia/issues/2158/labels{/name}","comments_url":"https://api.github.com/repos/CanalTP/navitia/issues/2158/comments","events_url":"https://api.github.com/repos/CanalTP/navitia/issues/2158/events","html_url":"https://github.com/CanalTP/navitia/pull/2158","id":245987905,"number":2158,"title":"tyr: send error 409 while deleting billing_plan used in user","user":{"login":"kadhikari","id":5418640,"avatar_url":"https://avatars1.githubusercontent.com/u/5418640?v=4","gravatar_id":"","url":"https://api.github.com/users/kadhikari","html_url":"https://github.com/kadhikari","followers_url":"https://api.github.com/users/kadhikari/followers","following_url":"https://api.github.com/users/kadhikari/following{/other_user}","gists_url":"https://api.github.com/users/kadhikari/gists{/gist_id}","starred_url":"https://api.github.com/users/kadhikari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadhikari/subscriptions","organizations_url":"https://api.github.com/users/kadhikari/orgs","repos_url":"https://api.github.com/users/kadhikari/repos","events_url":"https://api.github.com/users/kadhikari/events{/privacy}","received_events_url":"https://api.github.com/users/kadhikari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-27T09:58:31Z","updated_at":"2017-07-28T12:01:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CanalTP/navitia/pulls/2158","html_url":"https://github.com/CanalTP/navitia/pull/2158","diff_url":"https://github.com/CanalTP/navitia/pull/2158.diff","patch_url":"https://github.com/CanalTP/navitia/pull/2158.patch"},"body":"1. While trying to delete a billing_plan used by an user (referred in an user), tyr returns an error 500 (Internal server error).\r\n2. API modified to return an error 409 with a message  : {'error': 'billing_plan used'}, 409)\r\n"},"comment":{"url":"https://api.github.com/repos/CanalTP/navitia/issues/comments/318634378","html_url":"https://github.com/CanalTP/navitia/pull/2158#issuecomment-318634378","issue_url":"https://api.github.com/repos/CanalTP/navitia/issues/2158","id":318634378,"user":{"login":"antoine-de","id":3987698,"avatar_url":"https://avatars2.githubusercontent.com/u/3987698?v=4","gravatar_id":"","url":"https://api.github.com/users/antoine-de","html_url":"https://github.com/antoine-de","followers_url":"https://api.github.com/users/antoine-de/followers","following_url":"https://api.github.com/users/antoine-de/following{/other_user}","gists_url":"https://api.github.com/users/antoine-de/gists{/gist_id}","starred_url":"https://api.github.com/users/antoine-de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoine-de/subscriptions","organizations_url":"https://api.github.com/users/antoine-de/orgs","repos_url":"https://api.github.com/users/antoine-de/repos","events_url":"https://api.github.com/users/antoine-de/events{/privacy}","received_events_url":"https://api.github.com/users/antoine-de/received_events","type":"User","site_admin":false},"created_at":"2017-07-28T12:01:52Z","updated_at":"2017-07-28T12:01:52Z","body":"Jenkins, test this please"}}
{"actor":{"display_login":"antoine-de"}}