Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temp: hide restricted runs before we're ready to show them #1339

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
}));

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 @@
// 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