Use get_or_create (or something similar) to handle course (bundles) without TCCs when getting them for timetable planning #64

Open
opened 2025-01-08 11:32:44 +01:00 by yuha · 5 comments
Member

this may, for example, occur when courses are created after creating (but not publishing!) a validity range. currently, users are not properly informed about why these newly added courses don't appear in the planning process

this may, for example, occur when courses are created after creating (but not publishing!) a validity range. currently, users are not properly informed about why these newly added courses don't appear in the planning process
Author
Member

assigned to @permcu

assigned to @permcu
permcu commented 2025-01-08 11:46:42 +01:00 (Migrated from edugit.org)

The current solution is incomplete. We decided that each course is bound by a tcc to a validityrange. Currently a tcc is implicityly created for each course in scope on validityrange-creation. If the course did not exist then, but is added later, no tcc will be created linking it to the validityrange.

Proposed solution:

Since tccs are only relevant during lesson-planning and part of lesrooster, course-creation has nothing to do with them. Instead we do a lesrooster only solution: When the course(-bundles) are queried for lesson-planning the query detects if there is no tcc and creates it if missing.

This is the right place to do this, because here validityrange and group are combined.

@hansegucker what do you think of it? Should I get working on it?

The current solution is incomplete. We decided that each course is bound by a tcc to a validityrange. Currently a tcc is implicityly created for each course in scope on validityrange-creation. If the course did not exist then, but is added later, no tcc will be created linking it to the validityrange. Proposed solution: Since tccs are only relevant during lesson-planning and part of lesrooster, course-creation has nothing to do with them. Instead we do a lesrooster only solution: When the course(-bundles) are queried for lesson-planning the query detects if there is no tcc and creates it if missing. This is the right place to do this, because here validityrange and group are combined. @hansegucker what do you think of it? Should I get working on it?
Owner

We should discuss this in the context of the TCC raster.

We should discuss this in the context of the TCC raster.
Author
Member

@hansegucker what do you mean with that?

@hansegucker what do you mean with that?
Owner

unassigned @permcu

unassigned @permcu
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Lesrooster#64
No description provided.