Removing time slot does not update availability constraints

Started by ogursoy, September 18, 2026, 02:22:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ogursoy

Hello,

When you have a not available constraint for a time slot and if you delete that time slot via Days Hours menu (eventhough it says 1 contraint will be removed) the marked slots just shifts to next time slot that is defined in days hours. ( i did not check whether FET was correct about the number of constraints on removing and also if it really removed it.)

I hope it is clear.

Best

ogursoy

1 and 3 shows before and after removal of 08:00 - 08:50 time slot.

Liviu Lalescu

Hello, ogursoy,

Thank you for the concern!

Your 1 and 3 screenshots refer to different constraints (see the selected activity tag). I just checked on my computer, and the behavior is my intended one: if you remove an hour, from any place, the constraints will remove in reality their last hour. It is a feature, not a bug. The reason is:

The constraints preferred times store the times as integers, such as: 0, 10, 11. If the new number of hours is decremented with 1, the integers remain the same, but the too large ones will be removed (11). The new constraint will have: 0, 10.

It was a behavior made in a rush by me, just to make things not break apart, and be decently taken care of, but not perfectly. The reason I cannot take care of more things like that (such as also validating the input, where in many times I just assert that the teacher is correct) is the lack of financial support for FET. I just ensure that the main behavior of generating a correct timetable is highly tested and cared of.