{"action":"created","issue":{"url":"https://api.github.com/repos/UPC/mailtoticket/issues/100","repository_url":"https://api.github.com/repos/UPC/mailtoticket","labels_url":"https://api.github.com/repos/UPC/mailtoticket/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/UPC/mailtoticket/issues/100/comments","events_url":"https://api.github.com/repos/UPC/mailtoticket/issues/100/events","html_url":"https://github.com/UPC/mailtoticket/pull/100","id":138232107,"number":100,"title":"Encapsulament de la comprovació d'errors SOA","user":{"login":"aaguilera","id":290301,"avatar_url":"https://avatars.githubusercontent.com/u/290301?v=3","gravatar_id":"","url":"https://api.github.com/users/aaguilera","html_url":"https://github.com/aaguilera","followers_url":"https://api.github.com/users/aaguilera/followers","following_url":"https://api.github.com/users/aaguilera/following{/other_user}","gists_url":"https://api.github.com/users/aaguilera/gists{/gist_id}","starred_url":"https://api.github.com/users/aaguilera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaguilera/subscriptions","organizations_url":"https://api.github.com/users/aaguilera/orgs","repos_url":"https://api.github.com/users/aaguilera/repos","events_url":"https://api.github.com/users/aaguilera/events{/privacy}","received_events_url":"https://api.github.com/users/aaguilera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-03T16:46:23Z","updated_at":"2016-03-03T22:56:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/UPC/mailtoticket/pulls/100","html_url":"https://github.com/UPC/mailtoticket/pull/100","diff_url":"https://github.com/UPC/mailtoticket/pull/100.diff","patch_url":"https://github.com/UPC/mailtoticket/pull/100.patch"},"body":"L'objectiu d'aquesta branca és començar a encapsular l'estructura interna del resultat d'una crida a SOA, que actualment es comprova amb l'expressió `resultat['codiRetorn']`.\r\n\r\nAquest PR encapsula l'ús duplicat d'aquesta expressió que hem detectat en els warnings del CodeClimate, en els següents fitxers: \r\n\r\n * `filtres/nou.py` (línies 72 i 101)\r\n * `filtres/reply.py` (línia 90)\r\n\r\nLa refactorització implica encapsular l'expressió actual en un nou mètode `resultat_erroni` que estarà definit en un únic lloc (la classe `SOAService`)."},"comment":{"url":"https://api.github.com/repos/UPC/mailtoticket/issues/comments/192006409","html_url":"https://github.com/UPC/mailtoticket/pull/100#issuecomment-192006409","issue_url":"https://api.github.com/repos/UPC/mailtoticket/issues/100","id":192006409,"user":{"login":"aaguilera","id":290301,"avatar_url":"https://avatars.githubusercontent.com/u/290301?v=3","gravatar_id":"","url":"https://api.github.com/users/aaguilera","html_url":"https://github.com/aaguilera","followers_url":"https://api.github.com/users/aaguilera/followers","following_url":"https://api.github.com/users/aaguilera/following{/other_user}","gists_url":"https://api.github.com/users/aaguilera/gists{/gist_id}","starred_url":"https://api.github.com/users/aaguilera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaguilera/subscriptions","organizations_url":"https://api.github.com/users/aaguilera/orgs","repos_url":"https://api.github.com/users/aaguilera/repos","events_url":"https://api.github.com/users/aaguilera/events{/privacy}","received_events_url":"https://api.github.com/users/aaguilera/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T22:56:43Z","updated_at":"2016-03-03T22:56:43Z","body":"Aaaaaaagh! :-(\r\n"}}