Implement public cohort
This PR is based on #19284 and is part of the series of work related to the proposal #18134. This PR avoids the assignment of anonymous/unenrolled users to any cohort when course is public. Anonymous or unenrolled users will only see content that does not have a content group assigned. The "View Course" link to the course outline is shown on the course about page for a course marked public/public outline. It also makes course handouts available for public courses (not for public_outline). This PR also hides the different warnings and messages asking the user to sign-in and enroll in the course, when the course is marked public. It modifies the default public_view text to include the component display_name when unenrolled access is not available.
Showing
- common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py 35 additions, 3 deletionscommon/lib/xmodule/xmodule/tests/test_xblock_wrappers.py
- common/lib/xmodule/xmodule/x_module.py 16 additions, 2 deletionscommon/lib/xmodule/xmodule/x_module.py
- lms/djangoapps/course_blocks/transformers/library_content.py 1 addition, 1 deletionlms/djangoapps/course_blocks/transformers/library_content.py
- lms/djangoapps/course_blocks/utils.py 3 additions, 0 deletionslms/djangoapps/course_blocks/utils.py
- lms/djangoapps/courseware/courses.py 11 additions, 0 deletionslms/djangoapps/courseware/courses.py
- lms/djangoapps/courseware/models.py 12 additions, 0 deletionslms/djangoapps/courseware/models.py
- lms/djangoapps/courseware/tests/test_about.py 32 additions, 1 deletionlms/djangoapps/courseware/tests/test_about.py
- lms/djangoapps/courseware/tests/test_views.py 4 additions, 0 deletionslms/djangoapps/courseware/tests/test_views.py
- lms/djangoapps/courseware/views/index.py 17 additions, 13 deletionslms/djangoapps/courseware/views/index.py
- lms/djangoapps/courseware/views/views.py 18 additions, 7 deletionslms/djangoapps/courseware/views/views.py
- lms/templates/courseware/course_about.html 6 additions, 0 deletionslms/templates/courseware/course_about.html
- openedx/core/djangoapps/course_groups/tests/test_cohorts.py 4 additions, 0 deletionsopenedx/core/djangoapps/course_groups/tests/test_cohorts.py
- openedx/features/course_experience/tests/views/test_course_home.py 7 additions, 6 deletions...eatures/course_experience/tests/views/test_course_home.py
- openedx/features/course_experience/views/course_home.py 2 additions, 0 deletionsopenedx/features/course_experience/views/course_home.py
- openedx/features/course_experience/views/course_home_messages.py 2 additions, 2 deletions.../features/course_experience/views/course_home_messages.py
Loading
Please register or sign in to comment