From 21cd5c8014870d8ca5ce4f3c0299b2d63c4afac3 Mon Sep 17 00:00:00 2001 From: Renzo Lucioni Date: Wed, 25 Jan 2017 11:34:12 -0500 Subject: [PATCH] Ignore run publication status when requesting programs from the catalog The programs service has no concept of run publication status. The catalog does, and many runs returned by the programs service are marked as unpublished in the catalog. To maintain existing behavior and continue displaying these runs as part of their respective programs, we need to ignore their publication status. ECOM-6925 --- openedx/core/djangoapps/catalog/tests/test_utils.py | 1 - openedx/core/djangoapps/catalog/utils.py | 1 - 2 files changed, 2 deletions(-) diff --git a/openedx/core/djangoapps/catalog/tests/test_utils.py b/openedx/core/djangoapps/catalog/tests/test_utils.py index e93d6a956f..b74aca9847 100644 --- a/openedx/core/djangoapps/catalog/tests/test_utils.py +++ b/openedx/core/djangoapps/catalog/tests/test_utils.py @@ -50,7 +50,6 @@ class TestGetPrograms(mixins.CatalogIntegrationMixin, TestCase): querystring = { 'marketable': 1, 'exclude_utm': 1, - 'published_course_runs_only': 1, } if type: querystring['type'] = type diff --git a/openedx/core/djangoapps/catalog/utils.py b/openedx/core/djangoapps/catalog/utils.py index 02684964ba..528f1ed268 100644 --- a/openedx/core/djangoapps/catalog/utils.py +++ b/openedx/core/djangoapps/catalog/utils.py @@ -58,7 +58,6 @@ def get_programs(user=None, uuid=None, type=None): # pylint: disable=redefined- querystring = { 'marketable': 1, 'exclude_utm': 1, - 'published_course_runs_only': 1, } if type: querystring['type'] = type