forked from 0xWheatyz/SPARC
Add PDF and CSV export for analysis reports from the dashboard #1512
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap item: P3 — Export analysis reports
Users currently have no way to download analysis results. This is a nice-to-have feature for sharing or archiving reports.
What to do
GET /jobs/{id}/export?format=pdf|csvendpoint in the backend that serialises the job result.weasyprintorreportlabto render a styled report.Acceptance criteria
GET /jobs/{id}/export?format=csvreturns a valid CSV downloadGET /jobs/{id}/export?format=pdfreturns a valid PDF download[Repo Manager] This issue is already resolved.
api.pyincludes/export/{company_name}(CSV) and/export/{company_name}/pdf(PDF) endpoints with full formatting using reportlab. Closing as complete.