# Faculty split ## When to split a faculty In the [faculty directory](/en/docs/faculties) (`/faculty`), open the source faculty's row menu and choose Split. This restructuring wizard creates two or more faculties, distributes professions, employee positions and departments, moves applicable dependencies and closes the original while preserving its historical record. The action requires splitting permission. It is different from adding a faculty, editing its name, merging faculties or splitting a profession. Merge and the separate Rename operation are currently disabled; faculty split remains enabled. ## Step 1. New faculties The wizard loads the source's composition and starts with two new unit cards. Add more if needed, but retain at least two. Provide a translated name and abbreviation for each. Names must be distinct. Enable the dates checkbox to specify separate validity start and end. Otherwise each faculty inherits the source's dates, not automatically the restructuring date. Verify these against the planned structure. The first new faculty is the **primary** unit. The UI does not separately reorder that priority: the first receives dependencies with no unambiguous assignment. ## Step 2. Professions Each row shows a profession and classifier. Select one destination faculty per row, or use the bulk selector to assign every row to one faculty and then adjust exceptions. The counter shows assigned and total rows; every row must be assigned to continue. Review roots and child programs to avoid accidentally separating a logically linked educational hierarchy. This restructures faculties, not professions. Existing profession IDs remain, with updated faculty relationships. ## Step 3. Employees Choose a destination for each employment assignment (employee, position, rate). An employee can have multiple position records, assigned individually rather than through one employee-level checkbox. Empty sections require no assignment. Use the actual staffing plan and verify the result in [Employee details](/en/docs/employee-details). ## Step 4. Effective date Select Immediate to apply today, or Scheduled and a future calendar date. A scheduled date must be strictly later than today. Scheduling alone does not move educational records. Apply to previous years is disabled by default. It does not mean rewriting all history: - Records from the cutoff academic year onward may move. - When enabled, earlier records still in effect at the cutoff can also move; curriculum duration is considered. - Records already ended before the applicable date or year remain historical. Employment and department lifecycle dates are evaluated using their actual validity. - Relationships with no temporal criterion can move regardless of the date. The cutoff academic year is resolved from configured individual academic periods, falling back to a configured boundary month if none covers the date (September by default). Changing the date or checkbox refreshes the dependency breakdown: how many move, stay or always move. Check these figures before continuing. ## Step 5. Departments and student summary Assign each offered department to a destination. The department list depends on its validity and the effective date; recheck it when changing the date. The final step shows the total student count and an estimated distribution by new faculty. Students are not manually assigned in this wizard: preview counts use the student's department, or profession if there is no department. This is an aggregate of related records, not an individual transfer list or guaranteed operational enrollment count for the chosen date. For example, split the former IT faculty into Information Systems and Engineering Technologies. Assign the corresponding professions, departments and employment positions to each. Verify that a program and its associated department are not distributed inconsistently. Leave historical years unchanged when reorganization affects only new enrollments. ## What execution does The server validates complete assignments and new units, then applies changes transactionally. Professions, departments and employment records follow their assignments; many related records such as curricula, schedules and bulletins move according to profession and temporal rules. Degree and learning-format relationships are copied to the new faculties and supplemented from professions where necessary. Certain faculty-level relationships without explicit destinations move to the primary unit. Afterwards inspect [curricula](/en/docs/learning-plans), [students](/en/docs/students), employees, schedules, academic periods and role scopes. The original faculty is not sent to the recycle bin. It is marked split and ended immediately before the effective date, preserving references from historical records. Historical bulletin names are frozen. Execution failure should not leave a partially created structure. ## Scheduled operations and undo A scheduled operation has an indicator in the faculty table. Open it to inspect date and status. Before execution, change the date or previous-years checkbox, or cancel. Check whether new professions, employees or departments have appeared: execution validates the current full assignment set again. Changing the date does not assign new rows automatically. The generic conflict panel in the status dialog is not a reliable faculty-split check in this version because it calls the disabled merge preview. After completion, the operation may be reverted while the change journal survives. The server-configured revert window is seven days by default. If moved records have since been moved again, the server rejects undo. This is not an indefinite undo or recycle-bin restoration. If the status is failed, inspect the cause and resulting structure before attempting another split. ## Permissions Splitting uses its own `faculty-split` module: `faculty-splits.preview/store/history/scheduled` and `faculty-splits.scheduled.update/cancel/revert`. The UI checks the split-action permission group. Execution checks the source faculty scope; the main faculty table is scoped by `faculty`. There is no configurable approval-route workflow for this operation: it applies immediately or runs on the future date through the scheduler. Grant these actions to operators responsible for restructuring and review [role scopes](/en/docs/role-permissions) afterwards. ## Implementation references - [index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/Faculty/container/index.tsx) - [SplitFacultyModal.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/Faculty/split/SplitFacultyModal.tsx) - [SplitModal.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/split/SplitModal.tsx) - [useSplitWizard.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/split/useSplitWizard.ts) - [UnitsStep.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/split/steps/UnitsStep.tsx) - [AssignmentStep.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/split/steps/AssignmentStep.tsx) - [useEffectiveDate.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/restructuring/useEffectiveDate.ts) - [EffectiveDateStep.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/restructuring/EffectiveDateStep.tsx) - [RestructuringStatusModal.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/restructuring/RestructuringStatusModal.tsx) - [restructuringActions.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/restructuringActions.ts) - [api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Split/routes/api.php) - [api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Merge/routes/api.php) - [FacultySplitStrategy.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Split/Strategies/FacultySplitStrategy.php) - [ExecuteFacultySplitRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Split/Http/Requests/ExecuteFacultySplitRequest.php) - [SplitAssignmentValidator.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Split/Services/SplitAssignmentValidator.php) - [SplitExecutionService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Split/Services/SplitExecutionService.php) - [SplitRuleSet.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Split/Services/SplitRuleSet.php) - [SplitPreviewService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Split/Services/SplitPreviewService.php) - [AbstractSplitController.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Split/Http/Controllers/AbstractSplitController.php) - [AcademicYearResolver.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/StructuralUnit/Services/AcademicYearResolver.php) - [TemporalRowFilter.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/StructuralUnit/Services/TemporalRowFilter.php) - [RestructuringReverter.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/StructuralUnit/Services/RestructuringReverter.php) - [restructuring.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/config/restructuring.php)