-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/api endpoint recusa solicitação convite #202
The head ref may contain hidden characters: "feat/api-endpoint-recusa-solicita\u00E7\u00E3o-convite"
Feat/api endpoint recusa solicitação convite #202
Conversation
Co-authored-by: Rodrigo Gyodai <[email protected]>
Retorna status 409 para requisições em solicitações de convite que não estejam pendentes. Co-authored-by: Rodrigo Gyodai <[email protected]>
Co-authored-by: Rodrigo Gyodai <[email protected]>
Co-authored-by: Rodrigo Gyodai <[email protected]>
Co-authored-by: Rodrigo Gyodai <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bom trabalho rapaziada ! 💯
Somente um detalhe de auto contenção nos testes abaixo :)
spec/requests/apis/v1/invitation_requests/leader_denies_invitation_request_spec.rb
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ótimo, meninos!
A rota que o Cola?Bora! acessa por padrão está no singular, e a nossa rota estava com a nomenclatura no plural. Co-authored-by: [email protected] <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show de Bola :) 💯
Esse PR aborda e resolve #188
User Story
Eu, como desenvolvedor do Cola?Bora!, quero ter um endpoint para enviar uma atualização informando que o proposal (invitation_request) foi recusado pelo líder de projeto em nossa plataforma, para que o líder de projeto não precise acessar o Portfoliorrr para avisar o solicitante.
Critérios de Aceite
PATCH /api/v1/invitation_request/:invitation_request_id
;refused
;pending
, retornar409
com mensagem de erro adequada;404
com mensagem de erro alertando sobre o problema500
com uma mensagem de erro alertando sobre o problema.Débitos
Não haverão débitos nessa issue.