Reinstate "Remove CourseOverview.get_from_id[s]_if_exists (#22918)"

This reverts commit cdb0619846,
which itself reverted 3ca006214e.

The original commit (3ca006) was reverted because it was suspected
that it was causing unexpectedly-increased memcached usage and
500s in the Gradebook API. It is not clear whether that is actually
the case. We are optimistically reinstating 3ca006 and will monitor
production to see if there is an adverse effect.

MST-105
This commit is contained in:
Kyle McCormick
2020-01-27 09:34:18 -05:00
committed by Kyle McCormick
parent e9c75e06ec
commit 28c0433352
7 changed files with 130 additions and 72 deletions

View File

@@ -900,7 +900,7 @@ class ProgramCourseEnrollmentOverviewView(
is_active=True,
)
overviews = CourseOverview.get_from_ids_if_exists(course_run_keys)
overviews = CourseOverview.get_from_ids(course_run_keys)
course_run_resume_urls = get_resume_urls_for_enrollments(user, course_enrollments)