# Committee compositions ## Committee detail Open a row from [committee formation](/en/docs/committee-formation) (`/committee-formation/:id`). The header shows educational criteria and the composition count. This is where people are assigned, not the defense date or students. A composition is a separately numbered object belonging to one committee. ## Create a composition Choose Add composition. The server assigns the highest existing composition number for this committee plus one, or 1 for the first. The new section expands. Each section can be collapsed; its header shows the number, participant count, chairman and secretary indicators and member count. Add only the compositions needed. Deleting one does not renumber the remaining ones. | Composition role | UI capacity | Graduation grade sheet | |---|---|---| | Chairman | One slot | Voting participant, gets a grade column | | Secretary | One slot | Nonvoting | | Members | Multiple | Each gets a grade column | The current operations allow empty or incomplete compositions: each assignment is saved separately. Creation does not check all three categories or implement quorum, legal appointment dates or an approval process. ## Assign participants 1. In the required composition, press Add for chairman, secretary or member. 2. Choose Internal for an employee or External for a person in the [external participants catalogue](/en/docs/committee-members). 3. Search requests the first 50 matching records with active status. Find the person by name and verify their position/workplace. Select one person on the appropriate tab for chairman or secretary; members support multi-selection and both categories. 4. The UI automatically takes an internal participant's `role_id` from the employee's first work record (`works[0]`); it is not the chairman/member assignment or a manually selected role. The server requires an employee ID and an existing role. Check that the [employee record](/en/docs/employee-details) has a work record with a role. For external participants, the external person's record ID is sufficient. 5. Confirm the addition. The card refreshes with the saved composition. An employee or external person already assigned to this composition is disabled for other roles in the same composition. This is a UI restriction, not a global uniqueness check across compositions. Server requests validate the type and existence of identifiers but do not automatically appoint people based on status. If you select across both tabs for a single-slot role, only the first selected participant is sent; make a selection on the intended tab only. ## Change or remove assignments - Saving a chairman or secretary on the server replaces the previous participant row for that role. - When adding members, the UI sends the entire current list plus new selections. The server deletes and recreates the member participant rows; their participation record IDs can change. - Remove a participant using the delete action and confirm. Deleting a composition removes its participants too. These operations do not use a restore list and have no restore button. Do not change compositions after defense or grading begins without checking the consequences: grades reference participation IDs, not only the person's catalogue record. Complete the composition before using it for defense. ## Defense and grading integration A defense list references the entire committee rather than a composition number. When saving defense questions, the server checks participant type and membership in the committee. The graduation grade sheet retrieves voting participants from **all compositions of the committee**: chairmen and members, excluding secretaries. The composition number does not narrow the grade sheet to one section. Assigning the same person in multiple compositions may produce multiple voting records. Example: composition 1 has a chairman, secretary and two members; there is no composition 2. The graduation grade sheet has three voting columns and excludes the secretary. Adding composition 2 with a chairman and two members would yield six voting records for the committee in total. ## Permissions and troubleshooting The detail route is guarded by `committees`. Composition and participant APIs belong to `committee-management`: reading participants binds to `committees.index`, creating/deleting compositions and assigning/removing participants to `committees.store`, even for an existing committee. The `CommitteesTablePull` read group also declares `employees.index` and `committee-members.index` dependencies for the selection dialog. These routes declare no specific faculty/department permission scopes. See [role permissions](/en/docs/role-permissions). If a card opens but a person is missing, check activity, names, work record (employee), read permissions and the search query. If assignment fails, check the first work record's role, whether the selected person exists, and the `committees.store` permission. After saving, verify all categories and the voting count before moving to defense. ## Implementation references - [index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Graduation/CommitteeFormation/CommitteeDetail/index.tsx) - [AddParticipantModal.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Graduation/CommitteeFormation/CommitteeDetail/components/AddParticipantModal.tsx) - [CommitteeCard.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Graduation/CommitteeFormation/CommitteeDetail/components/CommitteeCard.tsx) - [api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CommitteeFormation/routes/api.php) - [CommitteeCompositionController.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CommitteeFormation/Http/Controllers/CommitteeCompositionController.php) - [CommitteeParticipantController.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CommitteeFormation/Http/Controllers/CommitteeParticipantController.php) - [StoreSingleParticipantRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CommitteeFormation/Http/Requests/StoreSingleParticipantRequest.php) - [StoreMembersRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/CommitteeFormation/Http/Requests/StoreMembersRequest.php) - [DefenseListService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/DefenseLists/Services/DefenseListService.php) - [GraduationWorkService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GraduationWork/Services/GraduationWorkService.php)