Skip to content

feat: endpoint for serving PDF report

Dat Nguyen requested to merge dat/BB-6385_add_pdf_report into master

Description

  • Add an API endpoint serving PDF report for Recurrence Run and Recurrence Trends
  • Refactor report:
    • Split original *Report into CSV and JSON reports
    • Add PDF report
    • PDF and CSV reports inherit from corresponding JSON report
    • Caching is handled in JSON report
    • Put reports related source code files under a separate folder: report
  • Add tests

Supporting information

Testing instruction

  • Checkout the branch in local environment
  • Create data necessary for testing
    • Team
    • ChecklistDefinition: includes all types of interfaces
    • Recurrence
    • Run
  • Complete some checklists of a Run
  • Go to Swagger page
  • Call API to get Recurrence Run report, PDF format
  • Call API to get Recurrence Task Trends report, PDF format
  • Make sure files downloadable and display properly

Side note

  • Suggested number of team members: 4 or more

Proof of Work

Edited by Dat Nguyen

Merge request reports