Skip to content

feat: Report pages

Navin Karkera requested to merge navin/reports into master

This MR implements backend and frontend for reports based on checklist definition with filtering over team, start_date and end_date.

Related info:

Testing instruction:

Backend:

  • Setup data by creating some checklists, runs, multiple users and completed tasks.
  • Use manage.py update_display_names command to fill display_name field if missing.
  • Test json, csv and pdf reports from below APIs. Both the APIs support filtering using team_id, start_date and end_date query_params.
    • /api/workflow/checklist/definition/{id}/compare/
    • /api/workflow/checklist/definition/{id}/trends/

Frontend:

Visit Reports tab and test trends and compare reports.

Pending items

  • Tests for frontend reports
  • Overview report
  • styling for date range selector
  • Internationalization

Screencast:

screencast1

Overview report screencast

screencast1

Post merge request checklist

  • Deploy to staging/prod
  • Run django command update_display_names and create_compute_trends_report in staging/prod
Edited by Navin Karkera

Merge request reports