From b82e8c8c84d67e35a53eeee72ceb91bb8bfd8300 Mon Sep 17 00:00:00 2001 From: Bryan Wilson Date: Thu, 13 Jul 2023 14:59:59 -0700 Subject: [PATCH 1/2] filter prereq course list by org for Global Staff users Fix ENG-183: Studio schedule and details page times out --- cms/djangoapps/contentstore/views/course.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/course.py b/cms/djangoapps/contentstore/views/course.py index 5a8f75c7662..bd194177c10 100644 --- a/cms/djangoapps/contentstore/views/course.py +++ b/cms/djangoapps/contentstore/views/course.py @@ -1114,7 +1114,7 @@ def settings_handler(request, course_key_string): 'upgrade_deadline': upgrade_deadline, } if is_prerequisite_courses_enabled(): - courses, in_process_course_actions = get_courses_accessible_to_user(request) + courses, in_process_course_actions = get_courses_accessible_to_user(request, course_module.location.org) # exclude current course from the list of available courses courses = (course for course in courses if course.id != course_key) if courses: From 65c5355c9f858e4c8f62366522622d7b30121099 Mon Sep 17 00:00:00 2001 From: Bryan Wilson Date: Fri, 14 Jul 2023 10:47:03 -0700 Subject: [PATCH 2/2] Increase YouTube TEST_TIMEOUT to 2.5s (setTimeout length testing if YT API is ready) Another attempt to fix ENG-97 --- openedx/core/djangoapps/appsembler/settings/settings/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openedx/core/djangoapps/appsembler/settings/settings/common.py b/openedx/core/djangoapps/appsembler/settings/settings/common.py index b3b06fe7726..1eb9a34bad8 100644 --- a/openedx/core/djangoapps/appsembler/settings/settings/common.py +++ b/openedx/core/djangoapps/appsembler/settings/settings/common.py @@ -89,3 +89,6 @@ def plugin_settings(settings): # Off by default. See the `site_configuration.tahoe_organization_helpers.py` module. settings.FEATURES['TAHOE_SITE_CONFIG_CLIENT_ORGANIZATIONS_SUPPORT'] = False + + # Give a little more time for YT API to load in video_module (default was 1500 ms) + settings.YOUTUBE['TEST_TIMEOUT'] = 2500