fix: XMLErrorReport gera relatório CSV para download#886
Draft
fix: XMLErrorReport gera relatório CSV para download#886
Conversation
…orReport; update template to show error reports in downloads table Co-authored-by: robertatakenaka <505143+robertatakenaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix package validation not generating error report
fix: XMLErrorReport gera relatório CSV para download
Mar 16, 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 esse PR faz?
XMLInfoReportgera um CSV viagenerate_report()e o disponibiliza para download.XMLErrorReportnão fazia isso —finish_validations()apenas marcavacreation = DONEsem gerar arquivo. Este PR espelha o padrão deXMLInfoReportemXMLErrorReport.Onde a revisão poderia começar?
upload/models.py— métodossave_file(),generate_report()efinish_validations()adicionados à classeXMLErrorReport(linhas ~1996–2029).Como este poderia ser testado manualmente?
Algum cenário de contexto que queira dar?
A diferença entre
XMLInfoReporteXMLErrorReport:XMLInfoReportXMLErrorReport(antes)XMLErrorReport(depois)filefieldgenerate_report()finish_validations()gera CSVMudanças:
upload/models.py—XMLErrorReportrecebefile(FileField),save_file(),generate_report()e override definish_validations()para gerar CSV antes de marcar como doneinspect.html— Iteraxml_error_reportsna tabela de downloads ao lado dos info reports0011_xmlerrorreport_file.py— Migration para o novo campofileScreenshots
N/A — a correção adiciona uma nova linha na tabela de downloads que antes só mostrava o XML Info Report.
Quais são tickets relevantes?
N/A
Referências
Padrão existente em
XMLInfoReport.generate_report()/XMLInfoReport.finish_validations().Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.