Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
2b1598f8
Commit
2b1598f8
authored
Dec 13, 2016
by
Awais Jibran
Committed by
GitHub
Dec 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14123 from edx/aj/filter-unpublish-courses-from-discovery
Fix accidentally exposed Supply Chain course run
parents
3c3b4f44
8cb27a08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
openedx/core/djangoapps/catalog/tests/test_utils.py
+1
-0
openedx/core/djangoapps/catalog/utils.py
+1
-0
openedx/core/djangoapps/programs/utils.py
+0
-3
No files found.
openedx/core/djangoapps/catalog/tests/test_utils.py
View file @
2b1598f8
...
...
@@ -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
...
...
openedx/core/djangoapps/catalog/utils.py
View file @
2b1598f8
...
...
@@ -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
...
...
openedx/core/djangoapps/programs/utils.py
View file @
2b1598f8
...
...
@@ -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'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment