feat: política de retenção de dados em 3 camadas#4
Open
ProtectorAnalytics wants to merge 1 commit intomasterfrom
Open
feat: política de retenção de dados em 3 camadas#4ProtectorAnalytics wants to merge 1 commit intomasterfrom
ProtectorAnalytics wants to merge 1 commit intomasterfrom
Conversation
Implementa arquitetura de retenção que preserva histórico de capturas além da janela operacional de 15 dias, atendendo demandas de relatório retroativo sem comprometer a conformidade LGPD (princípio da necessidade). Arquitetura: - capturas (operacional): 15 dias — metadados + foto - capturas_historico (relatórios): 180 dias — metadados sem foto - fotos de infrações no Storage: 90 dias — evidência para contestação Mudanças: - sql/migration-historico.sql: tabela capturas_historico + índices + RLS - lib/supabase.js: 5 novos helpers (archive, purge, flag management) - api/cron-limpeza.js: reescrito com 3 etapas sequenciais O cron diário (06:00 UTC) agora: 1. Arquiva capturas > 15d no historico e apaga fotos regulares 2. Apaga fotos de infração > 90d do Storage 3. Purga registros do historico > 180d Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Implementa política de retenção de dados em 3 camadas que preserva histórico de capturas além da janela operacional de 15 dias, atendendo demandas de relatório retroativo sem comprometer LGPD (princípio da necessidade).
Arquitetura
Mudanças
Comportamento do cron (diário 06:00 UTC)
Test plan
Observações
🤖 Generated with Claude Code