Naalya Handbook
School features

Student results

How a student or a verified guardian reads released term scores, and how that differs from the report card.

Prefix every path with /api/v1. The controller is student/results, bearer auth, Feature.GRADING. There is no @RequirePermissions. These handlers were not called.

This is assessment scores and the grade row, not the report card. A term is released here when campus_term.reports_release_at is set and not after now. An unreleased term comes back with isReleased: false and an empty subjects array. The report-card PDF and releasedAt on report_card are on Reports. The Hub results screen loads both.

Reading your own year

Prerequisites: user type student, and a student profile. GET /student/results (getMyStudentResults, 200) takes an optional campusAcademicYearId.

getMyResults loads the student by user id and then resultsFor. No campusId on the profile returns empty years, a null enrollment, and no terms. No enrollments on that campus do the same, with availableYears still empty. A requested year that is not one of those enrollments throws Requested academic year not found. With no year in the query, the campus’s current year is used when the student has an enrollment in it. Otherwise the first year in the list is used. Years are sorted by snapshot order, newest first.

The enrollment view is class name (or Class when the relation is missing), stream name, and ids. Subjects are the enrollment’s student_x_subject rows. For a released term, each subject includes the grade’s score, max, a percentage to two decimal places when max is above zero, the letter, remarks, and assessment lines sorted by definition position. A missing score is null. isCompulsory is true when the subject role is compulsory. An unreleased term does not include those rows.

A guardian reading a child

GET /student/results/children/:studentId (getChildStudentResults) requires user type guardian. The decorator’s 403 is Not a verified guardian of this student. The service throws You are not a verified guardian of this student when isVerifiedGuardianOf is false. After that check it uses the same resultsFor path, including the release gate.

The Hub page /student/results requires both Feature.REPORT_CARDS and Feature.GRADING. The API route requires only GRADING. A term the API marks unreleased is not the same check as “Report card not released yet” on that screen, which is an empty card list. Both can be true for the same term. No browser session was run.

Sources

Naalya-API a5dff0c208d5193c274d3d1f87787b55344d5d30: student-results.controller.ts, student-results.service.ts (getMyResults, getChildResults, resultsFor, buildTermViews). The Hub screen is on Portal routes. No route was called.

On this page