{"action":"created","issue":{"url":"https://api.github.com/repos/CanalTP/navitia/issues/1326","labels_url":"https://api.github.com/repos/CanalTP/navitia/issues/1326/labels{/name}","comments_url":"https://api.github.com/repos/CanalTP/navitia/issues/1326/comments","events_url":"https://api.github.com/repos/CanalTP/navitia/issues/1326/events","html_url":"https://github.com/CanalTP/navitia/pull/1326","id":121691045,"number":1326,"title":"Jormungandr: add impacted stops in /disruptions","user":{"login":"antoine-de","id":3987698,"avatar_url":"https://avatars.githubusercontent.com/u/3987698?v=3","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T11:30:47Z","updated_at":"2015-12-14T14:02:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CanalTP/navitia/pulls/1326","html_url":"https://github.com/CanalTP/navitia/pull/1326","diff_url":"https://github.com/CanalTP/navitia/pull/1326.diff","patch_url":"https://github.com/CanalTP/navitia/pull/1326.patch"},"body":"Enhance the disruption object with data on the impacted stoptimes\r\n\r\nTODO: for the moment no information on the base schedule is outputed\r\n```json\r\n{\r\n    \"disruptions\": \r\n    [\r\n        {\r\n            \"status\": \"past\",\r\n            \"application_periods\": \r\n            [\r\n                {\r\n                    \"begin\": \"20151201T060400\",\r\n                    \"end\": \"20151201T082259\"\r\n                }\r\n            ],\r\n            \"updated_at\": \"20151202T090248\",\r\n            \"uri\": \"3eabf0a6-2bd6-472f-94c4-3aedd83caaa5\",\r\n            \"contributor\": \"ire sncf\",\r\n            \"severity\": \r\n            {\r\n                \"color\": \"#000000\",\r\n                \"priority\": 42,\r\n                \"name\": \"trip delayed\",\r\n                \"effect\": \"DETOUR\"\r\n            },\r\n            \"cause\": \"a problem\",\r\n            \"impacted_objects\": [\r\n                {\r\n                    \"pt_object\": {\r\n                        \"vehicle_journey\": {\r\n                            \"uri\": \"bob\"\r\n                            ...\r\n                        }\r\n                    },\r\n                    \"impacted_stops\": [\r\n                        {\r\n                            \"stop_point\": { \"uri\": \"B\", ... },\r\n                            \"base_departure\": 171500,\r\n                            \"base_arrival\": 170000,\r\n                            \"cause\": \"cochon sur les voies\",\r\n                            \"stoptime_effect\": \"DELETED\"\r\n                        },\r\n                        {\r\n                            \"stop_point\": { \"uri\": \"E\", ... },\r\n                            \"amended_departure\": 171500,\r\n                            \"amended_arrival\": 170000,\r\n                            \"cause\": \"cochon sur les voies\",\r\n                            \"stoptime_effect\": \"ADDED\"\r\n                        },\r\n                        {\r\n                            \"stop_point\": { \"uri\": \"C\", ... },\r\n                            \"amended_departure\": 181700,\r\n                            \"amended_arrival\": 181700,\r\n                            \"base_departure\": 180000,\r\n                            \"base_arrival\": 180000,\r\n                            \"cause\": \"vache sur les voies\",\r\n                            \"stoptime_effect\": \"SIGNIFICANT_DELAYS\"\r\n                        },\r\n                        {\r\n                            \"stop_point\": { \"uri\": \"D\", ... },\r\n                            \"amended_departure\": 192300,\r\n                            \"amended_arrival\": 192300,\r\n                            \"base_departure\": 190000,\r\n                            \"base_arrival\": 190000,\r\n                            \"cause\": \"vache sur les voies\",\r\n                            \"stoptime_effect\": \"SIGNIFICANT_DELAYS\"\r\n                        }\r\n                    ]\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"status\": \"past\",\r\n            \"application_periods\": \r\n            [\r\n                {\r\n                    \"begin\": \"20151201T060400\",\r\n                    \"end\": \"20151201T082259\"\r\n                }\r\n            ],\r\n            \"updated_at\": \"20151202T090248\",\r\n            \"uri\": \"3eabf0a6-2bd6-472f-94c4-3aedd83caaa6\",\r\n            \"contributor\": \"transilien\",\r\n            \"severity\": \r\n            {\r\n                \"color\": \"#000000\",\r\n                \"priority\": 42,\r\n                \"name\": \"trip delayed\",\r\n                \"effect\": \"NO_SERVICE\"\r\n            },\r\n            \"cause\": \"another problem\",\r\n            \"impacted_objects\": [\r\n                {\r\n                    \"pt_object\": {\r\n                        \"line\": {\r\n                            \"uri\": \"bobette\",\r\n                            ...\r\n                        }\r\n                    }\r\n                },\r\n                {\r\n                    \"pt_object\": {\r\n                        \"stop_area\": {\r\n                            \"uri\": \"bobitto\",\r\n                            ...\r\n                        }\r\n                    }\r\n                }\r\n            ],\r\n            \"messages\": [\r\n                {\r\n                    \"text\": \"<p>_pas_de_filtre<br></p>\",\r\n                    \"channel\": \r\n                    {\r\n                        \"content_type\": \"text/html\",\r\n                        \"types\": [\"web\"],\r\n                        \"name\": \"we\"\r\n                    }\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/CanalTP/navitia/issues/comments/164445323","html_url":"https://github.com/CanalTP/navitia/pull/1326#issuecomment-164445323","issue_url":"https://api.github.com/repos/CanalTP/navitia/issues/1326","id":164445323,"user":{"login":"TeXitoi","id":5787066,"avatar_url":"https://avatars.githubusercontent.com/u/5787066?v=3","gravatar_id":"","url":"https://api.github.com/users/TeXitoi","html_url":"https://github.com/TeXitoi","followers_url":"https://api.github.com/users/TeXitoi/followers","following_url":"https://api.github.com/users/TeXitoi/following{/other_user}","gists_url":"https://api.github.com/users/TeXitoi/gists{/gist_id}","starred_url":"https://api.github.com/users/TeXitoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeXitoi/subscriptions","organizations_url":"https://api.github.com/users/TeXitoi/orgs","repos_url":"https://api.github.com/users/TeXitoi/repos","events_url":"https://api.github.com/users/TeXitoi/events{/privacy}","received_events_url":"https://api.github.com/users/TeXitoi/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T14:02:40Z","updated_at":"2015-12-14T14:02:40Z","body":"OK for me."}}