# Lessons Success Rates ## Purpose and interface status The server module **Assessment & Grading → Lessons Success Rates** (`lessons-success-rates`) reports whether past lessons are confirmed in the gradebook. Confirmed/unconfirmed is an administrative lesson state, not a measure of student learning or examination results. The current admin frontend has no separate route, page or menu item for this module. The server implements only read operations for the list, summary and some filter choices. Do not promise operators a Lessons Success Rates button in the live admin UI. For individual lessons use the [gradebook](/en/docs/grade-book), [gradebooks by lecturer](/en/docs/gradebooks-by-lecturer) or [faculty gradebook](/en/docs/faculty-gradebook) according to permission. Ask the responsible administrator for the aggregate report. ## Included lessons The report includes existing journal records that meet these conditions: - Lesson date is strictly before today in the system. Past lessons qualify; today and future dates do not. - The record connects to an existing schedule and teacher workload. It uses the lesson's explicit workload when present or the scheduled row's workload otherwise. Deleted educator workloads are excluded. - Deleted journal records are not counted. - Confirmation is the presence of the journal record's confirmation timestamp (`confirmed_at`). Topic text, student attendance and marks do not substitute for confirmation. This is a report on existing journal records, not theoretical hours planned in a curriculum. If a lesson has not been created in a journal it does not add to the denominator. When data relationships are incomplete, the unconfirmed list and summary can differ: the aggregate also requires linked workload subjects and schedules. ## Supported filters When requesting the report from the responsible administrator, specify relevant criteria. Filters combine rather than selecting alternative populations. | Filter | Example | Rule | |---|---|---| | Date from/to | 2026-10-01 – 2026-10-31 | Inclusive bounds, YYYY-MM-DD; end not before start | | Academic year | 2026/2027 | Existing schedule academic year | | Faculty / profession | Computer Science / Software Engineering | Existing values on schedule; not substitutes for permissions | | Course | 2 | Integer at least 1 | | Educator | Anna Harutyunyan | Existing employee in workload | | Subject | Databases | Existing workload subject | | Educational unit | Group | Existing educational unit type | | Virtual group | Elective group A | Existing virtual group | All filters are optional. Educational units, virtual groups and subject options derive from linked historical records, not the entire catalogue. Options are not recalculated for each supplied summary filter. If a choice is absent, check the related journal records, workload and access. The list defaults to 25 records per page, allows up to 100 and a page number of at least 1. ## List and summary The list contains **unconfirmed past lessons only**, sorted by newest date and ID. Rows include date, topic, academic hour, employee, educational unit and value, virtual group and value, subject, course, term, academic year, faculty and profession where their source relationships exist. The summary covers all matching lessons, not just the current list page. Groups are combinations of employee + educational unit and value + virtual group and value + subject + academic year + course + term. Faculty and profession filter the input but are not extra grouping keys. An educator can appear in multiple groups. | Metric | Calculation | |---|---| | total | Number of matching records | | confirmed | Number of records with confirmation | | failed | total − confirmed | | success_rate | confirmed × 100 / total, rounded to one decimal; returns 0.0 when total=0 | The overall rate divides the sum of confirmed by the sum of all lessons, not the average of group percentages. When total=0, 0.0 means no qualifying records, not a 0% confirmation result for existing lessons. ### Example calculation An educator has 12 past database lessons in October, of which nine are confirmed. The unconfirmed list has three records and the rate is 9/12 × 100 = 75.0%. Another subject has eight records, seven confirmed: 87.5%. The overall rate is 16 confirmed out of 20 = 80.0%, not 81.25% (the mean of the two percentages). Today's and future lessons are excluded. ## Permissions, scopes and next steps The module provides read permission `lessons-success-rates.index`; filter options `lessons-success-rates.options` bind to it. Faculty and Profession scopes are supported, based on the schedule's faculty and profession. There is no declared Department or Employee scope here. The educator filter is an analytic criterion, not permission. A one-time migration initially copied permissions from grade-book.index; subsequent grants are controlled by the administrator in [role permissions](/en/docs/role-permissions). Verify actual current assignments. The module does not edit journals, bulk-confirm lessons or provide a separate admin UI export. Investigate an unconfirmed lesson in the [gradebook](/en/docs/grade-book) and its [journal policy](/en/docs/gradebook-policy). The educator or authorized operator confirms a valid lesson through the supported workflow; do not confirm entries merely to improve a percentage. Following legitimate confirmation, the row no longer counts as failed and increases confirmed in the next report. ## Troubleshooting and normal report request For example, request: “Lesson confirmation for October 2026, academic year 2026/2027, faculty X, profession Y, course 2; overall summary and an unconfirmed lesson list.” The responsible administrator should use an existing authorized reporting method and provide only data within approved scopes. If results are empty, check dates (today is excluded), past journal records, links to the [schedule](/en/docs/lesson-schedules) and [educator workload](/en/docs/workload-details), criteria and assigned scopes. If figures differ from student count or average grades, this is expected: the metric measures lesson confirmation. For student performance use the [grade report](/en/docs/grade-report). ## Implementation references - [routerPaths.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/router/routerPaths.ts) - [index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/layout/data/index.tsx) - [ModulesSeeder.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/database/seeders/ModulesSeeder.php) - [AssessmentGrading.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Modules/Enums/AssessmentGrading.php) - [api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LessonsSuccessRates/routes/api.php) - [LessonsSuccessRatesRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LessonsSuccessRates/Http/Requests/LessonsSuccessRatesRequest.php) - [LessonsSuccessRatesController.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LessonsSuccessRates/Http/Controllers/LessonsSuccessRatesController.php) - [FailedLessonResource.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LessonsSuccessRates/Http/Resources/FailedLessonResource.php) - [LessonsSuccessRatesService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LessonsSuccessRates/Services/LessonsSuccessRatesService.php) - [JournalDay.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LessonSchedule/Models/JournalDay.php) - [GradeBookRepository.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GradeBook/Repositories/GradeBookRepository.php) - [2026_09_22_000001_grant_lessons_success_rates_permissions.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LessonsSuccessRates/database/migrations/2026_09_22_000001_grant_lessons_success_rates_permissions.php)