{"action":"opened","issue":{"url":"https://api.github.com/repos/jorgeron/CensoEGC/issues/11","labels_url":"https://api.github.com/repos/jorgeron/CensoEGC/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/jorgeron/CensoEGC/issues/11/comments","events_url":"https://api.github.com/repos/jorgeron/CensoEGC/issues/11/events","html_url":"https://github.com/jorgeron/CensoEGC/issues/11","id":121507660,"number":11,"title":"Métodos duplicados","user":{"login":"laugardel","id":7593914,"avatar_url":"https://avatars.githubusercontent.com/u/7593914?v=3","gravatar_id":"","url":"https://api.github.com/users/laugardel","html_url":"https://github.com/laugardel","followers_url":"https://api.github.com/users/laugardel/followers","following_url":"https://api.github.com/users/laugardel/following{/other_user}","gists_url":"https://api.github.com/users/laugardel/gists{/gist_id}","starred_url":"https://api.github.com/users/laugardel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laugardel/subscriptions","organizations_url":"https://api.github.com/users/laugardel/orgs","repos_url":"https://api.github.com/users/laugardel/repos","events_url":"https://api.github.com/users/laugardel/events{/privacy}","received_events_url":"https://api.github.com/users/laugardel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jorgeron/CensoEGC/labels/Empezada","name":"Empezada","color":"fbca04"},{"url":"https://api.github.com/repos/jorgeron/CensoEGC/labels/Mejora","name":"Mejora","color":"84b6eb"},{"url":"https://api.github.com/repos/jorgeron/CensoEGC/labels/Nueva","name":"Nueva","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"laugardel","id":7593914,"avatar_url":"https://avatars.githubusercontent.com/u/7593914?v=3","gravatar_id":"","url":"https://api.github.com/users/laugardel","html_url":"https://github.com/laugardel","followers_url":"https://api.github.com/users/laugardel/followers","following_url":"https://api.github.com/users/laugardel/following{/other_user}","gists_url":"https://api.github.com/users/laugardel/gists{/gist_id}","starred_url":"https://api.github.com/users/laugardel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laugardel/subscriptions","organizations_url":"https://api.github.com/users/laugardel/orgs","repos_url":"https://api.github.com/users/laugardel/repos","events_url":"https://api.github.com/users/laugardel/events{/privacy}","received_events_url":"https://api.github.com/users/laugardel/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-12-10T15:12:35Z","updated_at":"2015-12-10T15:12:35Z","closed_at":null,"body":"El grupo del curso pasado, en censusController.java tenían varios métodos \"duplicados\" como lo de añadir y eliminar usuarios de un censo. Uno era addUserToCensu y otro addUserToCensus, y lo mismo para remove.\r\n\r\nEn uno te permitía añadir/eliminar un usuario de un censo en cualquier momento, y en otro solamente cuando la votación estuviese activa.\r\n\r\nPara mejorar la eficiencia y el rendimiento, vamos a dejar un único método llamado addUserToCensus en el que se permita añadir/eliminar un usuario siempre y cuando la fecha de fin de la votación sea posterior a la fecha actual, ya que deberíamos poder ir añadiendo/eliminando personas a un censo antes de que la votación estuviese activa.\r\n\r\nLa forma de solucionar esta incidencia es borrando el método redundante y en el que nos quedamos, añadir que se cumpla únicamente la restricción de la fecha."}}