# Course archive **Graduation → Course archive** preserves a snapshot of completed learning. The pages `/students/course-archive` and `/students/course-archive/:id` work with archiving requests, not individual student archive snapshots. The preceding operation is [course completion](/en/docs/course-completion). ## Request list Filters: academic year, educational degree, learning format, faculty, profession and year of study. Each row shows these educational parameters (the profession/educational programme cell includes the plan if the request has one), approval status and the view action. Reset clears the conditions. Open a request from its row; its ID is not an archive snapshot ID. ## Create an archiving request 1. Click Create. On the left select academic year, educational degree, learning format, faculty, profession and year of study. All six are required. Changing the degree/format updates faculty options; the profession is selected within the faculty context. 2. Search. The right panel lists names, professions, study years and accumulated ECTS when available. All pages of matches are fetched and all entries are initially selected. Uncheck individual entries or use the common selection checkbox. 3. Fill in the order details: | Field | Example and restriction | | --- | --- | | Basis | “Archive graduates who completed the programme”; required, up to 2,000 characters | | Order number | A-42; required in the form, up to 255 characters | | Order date | 2026-06-30; required in the form | | Order document | Optional, one PDF/DOC/DOCX in the form; server also accepts JPG/JPEG/PNG, up to 10 MiB per file | | Comment | Optional, up to 5,000 characters | 4. Review the selected membership and confirm. The form requires a nonempty selection. The server also accepts an optional learning plan, but this dialog has no separate plan selector. The list reloads after saving. ## Selecting completed academic courses Eligible academic-course records are not yet archived and possess the system course-completion educational status. Unlike course completion, the selections use academic-course record IDs, not just student IDs. Degree, format, profession and faculty (through the profession) apply to these enrolment records. For academic year and study year, archive search checks stored educational-status records matching `academic_year_id` and `study_year_id`, rather than the current-cohort equation used in course completion. A graduating cohort appearing differently in the two searches may therefore need a check of its stored status context. The backend additionally calculates completeness: - educational status, plan and completion record exist; - student has bulletins and at least one computed grade; - accumulated credits are positive. Missing data is reported diagnostically, not used to block selection. The current selection UI displays credits, not the entire completeness checklist. Before archiving, verify the [student detail](/en/docs/student-details), [grade report](/en/docs/grade-report) and [previous-year grades](/en/docs/previous-year-grades). ## When an archive is created - With a configured approval flow, it starts on creation. Archiving runs automatically when approval reaches its approved state. - With no configured flow, the archive effect is applied immediately after request creation. - There is no separate execution button. Already archived courses are not archived again. - When approval leaves its approved state, the lifecycle handler reverts its effect: it deletes that request's archive snapshots and clears the archived flag and date of the corresponding enrolments. This is not an undo of course completion. Rollback is an approval operation, not ordinary record deletion. See [approval flows](/en/docs/approval-flows). Review membership and order information before confirming, especially if no approval flow is configured. ## Data captured The archive is a snapshot taken at execution time. It stores the request and student IDs, educational context, archiving user and timestamp, credits and GPA. Its JSON snapshot includes: - student and academic-course information, educational degree, format, profession and department references; - learning-plan ID and duration; latest educational status with year/study year/term, and groups attached to that status; - the student's root bulletins: subject, code, credit, study year, term, final grade and performance level; official grade resolution accounts for retakes and approved appeals; - total credits (calculated by the course-completion mechanism), GPA, completion-request information and capture time. GPA is a credit-weighted mean: sum (grade × credit) / sum of credits for rows with a numeric grade and positive credit, excluding facultative subjects. Round to two decimal places; no qualifying rows means no GPA. For example, grade 18 for 4 credits and grade 14 for 6 credits give (18 × 4 + 14 × 6) / 10 = **15.6**. Manual previous-year grades contribute to total credits but are not added as separate GPA snapshot rows. Bulletins are selected by student, not exclusively by the request year. The archive is not recalculated on ordinary viewing and is not a backup of the entire student account. The academic course is flagged `archived` and timestamped; this operation does not delete the source grades. ## Request detail The page `/students/course-archive/:id` shows order information, basis, educational parameters, approval, comment, attachments and membership with student name and study year. Inline history controls are available when the request has an approval process. This is the **request** detail, not an itemized GPA or complete JSON snapshot viewer. The backend has separate archive list and detail reads, but these two pages are not an archive snapshot browser. Do not confuse them with the general student archive. ## Access Module `course-archive`. Read: `course-archive-requests.index` (also binds course selection, detail, history, archive list and detail). Create: `course-archive-requests.store` (also binds backend update and deletion under the approval lock). The request and archive models support `faculty` and `profession` scopes. The search form limits faculty and profession selections using scoped catalogues. Create checks `CourseArchiveCreateAction` including catalogue permissions; approval checks `CourseArchiveApproveAction` (the current frontend declares `archived-student-employment.approval` in this group, whereas the backend approval process is `course-archive`). If an action is absent, have the administrator check the actual role and flow configuration rather than granting broader access unnecessarily. See [role permissions](/en/docs/role-permissions). ## Example and troubleshooting For fourth-year bachelor's graduates, save the completion decision and verify its actual execution; then find their enrolments in course archive and prepare the archiving order. If the request exists but no archive was created, check approval. If a candidate is absent, verify the archived flag, system completion status and stored year/study year. If credits are low or GPA absent, reconcile bulletins and discipline credits; successful archiving does not guarantee completeness. ## Implementation references - [index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/StudentsManagement/CourseArchive/container/index.tsx) - [index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/StudentsManagement/CourseArchive/detail/index.tsx) - [index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/StudentsManagement/CourseArchive/components/CreateRequestModal/index.tsx) - [SearchConditions.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/StudentsManagement/CourseArchive/components/CreateRequestModal/SearchConditions.tsx) - [CoursesPanel.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/StudentsManagement/CourseArchive/components/CreateRequestModal/CoursesPanel.tsx) - [CourseArchiveService.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/StudentsManagement/CourseArchive/CourseArchiveService.ts) - [studentsRoutes.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/router/routes/studentsRoutes.ts) - [api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CourseArchive/routes/api.php) - [CourseArchiveRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CourseArchive/Models/CourseArchiveRequest.php) - [CourseArchive.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CourseArchive/Models/CourseArchive.php) - [StoreCourseArchiveRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CourseArchive/Http/Requests/StoreCourseArchiveRequest.php) - [CourseArchiveRequestService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CourseArchive/Services/CourseArchiveRequestService.php) - [CompletedCourseSelectionService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CourseArchive/Services/CompletedCourseSelectionService.php) - [ArchiveDataCompletenessService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CourseArchive/Services/ArchiveDataCompletenessService.php) - [CourseArchiveExecutionService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CourseArchive/Services/CourseArchiveExecutionService.php) - [CourseArchiveSnapshotService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CourseArchive/Services/CourseArchiveSnapshotService.php) - [ModulesSeeder.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/database/seeders/ModulesSeeder.php) - [AppServiceProvider.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Providers/AppServiceProvider.php)