Skip to content

Commit

Permalink
temp: hide restricted runs before we're ready to show them
Browse files Browse the repository at this point in the history
ENT-9505
  • Loading branch information
pwnage101 committed Oct 18, 2024
1 parent 38f28c9 commit 6abb49d
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;

Check warning on line 736 in src/components/learner-credit-management/data/utils.js

View check run for this annotation

Codecov / codecov/patch

src/components/learner-credit-management/data/utils.js#L736

Added line #L736 was not covered by tests
}
// General courseware filter
return isActive;
};
Expand Down

0 comments on commit 6abb49d

Please sign in to comment.