Commit cbd3a7c2 by noraiz-anwar

test if find_one is called while course listing

parent a7c4ddfe
......@@ -469,6 +469,7 @@ def _accessible_courses_list_from_groups(request):
if course_keys:
courses_list = modulestore().get_course_summaries(course_keys=course_keys)
log.info('Number of course summaries fetched: [%d]', len(courses_list))
return courses_list, []
......
......@@ -512,6 +512,8 @@ class SplitBulkWriteMixin(BulkOperationsMixin):
org_target,
course_keys=course_keys)
log.info('Number of matching indexes found: [%d]', len(indexes))
indexes = self._add_indexes_from_active_records(
indexes,
branch,
......@@ -544,6 +546,7 @@ class SplitBulkWriteMixin(BulkOperationsMixin):
return
course_indexes.append(altered_index)
log.info('Total number of active_records: [%d]', len(self._active_records))
for _, record in self._active_records:
if branch and branch not in record.index.get('versions', {}):
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment