Merge pull request #14972 from edx/christina/ed11
Renaming prep for allow discussions to be divided by enrollment tracks
This commit is contained in:
@@ -1255,7 +1255,7 @@ class CourseCohortDiscussionTopicsTestCase(CohortViewsTestCase):
|
||||
'entries': {
|
||||
'Topic B': {
|
||||
'sort_key': 'A',
|
||||
'is_cohorted': True,
|
||||
'is_divided': True,
|
||||
'id': topic_name_to_id(self.course, "Topic B"),
|
||||
'start_date': response['course_wide_discussions']['entries']['Topic B']['start_date']
|
||||
}
|
||||
@@ -1269,7 +1269,7 @@ class CourseCohortDiscussionTopicsTestCase(CohortViewsTestCase):
|
||||
'entries': {
|
||||
'Discussion': {
|
||||
'sort_key': None,
|
||||
'is_cohorted': True,
|
||||
'is_divided': True,
|
||||
'id': topic_name_to_id(self.course, "Topic A"),
|
||||
'start_date': start_date
|
||||
}
|
||||
|
||||
@@ -435,7 +435,7 @@ def cohort_discussion_topics(request, course_key_string):
|
||||
>>> "entries": {
|
||||
>>> "General": {
|
||||
>>> "sort_key": "General",
|
||||
>>> "is_cohorted": True,
|
||||
>>> "is_divided": True,
|
||||
>>> "id": "i4x-edx-eiorguegnru-course-foobarbaz"
|
||||
>>> }
|
||||
>>> }
|
||||
@@ -452,12 +452,12 @@ def cohort_discussion_topics(request, course_key_string):
|
||||
>>> "entries": {
|
||||
>>> "Working with Videos": {
|
||||
>>> "sort_key": None,
|
||||
>>> "is_cohorted": False,
|
||||
>>> "is_divided": False,
|
||||
>>> "id": "d9f970a42067413cbb633f81cfb12604"
|
||||
>>> },
|
||||
>>> "Videos on edX": {
|
||||
>>> "sort_key": None,
|
||||
>>> "is_cohorted": False,
|
||||
>>> "is_divided": False,
|
||||
>>> "id": "98d8feb5971041a085512ae22b398613"
|
||||
>>> }
|
||||
>>> }
|
||||
@@ -472,7 +472,7 @@ def cohort_discussion_topics(request, course_key_string):
|
||||
|
||||
discussion_topics = {}
|
||||
discussion_category_map = get_discussion_category_map(
|
||||
course, request.user, cohorted_if_in_list=True, exclude_unstarted=False
|
||||
course, request.user, divided_only_if_explicit=True, exclude_unstarted=False
|
||||
)
|
||||
|
||||
# We extract the data for the course wide discussions from the category map.
|
||||
|
||||
Reference in New Issue
Block a user