Feat/status change#30
Merged
HumbertoIshii merged 3 commits intodevelopfrom Apr 29, 2026
Merged
Conversation
Adiciona endpoint para fechamento de ticket com validação de status e registro de solução.
Adiciona testes para validar o fechamento de tickets no use case e no endpoint de close.
Corrige Campo agentId no Swagger para usar Mongo ObjectId em vez de UUID.
GabrielViellCastilho
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mudança de Status no ticket
PROD-52 Implementar lógica de mudança de status
Aplicar regras de negócio para transição de status dos chamados
PROD-51 Criar endpoint de alteração de status
Desenvolver endpoint responsável por alterar o status de chamados
Tipo do PR
O que foi feito nesta branch?
Implementado endpoint
PUT /tickets/:id/closepara fechamento de tickets com registro da solução.Criado
CloseTicketUseCase, DTO e integração no módulo e mapper do ticket.Adicionados testes para o endpoint
/closee para o caso de uso de fechamento.Corrigido o exemplo do
agentIdno Swagger para usar Mongo ObjectId em vez de UUID.Instruções de como testar
Rodar a aplicação
Acessar o Swagger
http://localhost:3000/api
Fazer login com usuário admin
email: admin@pro4tech.com
password: Pro4Tech
Testar fechamento de ticket
Testar validação de status para fechamento
Testar cenários de erro
Revisores