Commit 21cd5c80 by Renzo Lucioni

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
parent e887770b
...@@ -50,7 +50,6 @@ class TestGetPrograms(mixins.CatalogIntegrationMixin, TestCase): ...@@ -50,7 +50,6 @@ class TestGetPrograms(mixins.CatalogIntegrationMixin, TestCase):
querystring = { querystring = {
'marketable': 1, 'marketable': 1,
'exclude_utm': 1, 'exclude_utm': 1,
'published_course_runs_only': 1,
} }
if type: if type:
querystring['type'] = type querystring['type'] = type
......
...@@ -58,7 +58,6 @@ def get_programs(user=None, uuid=None, type=None): # pylint: disable=redefined- ...@@ -58,7 +58,6 @@ def get_programs(user=None, uuid=None, type=None): # pylint: disable=redefined-
querystring = { querystring = {
'marketable': 1, 'marketable': 1,
'exclude_utm': 1, 'exclude_utm': 1,
'published_course_runs_only': 1,
} }
if type: if type:
querystring['type'] = type querystring['type'] = type
......
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