Skip to content

Commit

Permalink
Merge pull request #1339 from openedx/pwnage101/ENT-9505
Browse files Browse the repository at this point in the history
temp: hide restricted runs before we're ready to show them
  • Loading branch information
pwnage101 authored Oct 18, 2024
2 parents 38f28c9 + 6abb49d commit e196e52
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/learner-credit-management/data/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ export const getAssignableCourseRuns = ({ courseRuns, subsidyExpirationDatetime,
}));

const assignableCourseRunsFilter = ({
enrollBy, enrollStart, start, hasEnrollBy, hasEnrollStart, isActive, isLateEnrollmentEligible,
enrollBy, enrollStart, start, hasEnrollBy, hasEnrollStart, isActive, isLateEnrollmentEligible, restrictionType,
}) => {
const isEnrollByDateValid = isEnrollByDateWithinThreshold({
hasEnrollBy,
Expand Down Expand Up @@ -727,6 +727,14 @@ export const getAssignableCourseRuns = ({ courseRuns, subsidyExpirationDatetime,
// to do is make sure the run itself is generally eligible for late enrollment
return isLateEnrollmentEligible;
}
// ENT-9359 (epic for Custom Presentations/Restricted Runs):
// Temporarily hide all restricted runs unconditionally on the run assignment
// dropdown during implementation of the overall feature. ENT-9411 is most likely
// the ticket to replace this code with something to actually show restricted
// runs conditionally.
if (restrictionType) {
return false;
}
// General courseware filter
return isActive;
};
Expand Down

0 comments on commit e196e52

Please sign in to comment.