{"action":"created","issue":{"url":"https://api.github.com/repos/aces/cbrain/issues/131","labels_url":"https://api.github.com/repos/aces/cbrain/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/aces/cbrain/issues/131/comments","events_url":"https://api.github.com/repos/aces/cbrain/issues/131/events","html_url":"https://github.com/aces/cbrain/issues/131","id":86171319,"number":131,"title":" Don't like the Userfile#update_file_type method.","user":{"login":"natacha-beck","id":777590,"avatar_url":"https://avatars.githubusercontent.com/u/777590?v=3","gravatar_id":"","url":"https://api.github.com/users/natacha-beck","html_url":"https://github.com/natacha-beck","followers_url":"https://api.github.com/users/natacha-beck/followers","following_url":"https://api.github.com/users/natacha-beck/following{/other_user}","gists_url":"https://api.github.com/users/natacha-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/natacha-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natacha-beck/subscriptions","organizations_url":"https://api.github.com/users/natacha-beck/orgs","repos_url":"https://api.github.com/users/natacha-beck/repos","events_url":"https://api.github.com/users/natacha-beck/events{/privacy}","received_events_url":"https://api.github.com/users/natacha-beck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aces/cbrain/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/aces/cbrain/labels/Refactoring","name":"Refactoring","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"remibernard","id":12155323,"avatar_url":"https://avatars.githubusercontent.com/u/12155323?v=3","gravatar_id":"","url":"https://api.github.com/users/remibernard","html_url":"https://github.com/remibernard","followers_url":"https://api.github.com/users/remibernard/followers","following_url":"https://api.github.com/users/remibernard/following{/other_user}","gists_url":"https://api.github.com/users/remibernard/gists{/gist_id}","starred_url":"https://api.github.com/users/remibernard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remibernard/subscriptions","organizations_url":"https://api.github.com/users/remibernard/orgs","repos_url":"https://api.github.com/users/remibernard/repos","events_url":"https://api.github.com/users/remibernard/events{/privacy}","received_events_url":"https://api.github.com/users/remibernard/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aces/cbrain/milestones/6","html_url":"https://github.com/aces/cbrain/milestones/4.3.0","labels_url":"https://api.github.com/repos/aces/cbrain/milestones/6/labels","id":1392389,"number":6,"title":"4.3.0","description":null,"creator":{"login":"prioux","id":777588,"avatar_url":"https://avatars.githubusercontent.com/u/777588?v=3","gravatar_id":"","url":"https://api.github.com/users/prioux","html_url":"https://github.com/prioux","followers_url":"https://api.github.com/users/prioux/followers","following_url":"https://api.github.com/users/prioux/following{/other_user}","gists_url":"https://api.github.com/users/prioux/gists{/gist_id}","starred_url":"https://api.github.com/users/prioux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prioux/subscriptions","organizations_url":"https://api.github.com/users/prioux/orgs","repos_url":"https://api.github.com/users/prioux/repos","events_url":"https://api.github.com/users/prioux/events{/privacy}","received_events_url":"https://api.github.com/users/prioux/received_events","type":"User","site_admin":false},"open_issues":70,"closed_issues":32,"state":"open","created_at":"2015-11-03T22:01:26Z","updated_at":"2016-01-25T20:35:17Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-06-08T13:11:41Z","updated_at":"2016-01-25T21:31:25Z","closed_at":null,"body":"It's clunky, couples the Userfile and User models, and doesn't use the new type validations, meaning we have type-checking logic in two different places. It's only used in one place, UserfilesController#update_multiple, so I think we should be able to get rid of it (and possibly other methods that only it depends on).\r\n\r\nRedmine: 3211"},"comment":{"url":"https://api.github.com/repos/aces/cbrain/issues/comments/174671780","html_url":"https://github.com/aces/cbrain/issues/131#issuecomment-174671780","issue_url":"https://api.github.com/repos/aces/cbrain/issues/131","id":174671780,"user":{"login":"prioux","id":777588,"avatar_url":"https://avatars.githubusercontent.com/u/777588?v=3","gravatar_id":"","url":"https://api.github.com/users/prioux","html_url":"https://github.com/prioux","followers_url":"https://api.github.com/users/prioux/followers","following_url":"https://api.github.com/users/prioux/following{/other_user}","gists_url":"https://api.github.com/users/prioux/gists{/gist_id}","starred_url":"https://api.github.com/users/prioux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prioux/subscriptions","organizations_url":"https://api.github.com/users/prioux/orgs","repos_url":"https://api.github.com/users/prioux/repos","events_url":"https://api.github.com/users/prioux/events{/privacy}","received_events_url":"https://api.github.com/users/prioux/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T21:31:25Z","updated_at":"2016-01-25T21:31:25Z","body":"Cannot find code that was bad... Remi to investigate."}}