{"action":"created","issue":{"url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/223","repository_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc","labels_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/223/comments","events_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/223/events","html_url":"https://github.com/juntos-com-vc/juntos.com.vc/pull/223","id":184034092,"number":223,"title":"Bug when try to remove users from Juntos's team","user":{"login":"igorrfc","id":7783787,"avatar_url":"https://avatars.githubusercontent.com/u/7783787?v=3","gravatar_id":"","url":"https://api.github.com/users/igorrfc","html_url":"https://github.com/igorrfc","followers_url":"https://api.github.com/users/igorrfc/followers","following_url":"https://api.github.com/users/igorrfc/following{/other_user}","gists_url":"https://api.github.com/users/igorrfc/gists{/gist_id}","starred_url":"https://api.github.com/users/igorrfc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorrfc/subscriptions","organizations_url":"https://api.github.com/users/igorrfc/orgs","repos_url":"https://api.github.com/users/igorrfc/repos","events_url":"https://api.github.com/users/igorrfc/events{/privacy}","received_events_url":"https://api.github.com/users/igorrfc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-19T18:06:42Z","updated_at":"2016-10-20T19:57:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/223","html_url":"https://github.com/juntos-com-vc/juntos.com.vc/pull/223","diff_url":"https://github.com/juntos-com-vc/juntos.com.vc/pull/223.diff","patch_url":"https://github.com/juntos-com-vc/juntos.com.vc/pull/223.patch"},"body":"This bug was about the field chosen to select the staff types of an user, the field is a select field and is difficult to select and deselect options(is needed to press ctrl and stuff like that). It was replaced for checkboxes(more easy to use, especially for multiple choices).\r\n\r\nI had a problem with the precheck of these checkboxes - made by the formtastic gem - and needed to replace the User method that fill the checkboxes(staffs_array). This method was replaced by two new methods: staff_values(checkbox value) and staff_description(checkbox label value).\r\nCheck this stackoverflow article:  http://stackoverflow.com/questions/32548540/formtastic-pre-check-few-checkboxes\r\n\r\nCreated specs for User.staff_description."},"comment":{"url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/comments/255211102","html_url":"https://github.com/juntos-com-vc/juntos.com.vc/pull/223#issuecomment-255211102","issue_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/223","id":255211102,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T19:57:12Z","updated_at":"2016-10-20T19:57:12Z","body":"\n[![Coverage Status](https://coveralls.io/builds/8437473/badge)](https://coveralls.io/builds/8437473)\n\nCoverage decreased (-0.006%) to 81.429% when pulling **c8923fa7a67609b9defc76feb760b6d8ceeeb13f on fix/remove-users-from-team** into **d7e7bfc3fdd971b54cab2833f23d95617a5078dc on master**.\n"}}
{"actor":{"display_login":"coveralls"}}