Academic: section-aware allotment, calendar time windows, PG/PhD gating, seat fix - #1945
Merged
vikrantwiz02 merged 1 commit intoAug 7, 2026
Merged
Conversation
…ng, seat fix - allot_courses: bind course_instructor via resolve_offering - apply_batch_changes: derive section from target batch (load-balanced), 400 on empty batch - Calendar: add from_time/to_time; registration windows honor time (AM/PM), whole-day when unset - PG/PhD registration calendar gate (separate PG/PhD windows) on course/thesis/seminar/teaching enrollment - seat availability now counts backlog registrations (removed BL exclusion) in replacement form + allocator - add_course: own_section_running via resolve_offering (no false 'not running in your section')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and new features to the academic calendar and course registration system, primarily adding support for time-bound events in the academic calendar, improving the handling of batch and section assignments, and refactoring registration window checks for maintainability and flexibility. The changes also update course allocation logic and add new eligibility checks for PG/PhD enrollments.
Academic Calendar: Time-bound Events
from_timeandto_timefields to theCalendarmodel, updated related API endpoints (list_calendar,add_calendar,update_calendar), and included a migration to support events with specific start and end times. [1] [2] [3] [4] [5]Registration Window Eligibility Refactor
_check_registration_windowand related helpers, and added support for PG/PhD registration windows.Course Allocation and Section Assignment
PG/PhD Registration Enforcement
Other Improvements