{"action":"closed","number":96,"pull_request":{"url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls/96","id":179856151,"html_url":"https://github.com/fga-gpp-mds/2018.1-Dr-Down/pull/96","diff_url":"https://github.com/fga-gpp-mds/2018.1-Dr-Down/pull/96.diff","patch_url":"https://github.com/fga-gpp-mds/2018.1-Dr-Down/pull/96.patch","issue_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues/96","number":96,"state":"closed","locked":false,"title":"Usuário Médico","user":{"login":"gabiMSilva","id":36926637,"avatar_url":"https://avatars0.githubusercontent.com/u/36926637?v=4","gravatar_id":"","url":"https://api.github.com/users/gabiMSilva","html_url":"https://github.com/gabiMSilva","followers_url":"https://api.github.com/users/gabiMSilva/followers","following_url":"https://api.github.com/users/gabiMSilva/following{/other_user}","gists_url":"https://api.github.com/users/gabiMSilva/gists{/gist_id}","starred_url":"https://api.github.com/users/gabiMSilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabiMSilva/subscriptions","organizations_url":"https://api.github.com/users/gabiMSilva/orgs","repos_url":"https://api.github.com/users/gabiMSilva/repos","events_url":"https://api.github.com/users/gabiMSilva/events{/privacy}","received_events_url":"https://api.github.com/users/gabiMSilva/received_events","type":"User","site_admin":false},"body":"<!--- Forneça um resumo geral das suas alterações no título acima -->\r\n\r\n## Descrição\r\nPara seu cadastro completo o médico deverá, primeiramente, criar um usuário base. Após a confirmação do e-mail, o administrador do site deverá delegar sua função de médico e sua especialidade. Ele poderá excluir, editar e visualizar suas informações.\r\n<!--- Decreva suas alterações detalhadamente -->\r\n\r\n## _Issue_ Relacionada\r\n<!--- Este projeto apenas aceita _pull requests_ relacionadas à _issues_ abertas. -->\r\n<!--- Se está sugerindo uma nova _feature_ ou mudança, por favor discuta em uma _issue_ antes. -->\r\n<!--- Se está corrigindo um _bug_, deve haver uma _issue_ descrevendo-o com passos para reproduzir. -->\r\n<!--- Por favor, adicione o link para a _issue_ aqui: --> #71 (Manter usuário médico)\r\n\r\n## Motivação e Contexto\r\n<!--- Por que essa mudança é necessária? Qual problema ela resolve? -->\r\nCria acesso para o tipo médico de usuário\r\n\r\n## Como Isso Foi Testado?\r\n<!--- Por favor, descreva detalhadamente como você testou suas mudanças. -->\r\n<!--- Inclua detalhes do seu ambiente de teste e os testes que você executou -->\r\n<!--- para ver como a sua alteração afeta outras áreas do código, etc. -->\r\n\r\nFoi testado com testes unitários da model e da view do usuário doctor especificamente.\r\n\r\n## Capturas de Tela (se apropriado):\r\n\"O usuário deve ser capaz de editar, excluir e listar suas informações\":\r\nObs.: O botão \"my info\" já foi mudado para \"edit\", porém está na branch de refatoração do user\r\nObs.: O botão \"delete\" não estão implementado nesta branch (está na branch de refatoração) e está na imagem mais por uma representação visual. O botão \"delete\" da branch de refatoração deleta o user base, deletando também o user doctor caso seja acionado.\r\n![img1](https://image.ibb.co/cenNSH/Captura_de_tela_de_2018_04_06_01_34_04.png)\r\n\r\nEsse é a view do botão \"edit\". Considerando que as informações inseridas pelo admin não podem ser editadas, na branch do user base foram colocados mais campos de edição nessa tela \r\n![img2](https://image.ibb.co/jsfbnH/Captura_de_tela_de_2018_04_06_01_34_18.png)\r\n\r\nGrupo doctor na tela do administrador:\r\n![ima3](https://image.ibb.co/iFcNSH/Captura_de_tela_de_2018_04_06_01_35_26.png)\r\n\r\n\"Haverá uma confirmação se a pessoa exerce a função a qual está pleitando o tipo do usuário e essa confirmação é feita pelo administrador do sistema.\"\r\nEssa tela mostra onde o administrador irá criar um user doctor a partir de um base já criado (ou não)\r\n![img4](https://image.ibb.co/ekLy1c/Captura_de_tela_de_2018_04_06_01_35_32.png)\r\n\r\n## Tipos de Mudanças\r\n<!--- Quais os tipos de alterações introduzidos pelo seu código? Coloque um `x` em todas as caixas que se aplicam: -->\r\n- [ ] _Bug fix_ (alteração que corrige uma _issue_ e não altera funcionalidades já existentes)\r\n- [x] Nova _feature_ (alteração que adiciona uma funcionalidade e não altera funcionalidades já existentes)\r\n- [ ] Alteração disruptiva (_Breaking change_) (Correção ou funcionalidade que causa alteração nas funcionalidades existentes)\r\n\r\n## Checklist:\r\n<!--- Passe por todos os pontos a seguir e coloque um `x` em todas as caixas que se aplicam. -->\r\n<!--- Se você não tem certeza sobre nenhum destes, não hesite em perguntar. Nós estamos aqui para ajudar! -->\r\n- [x] Meu código segue o estilo de código desse projeto.\r\n- [x] Meus _commits_ seguem o padrão de estilo desse projeto.\r\n- [ ] Minha alteração requer uma alteração na documentação.\r\n- [ ] Eu atualizei a documentação de acordo.\r\n- [ ] Eu li o documento de Contribuição (**CONTRIBUTING**).\r\n- [x] Eu adicionei testes para cobrir minhas mudanças.\r\n- [x] Todos os testes novos e existentes passaram.","created_at":"2018-04-06T05:13:44Z","updated_at":"2018-04-08T00:13:37Z","closed_at":"2018-04-08T00:13:37Z","merged_at":"2018-04-08T00:13:37Z","merge_commit_sha":"fad40628d198c28bf271fa118fa5454529d372db","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls/96/commits","review_comments_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls/96/comments","review_comment_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues/96/comments","statuses_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/statuses/b9a258ddf7985155f6fb7eea03f23c6a4b719955","head":{"label":"fga-gpp-mds:feature/US41-Doctor-user","ref":"feature/US41-Doctor-user","sha":"b9a258ddf7985155f6fb7eea03f23c6a4b719955","user":{"login":"fga-gpp-mds","id":19551710,"avatar_url":"https://avatars0.githubusercontent.com/u/19551710?v=4","gravatar_id":"","url":"https://api.github.com/users/fga-gpp-mds","html_url":"https://github.com/fga-gpp-mds","followers_url":"https://api.github.com/users/fga-gpp-mds/followers","following_url":"https://api.github.com/users/fga-gpp-mds/following{/other_user}","gists_url":"https://api.github.com/users/fga-gpp-mds/gists{/gist_id}","starred_url":"https://api.github.com/users/fga-gpp-mds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fga-gpp-mds/subscriptions","organizations_url":"https://api.github.com/users/fga-gpp-mds/orgs","repos_url":"https://api.github.com/users/fga-gpp-mds/repos","events_url":"https://api.github.com/users/fga-gpp-mds/events{/privacy}","received_events_url":"https://api.github.com/users/fga-gpp-mds/received_events","type":"Organization","site_admin":false},"repo":{"id":124143479,"name":"2018.1-Dr-Down","full_name":"fga-gpp-mds/2018.1-Dr-Down","owner":{"login":"fga-gpp-mds","id":19551710,"avatar_url":"https://avatars0.githubusercontent.com/u/19551710?v=4","gravatar_id":"","url":"https://api.github.com/users/fga-gpp-mds","html_url":"https://github.com/fga-gpp-mds","followers_url":"https://api.github.com/users/fga-gpp-mds/followers","following_url":"https://api.github.com/users/fga-gpp-mds/following{/other_user}","gists_url":"https://api.github.com/users/fga-gpp-mds/gists{/gist_id}","starred_url":"https://api.github.com/users/fga-gpp-mds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fga-gpp-mds/subscriptions","organizations_url":"https://api.github.com/users/fga-gpp-mds/orgs","repos_url":"https://api.github.com/users/fga-gpp-mds/repos","events_url":"https://api.github.com/users/fga-gpp-mds/events{/privacy}","received_events_url":"https://api.github.com/users/fga-gpp-mds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fga-gpp-mds/2018.1-Dr-Down","description":"Repositório da ferramenta de informação e união de pessoas que convivem com a Síndrome de Down.","fork":false,"url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down","forks_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/forks","keys_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/teams","hooks_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/hooks","issue_events_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues/events{/number}","events_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/events","assignees_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/assignees{/user}","branches_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/branches{/branch}","tags_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/tags","blobs_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/refs{/sha}","trees_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/statuses/{sha}","languages_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/languages","stargazers_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/stargazers","contributors_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/contributors","subscribers_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/subscribers","subscription_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/subscription","commits_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/commits{/sha}","git_commits_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/commits{/sha}","comments_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/comments{/number}","issue_comment_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues/comments{/number}","contents_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/contents/{+path}","compare_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/merges","archive_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/downloads","issues_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues{/number}","pulls_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls{/number}","milestones_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/milestones{/number}","notifications_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/labels{/name}","releases_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/releases{/id}","deployments_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/deployments","created_at":"2018-03-06T21:55:37Z","updated_at":"2018-04-07T23:07:53Z","pushed_at":"2018-04-08T00:13:36Z","git_url":"git://github.com/fga-gpp-mds/2018.1-Dr-Down.git","ssh_url":"git@github.com:fga-gpp-mds/2018.1-Dr-Down.git","clone_url":"https://github.com/fga-gpp-mds/2018.1-Dr-Down.git","svn_url":"https://github.com/fga-gpp-mds/2018.1-Dr-Down","homepage":"https://fga-gpp-mds.github.io/2018.1-Dr-Down/","size":5524,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":15,"watchers":9,"default_branch":"develop"}},"base":{"label":"fga-gpp-mds:develop","ref":"develop","sha":"7a5ec512c309718a94c86b7960d0a4ec72d5dd7a","user":{"login":"fga-gpp-mds","id":19551710,"avatar_url":"https://avatars0.githubusercontent.com/u/19551710?v=4","gravatar_id":"","url":"https://api.github.com/users/fga-gpp-mds","html_url":"https://github.com/fga-gpp-mds","followers_url":"https://api.github.com/users/fga-gpp-mds/followers","following_url":"https://api.github.com/users/fga-gpp-mds/following{/other_user}","gists_url":"https://api.github.com/users/fga-gpp-mds/gists{/gist_id}","starred_url":"https://api.github.com/users/fga-gpp-mds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fga-gpp-mds/subscriptions","organizations_url":"https://api.github.com/users/fga-gpp-mds/orgs","repos_url":"https://api.github.com/users/fga-gpp-mds/repos","events_url":"https://api.github.com/users/fga-gpp-mds/events{/privacy}","received_events_url":"https://api.github.com/users/fga-gpp-mds/received_events","type":"Organization","site_admin":false},"repo":{"id":124143479,"name":"2018.1-Dr-Down","full_name":"fga-gpp-mds/2018.1-Dr-Down","owner":{"login":"fga-gpp-mds","id":19551710,"avatar_url":"https://avatars0.githubusercontent.com/u/19551710?v=4","gravatar_id":"","url":"https://api.github.com/users/fga-gpp-mds","html_url":"https://github.com/fga-gpp-mds","followers_url":"https://api.github.com/users/fga-gpp-mds/followers","following_url":"https://api.github.com/users/fga-gpp-mds/following{/other_user}","gists_url":"https://api.github.com/users/fga-gpp-mds/gists{/gist_id}","starred_url":"https://api.github.com/users/fga-gpp-mds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fga-gpp-mds/subscriptions","organizations_url":"https://api.github.com/users/fga-gpp-mds/orgs","repos_url":"https://api.github.com/users/fga-gpp-mds/repos","events_url":"https://api.github.com/users/fga-gpp-mds/events{/privacy}","received_events_url":"https://api.github.com/users/fga-gpp-mds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fga-gpp-mds/2018.1-Dr-Down","description":"Repositório da ferramenta de informação e união de pessoas que convivem com a Síndrome de Down.","fork":false,"url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down","forks_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/forks","keys_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/teams","hooks_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/hooks","issue_events_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues/events{/number}","events_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/events","assignees_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/assignees{/user}","branches_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/branches{/branch}","tags_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/tags","blobs_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/refs{/sha}","trees_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/statuses/{sha}","languages_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/languages","stargazers_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/stargazers","contributors_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/contributors","subscribers_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/subscribers","subscription_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/subscription","commits_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/commits{/sha}","git_commits_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/git/commits{/sha}","comments_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/comments{/number}","issue_comment_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues/comments{/number}","contents_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/contents/{+path}","compare_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/merges","archive_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/downloads","issues_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues{/number}","pulls_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls{/number}","milestones_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/milestones{/number}","notifications_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/labels{/name}","releases_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/releases{/id}","deployments_url":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/deployments","created_at":"2018-03-06T21:55:37Z","updated_at":"2018-04-07T23:07:53Z","pushed_at":"2018-04-08T00:13:36Z","git_url":"git://github.com/fga-gpp-mds/2018.1-Dr-Down.git","ssh_url":"git@github.com:fga-gpp-mds/2018.1-Dr-Down.git","clone_url":"https://github.com/fga-gpp-mds/2018.1-Dr-Down.git","svn_url":"https://github.com/fga-gpp-mds/2018.1-Dr-Down","homepage":"https://fga-gpp-mds.github.io/2018.1-Dr-Down/","size":5524,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":15,"watchers":9,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls/96"},"html":{"href":"https://github.com/fga-gpp-mds/2018.1-Dr-Down/pull/96"},"issue":{"href":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues/96"},"comments":{"href":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/fga-gpp-mds/2018.1-Dr-Down/statuses/b9a258ddf7985155f6fb7eea03f23c6a4b719955"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ebmm01","id":3029276,"avatar_url":"https://avatars2.githubusercontent.com/u/3029276?v=4","gravatar_id":"","url":"https://api.github.com/users/ebmm01","html_url":"https://github.com/ebmm01","followers_url":"https://api.github.com/users/ebmm01/followers","following_url":"https://api.github.com/users/ebmm01/following{/other_user}","gists_url":"https://api.github.com/users/ebmm01/gists{/gist_id}","starred_url":"https://api.github.com/users/ebmm01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebmm01/subscriptions","organizations_url":"https://api.github.com/users/ebmm01/orgs","repos_url":"https://api.github.com/users/ebmm01/repos","events_url":"https://api.github.com/users/ebmm01/events{/privacy}","received_events_url":"https://api.github.com/users/ebmm01/received_events","type":"User","site_admin":false},"comments":6,"review_comments":1,"maintainer_can_modify":false,"commits":31,"additions":342,"deletions":42,"changed_files":21}}
{"actor":{"display_login":"ebmm01"}}