Rota para apagar uma conclusão a pedido (LGPD)

Open
#249 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, mongodb, nodejs, openapi, sqlite
Domain
api, backend, databases

Research direction

Read docs/dados-pessoais.md and the existing apagarConclusao implementations for the memory, SQLite, and MongoDB repositories to find the route and repository patterns. Then inspect api/openapi.json, docs/api.md, and the contract tests. Done means the DELETE route enforces the specified roles, returns 204 or a 404 Problem Details response, and is documented with coverage for all three repositories.

Written by the indexing model from the issue text.

Description

enhancement item-do-catalogo trilha:T10

Objetivo

Criar a rota DELETE /v1/conclusoes/:id, só para mantenedor, para apagar uma conclusão a pedido da pessoa.

Motivo

A proposta de dados pessoais (docs/dados-pessoais.md, T10.5) promete apagar a conclusão de quem pedir. O repositório já tem apagarConclusao (memória, SQLite e MongoDB), mas não há rota HTTP: hoje seria preciso mexer direto no banco.

Critérios de entrega

  • DELETE /v1/conclusoes/:id responde 204 para mantenedor, 401 sem sessão e 403 para pessoa sem o papel.
  • Id inexistente responde 404 em Problem Details.
  • A rota está no api/openapi.json (o teste de contrato confere) e no docs/api.md.
  • Teste com os três repositórios (memória, SQLite e MongoDB no CI).
  • docs/dados-pessoais.md passa a citar a rota.

Fora desta issue

Tela no painel para pedir o apagamento. Apagar em lote.

Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
15h 6m
Merged PRs (30d)
118

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learnTECH-community/formacao-dev

All issues in learnTECH-community/formacao-dev

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.