Repository navigation
feat: permite desvincular etiquetas RFID dos tombos - #596
Merged
Merged
Conversation
edvaldoszy
approved these changes
Nov 22, 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.
O que foi feito
Permite desfazer o vínculo entre etiqueta RFID e tombo pelo sistema, preservando o tombo e sua foto e liberando EPC/TID para uma nova vinculação.
Alterações principais
DELETE /api/rfids/:id, restrito a curadores, com retorno 204 ao remover, 400 para ID inválido e 404 para vínculo inexistente.Cobertura de testes e validação
yarn test --maxWorkers=2: 499 testes aprovados em 93 arquivos.yarn buildetsc --noEmit: aprovados.Como testar
Com a API e o painel da branch
feat/desvincular-etiqueta-tombo, acessar como curador: RFID → Vínculos → Editar → Desvincular etiqueta → Salvar. Confirmar que o vínculo desaparece, o tombo/foto permanecem e a foto fica disponível para nova vinculação.Observações
A operação não apaga nem reprograma a etiqueta física. Os inventários preservam os TIDs e totais armazenados; os detalhes históricos continuam dependendo dos vínculos atuais, conforme o comportamento existente.
PR relacionada
Interface de edição e desvinculação: utfpr/hcf-painel#440.