Skip to content

Commit

Permalink
Special Registration: Purdue Customization (CLOS)
Browse files Browse the repository at this point in the history
- when purdue.specreg.allowClosedDuringExtended=true, allow for normal CLOS overrideis during extended period
  - that is when a section is full, but the course allows for CLOS overrides
  - defaults to false (existing behaviour)
  • Loading branch information
tomas-muller committed Dec 12, 2024
1 parent 35fdff3 commit 5552884
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ protected boolean isAllowClosedErrorForAvailableSections() {
return "true".equalsIgnoreCase(ApplicationProperties.getProperty("purdue.specreg.allowClosedWhenAvailable", "false"));
}

protected boolean isAllowClosedOverridesDuringExtendedPeriod() {
return "true".equalsIgnoreCase(ApplicationProperties.getProperty("purdue.specreg.allowClosedDuringExtended", "false"));
}

protected String getBannerTerm(AcademicSessionInfo session) {
return iExternalTermProvider.getExternalTerm(session);
}
Expand Down Expand Up @@ -811,6 +815,8 @@ public SpecialRegistrationEligibilityResponse checkEligibility(OnlineSectioningS
if (course == null) continue;
// special handing of CLOS errors
if (ext.contains(error.getSection())) {
// allow normal CLOS overrides during extended (no space checking for courses allowing for CLOS)
if (isAllowClosedOverridesDuringExtendedPeriod() && course.isOverrideEnabled(error.getCode())) continue;
// is extended add: check availability
XEnrollments enrollments = server.getEnrollments(course.getOfferingId());
boolean available = true;
Expand Down

0 comments on commit 5552884

Please sign in to comment.