{"action":"created","issue":{"url":"https://api.github.com/repos/opf/openproject/issues/3667","labels_url":"https://api.github.com/repos/opf/openproject/issues/3667/labels{/name}","comments_url":"https://api.github.com/repos/opf/openproject/issues/3667/comments","events_url":"https://api.github.com/repos/opf/openproject/issues/3667/events","html_url":"https://github.com/opf/openproject/pull/3667","id":112605462,"number":3667,"title":"Fix/meaningfull error message on type update","user":{"login":"ulferts","id":617519,"avatar_url":"https://avatars.githubusercontent.com/u/617519?v=3","gravatar_id":"","url":"https://api.github.com/users/ulferts","html_url":"https://github.com/ulferts","followers_url":"https://api.github.com/users/ulferts/followers","following_url":"https://api.github.com/users/ulferts/following{/other_user}","gists_url":"https://api.github.com/users/ulferts/gists{/gist_id}","starred_url":"https://api.github.com/users/ulferts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulferts/subscriptions","organizations_url":"https://api.github.com/users/ulferts/orgs","repos_url":"https://api.github.com/users/ulferts/repos","events_url":"https://api.github.com/users/ulferts/events{/privacy}","received_events_url":"https://api.github.com/users/ulferts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-21T14:43:29Z","updated_at":"2015-10-24T11:36:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opf/openproject/pulls/3667","html_url":"https://github.com/opf/openproject/pull/3667","diff_url":"https://github.com/opf/openproject/pull/3667.diff","patch_url":"https://github.com/opf/openproject/pull/3667.patch"},"body":"Fixes https://community.openproject.org/work_packages/21797 and refactors the settings#types. \r\n\r\nBecause `project.type_ids=` is used to update the type_ids, it is no longer possible for an invalid state of the project (e.g. a required custom field not filled out) to block the update of the types.\r\n\r\nWith the introduction of the service, the controller now has way less clutter. I still dislike the heavy usage of flash messages within the controller, especially to transmit error messages, but refactoring that is to big an effort."},"comment":{"url":"https://api.github.com/repos/opf/openproject/issues/comments/150792828","html_url":"https://github.com/opf/openproject/pull/3667#issuecomment-150792828","issue_url":"https://api.github.com/repos/opf/openproject/issues/3667","id":150792828,"user":{"login":"ulferts","id":617519,"avatar_url":"https://avatars.githubusercontent.com/u/617519?v=3","gravatar_id":"","url":"https://api.github.com/users/ulferts","html_url":"https://github.com/ulferts","followers_url":"https://api.github.com/users/ulferts/followers","following_url":"https://api.github.com/users/ulferts/following{/other_user}","gists_url":"https://api.github.com/users/ulferts/gists{/gist_id}","starred_url":"https://api.github.com/users/ulferts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulferts/subscriptions","organizations_url":"https://api.github.com/users/ulferts/orgs","repos_url":"https://api.github.com/users/ulferts/repos","events_url":"https://api.github.com/users/ulferts/events{/privacy}","received_events_url":"https://api.github.com/users/ulferts/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T11:36:25Z","updated_at":"2015-10-24T11:36:25Z","body":"I think so."}}