Skip to content

Conversation

@akshith312
Copy link

@akshith312 akshith312 commented Dec 13, 2025

Description

image

Related PRS (if any):

This backend PR is not related to any other PR.

Main changes explained:

  • Created new report endpoints

    • GET /educator/reports/student/:studentId
      • Returns a detailed student report including personal info, completion status, average scores, and progress timeline
    • GET /educator/reports/student/:studentId/export
      • Returns exportable, PDF-ready / JSON-structured report data
      • Default export type is the JSON format.
  • Added aggregation logic

    • Computes:
      • Lesson and assessment completion status
      • Average performance scores
      • Progress metrics over time
  • Support for optional date-range filtering

    • Allows filtering progress metrics by start/end dates (if provided in query params)

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Log in as any user
  4. Call the endpoint using Postman:
    • GET /educator/reports/student/:studentId
    • Optional Query params:
    • ?startDate=YYYY-MM-DD&endDate=YYYY-MM-DD
      Verify:
    • Student personal information is returned correctly
    • Completion percentages and average scores are computed accurately
    • Progress timeline data matches expected activity logs
  5. Call the endpoint using Postman:
    • GET /educator/reports/student/:studentId/export
    • Optional Query Params:
    • ?format=pdf
    • Confirm response structure is suitable for JSON/PDF export

-- Sample UserID with good records: 693c8b5b75dd35082a3e5fc2

Screenshots or videos of changes:

Screen.Recording.2025-12-18.225730.mp4

Note:

The role based access is commented out for now, since the PM and student roles aren't present as user types.

@akshith312 akshith312 marked this pull request as ready for review December 13, 2025 21:57
@akshith312 akshith312 added the Do Not Review Do not review or look at code without full context label Dec 13, 2025
@akshith312 akshith312 changed the title feat: generate individual student report Akshith Individual Student Report Generation – Backend Dec 19, 2025
@akshith312 akshith312 removed the Do Not Review Do not review or look at code without full context label Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants