{"action":"created","issue":{"url":"https://api.github.com/repos/ecodistrict/IDSSFramework/issues/2","labels_url":"https://api.github.com/repos/ecodistrict/IDSSFramework/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ecodistrict/IDSSFramework/issues/2/comments","events_url":"https://api.github.com/repos/ecodistrict/IDSSFramework/issues/2/events","html_url":"https://github.com/ecodistrict/IDSSFramework/issues/2","id":59640713,"number":2,"title":"Allow modules to inform about failure","user":{"login":"rasmuse","id":1210973,"avatar_url":"https://avatars.githubusercontent.com/u/1210973?v=3","gravatar_id":"","url":"https://api.github.com/users/rasmuse","html_url":"https://github.com/rasmuse","followers_url":"https://api.github.com/users/rasmuse/followers","following_url":"https://api.github.com/users/rasmuse/following{/other_user}","gists_url":"https://api.github.com/users/rasmuse/gists{/gist_id}","starred_url":"https://api.github.com/users/rasmuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasmuse/subscriptions","organizations_url":"https://api.github.com/users/rasmuse/orgs","repos_url":"https://api.github.com/users/rasmuse/repos","events_url":"https://api.github.com/users/rasmuse/events{/privacy}","received_events_url":"https://api.github.com/users/rasmuse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ecodistrict/IDSSFramework/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-03T13:24:08Z","updated_at":"2015-04-07T09:44:50Z","closed_at":null,"body":"At the moment we only allow two statuses in the `startModel` response: `\"processing\"` and `\"success\"`. It is conceivable that modules may fail due to invalid input or other problems. It should be possible to inform the dashboard about such a failure.\r\n\r\nIs it good enough to just add a `\"failed\"` status, or should we do something more elaborate? Should there also be an optional value (perhaps named `info`) in the `startModel` response to send messages like `\"Invalid input [blah blah]\"` or `\"Unhandled exception [blah blah]\"`?\r\n\r\nI'm open to suggestions."},"comment":{"url":"https://api.github.com/repos/ecodistrict/IDSSFramework/issues/comments/90489073","html_url":"https://github.com/ecodistrict/IDSSFramework/issues/2#issuecomment-90489073","issue_url":"https://api.github.com/repos/ecodistrict/IDSSFramework/issues/2","id":90489073,"user":{"login":"rasmuse","id":1210973,"avatar_url":"https://avatars.githubusercontent.com/u/1210973?v=3","gravatar_id":"","url":"https://api.github.com/users/rasmuse","html_url":"https://github.com/rasmuse","followers_url":"https://api.github.com/users/rasmuse/followers","following_url":"https://api.github.com/users/rasmuse/following{/other_user}","gists_url":"https://api.github.com/users/rasmuse/gists{/gist_id}","starred_url":"https://api.github.com/users/rasmuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasmuse/subscriptions","organizations_url":"https://api.github.com/users/rasmuse/orgs","repos_url":"https://api.github.com/users/rasmuse/repos","events_url":"https://api.github.com/users/rasmuse/events{/privacy}","received_events_url":"https://api.github.com/users/rasmuse/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T09:44:50Z","updated_at":"2015-04-07T09:44:50Z","body":"How about this:\r\n\r\n```\r\n{\r\nmethod: \"startModule\",\r\n\"type\": \"result\",\r\n\"status\": \"failed\",\r\n\"info\": \"Something went wrong!\"\r\n}\r\n```\r\n(where `info` property is optional and all others mandatory)\r\n\r\nand for now let's skip notifications?"}}