Merge pull request #14123 from edx/aj/filter-unpublish-courses-from-discovery
Fix accidentally exposed Supply Chain course run
This commit is contained in:
@@ -51,6 +51,7 @@ class TestGetPrograms(mixins.CatalogIntegrationMixin, TestCase):
|
||||
querystring = {
|
||||
'marketable': 1,
|
||||
'exclude_utm': 1,
|
||||
'published_course_runs_only': 1,
|
||||
}
|
||||
if type:
|
||||
querystring['type'] = type
|
||||
|
||||
@@ -43,6 +43,7 @@ def get_programs(user, uuid=None, type=None): # pylint: disable=redefined-built
|
||||
querystring = {
|
||||
'marketable': 1,
|
||||
'exclude_utm': 1,
|
||||
'published_course_runs_only': 1,
|
||||
}
|
||||
if type:
|
||||
querystring['type'] = type
|
||||
|
||||
@@ -145,9 +145,6 @@ def attach_program_detail_url(programs):
|
||||
Returns:
|
||||
list, containing extended program dicts
|
||||
"""
|
||||
programs_config = ProgramsApiConfig.current()
|
||||
marketing_url = get_program_marketing_url(programs_config)
|
||||
|
||||
for program in programs:
|
||||
base = reverse('program_details_view', kwargs={'program_id': program['id']}).rstrip('/')
|
||||
slug = slugify(program['name'])
|
||||
|
||||
Reference in New Issue
Block a user