{"action":"created","issue":{"url":"https://api.github.com/repos/okfn-brasil/cuidando2/issues/23","labels_url":"https://api.github.com/repos/okfn-brasil/cuidando2/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/okfn-brasil/cuidando2/issues/23/comments","events_url":"https://api.github.com/repos/okfn-brasil/cuidando2/issues/23/events","html_url":"https://github.com/okfn-brasil/cuidando2/issues/23","id":101259410,"number":23,"title":"Como tratar quando o pedido não conseguiu ser enviado para o eSIC?","user":{"login":"andresmrm","id":937689,"avatar_url":"https://avatars.githubusercontent.com/u/937689?v=3","gravatar_id":"","url":"https://api.github.com/users/andresmrm","html_url":"https://github.com/andresmrm","followers_url":"https://api.github.com/users/andresmrm/followers","following_url":"https://api.github.com/users/andresmrm/following{/other_user}","gists_url":"https://api.github.com/users/andresmrm/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmrm/subscriptions","organizations_url":"https://api.github.com/users/andresmrm/orgs","repos_url":"https://api.github.com/users/andresmrm/repos","events_url":"https://api.github.com/users/andresmrm/events{/privacy}","received_events_url":"https://api.github.com/users/andresmrm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/okfn-brasil/cuidando2/labels/esiclivre","name":"esiclivre","color":"006b75"},{"url":"https://api.github.com/repos/okfn-brasil/cuidando2/labels/importante","name":"importante","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"alexandre","id":5252795,"avatar_url":"https://avatars.githubusercontent.com/u/5252795?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandre","html_url":"https://github.com/alexandre","followers_url":"https://api.github.com/users/alexandre/followers","following_url":"https://api.github.com/users/alexandre/following{/other_user}","gists_url":"https://api.github.com/users/alexandre/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandre/subscriptions","organizations_url":"https://api.github.com/users/alexandre/orgs","repos_url":"https://api.github.com/users/alexandre/repos","events_url":"https://api.github.com/users/alexandre/events{/privacy}","received_events_url":"https://api.github.com/users/alexandre/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/okfn-brasil/cuidando2/milestones/2","html_url":"https://github.com/okfn-brasil/cuidando2/milestones/Encerramento","labels_url":"https://api.github.com/repos/okfn-brasil/cuidando2/milestones/2/labels","id":1256845,"number":2,"title":"Encerramento","description":"Todas as funcionalidades implementadas, tudo pronto e rodando bem. Talvez sobrem alguns testes...","creator":{"login":"andresmrm","id":937689,"avatar_url":"https://avatars.githubusercontent.com/u/937689?v=3","gravatar_id":"","url":"https://api.github.com/users/andresmrm","html_url":"https://github.com/andresmrm","followers_url":"https://api.github.com/users/andresmrm/followers","following_url":"https://api.github.com/users/andresmrm/following{/other_user}","gists_url":"https://api.github.com/users/andresmrm/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmrm/subscriptions","organizations_url":"https://api.github.com/users/andresmrm/orgs","repos_url":"https://api.github.com/users/andresmrm/repos","events_url":"https://api.github.com/users/andresmrm/events{/privacy}","received_events_url":"https://api.github.com/users/andresmrm/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":2,"state":"open","created_at":"2015-08-16T11:45:59Z","updated_at":"2015-08-22T13:17:11Z","due_on":"2015-10-15T03:00:00Z","closed_at":null},"comments":2,"created_at":"2015-08-16T12:26:07Z","updated_at":"2015-08-22T16:04:47Z","closed_at":null,"body":"A pessoas enviou um pedido, o EsicLivre aceitou, mas na hora de repassar para o eSIC não foi. O que fazer?"},"comment":{"url":"https://api.github.com/repos/okfn-brasil/cuidando2/issues/comments/133717949","html_url":"https://github.com/okfn-brasil/cuidando2/issues/23#issuecomment-133717949","issue_url":"https://api.github.com/repos/okfn-brasil/cuidando2/issues/23","id":133717949,"user":{"login":"andresmrm","id":937689,"avatar_url":"https://avatars.githubusercontent.com/u/937689?v=3","gravatar_id":"","url":"https://api.github.com/users/andresmrm","html_url":"https://github.com/andresmrm","followers_url":"https://api.github.com/users/andresmrm/followers","following_url":"https://api.github.com/users/andresmrm/following{/other_user}","gists_url":"https://api.github.com/users/andresmrm/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmrm/subscriptions","organizations_url":"https://api.github.com/users/andresmrm/orgs","repos_url":"https://api.github.com/users/andresmrm/repos","events_url":"https://api.github.com/users/andresmrm/events{/privacy}","received_events_url":"https://api.github.com/users/andresmrm/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T16:04:47Z","updated_at":"2015-08-22T16:04:47Z","body":"\nSim... A grande questão aí é que quando o usuário envia o pedido para nós, ele\nnão espera para ver se foi bem sucedido no eSIC. O pedido simplesmente é\ncolocado no nosso BD para envio e para o usuário está tudo certo. Porém,\nquando o EsicLivre finalmente enviar o pedido no eSIC, pode dar erro. Mas\nnesse momento o usuário pode nem estar mais navegando pelo site.\n\nO que vejo de possibilidade aí seria enviar um e-mail para o usuário avisando\nque o pedido dele deu pau, para tentar de novo se quiser...\nTeria que marcar o pedido de algum jeito no BD também. Para que ele não\ncontinue a tentar ser reenviado a cada 5s... Talvez tentar algumas vezes e\ndepois desistir marcando ele no BD como inválido e enviando um e-mail para o\nusuário?\n\n\n\n[2015-08-22 12:55] Alexandre:\n\n> @andresmrm ,\n> \n> A pagina não fala sobre validações (e.g. pedido repetido), então fica um pouco\n> complicado. IMO, O que podemos fazer é uma validação básica no EsicLivre...e\n> aguardar o eSIC. =/\n> \n> —\n> Reply to this email directly or view it on GitHub.*\n> \n"}}