Skip to content
Kamoorjdocs
Documentation

Educator unavailability configuration

Weekdays, academic hours, branches, buildings and schedule availability.

On this page

Open an individual configuration

Open an unavailable-days set and select Configure beside the educator. The route is /educators-unavailable-days/configure/:id/:employ_id: the first value identifies the set and the second identifies the educator's entry within the set, not their HR record ID.

The heading displays year, semester and department. Name and email are passed from the list; if they are missing after opening a direct link, return to the set and open the card from there. Saved restrictions are fetched separately.

Undesirable days and times

The form displays weekday cards based on the academic week setup for the selected year with the type academic (not practice). Academic hours come from academic hours for that year. There is no separate degree, learning-format, Counter/Announcer or specific date selection. Hour records are identified by directory IDs, so slots with identical labels may be different.

  • Select an entire weekday if the educator is unavailable all day: all displayed academic hours are automatically selected.
  • Uncheck available hours to restrict only particular slots.
  • Selecting at least one hour automatically marks the day.
  • Unchecking the day clears all its hours; unchecking the last hour clears the day.

A selected value means unavailable, not preferred teaching time. Leave available days and hours unselected.

Location restrictions

  1. Select the branches where the educator's unavailable buildings are located.
  2. In the resulting groups, select specific buildings for each branch.
  3. Optionally enter a comment (up to 250 characters in the form), such as “Research seminar on Tuesdays; cannot teach in building B.”
  4. Check the day/hour and building selections, save and wait for the data to reload.

A building restriction applies throughout the selected semester, independent of weekday. Selecting a branch alone does not restrict every building. Select each relevant building if the whole branch is unavailable. The comment is explanatory and is not used in conflict calculations.

Example

Semester 1 of 2026/27, Programming department, educator Anna Ivanova:

Object Selected unavailable values
Tuesday Periods 1 and 2
Friday All academic hours
Main branch Building B
Comment Research seminar on Tuesday; other duties on Friday

Tuesday during period 3 is available by time, but a lesson in building B still conflicts by location. A Friday lesson in another building conflicts by time. Semester 2 does not automatically inherit these records; create its set and configure it separately.

Save and modify

The server replaces the entire selection of individual days/hours and branch/building pairs in one transaction rather than appending to the existing restrictions. Reopen the card and confirm that precisely the intended values remain. The current Cancel button has no separate reset handler; to abandon unsaved changes, return to the list and reopen the configuration.

Current implementation limitation: the UI permits leaving groups unchecked, but server validation requires nonempty day and branch arrays, at least one hour for each specified day and at least one building for each specified branch. Saving time-only restrictions, location-only restrictions or an entirely cleared form can therefore fail validation. Do not add fictitious restrictions merely to pass validation. If no restrictions are needed at all, remove the educator's individual record from the set. If only one category must remain and saving fails, the application requires a correction to support that case.

Effect on lesson schedules and journals

In the schedule editor preview, the server searches educator restrictions by employee, academic year and semester of the lesson. Importantly, this check does not require the same department: restrictions for the employee from different sets in the same year and semester are combined.

Each proposed occurrence is checked against its actual weekday and academic-hour ID, and the selected classroom's branch/building pair is checked separately. Time restrictions cause an educator-unavailable conflict; location restrictions cause a branch/building-unavailable conflict. The generator does not automatically create these dates. Calendar moves also use the actual target weekday. Alternating timetable type does not override restrictions. Where no classroom is assigned there is no location pair to compare, but time is still checked.

The grade-book schedule-change workflow applies analogous checks to assess availability of a target date and location. Configuring unavailability does not automatically cancel or move saved lessons. Review the existing schedule and use the intended correction workflow. One-off institutional non-working dates are configured separately in the non-working days calendar.

Permissions and troubleshooting

Reading configuration is bound to unavailable-educators.index, saving to unavailable-educators.store, under educator-unavailable-days-manage. Access is scoped to the parent set's department (department), not the lesson faculty. The form also requires read access to academic weeks, hours, branches and buildings.

  • No weekdays or hours: check the set's year, ordinary academic week and academic-hour directory for that year.
  • Missing building: select the branch first, then check the building relationship and directory access.
  • Cannot save: check the requirements for both categories, hours and buildings.
  • Restrictions remain after editing: reopen the form, verify saved values and check the employee's other sets for the same year and semester.
  • Lessons already exist: do not expect automatic moves; verify actual dates in schedule review.

Implementation references

Updated Nov 27, 2026