fix: remove a couple unused learning MFE serializer fields
Now that the frontend assumes there are no legacy courseware pages, we can stop sending them info about it.
This commit is contained in:
@@ -7431,7 +7431,6 @@ definitions:
|
|||||||
- original_user_is_staff
|
- original_user_is_staff
|
||||||
- tabs
|
- tabs
|
||||||
- title
|
- title
|
||||||
- can_load_courseware
|
|
||||||
- celebrations
|
- celebrations
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -7479,9 +7478,6 @@ definitions:
|
|||||||
title: Title
|
title: Title
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
minLength: 1
|
||||||
can_load_courseware:
|
|
||||||
title: Can load courseware
|
|
||||||
type: boolean
|
|
||||||
celebrations:
|
celebrations:
|
||||||
title: Celebrations
|
title: Celebrations
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ class CourseHomeMetadataSerializer(VerifiedModeSerializer):
|
|||||||
"""
|
"""
|
||||||
Serializer for the Course Home Course Metadata
|
Serializer for the Course Home Course Metadata
|
||||||
"""
|
"""
|
||||||
can_load_courseware = serializers.BooleanField()
|
|
||||||
celebrations = serializers.DictField()
|
celebrations = serializers.DictField()
|
||||||
course_access = serializers.DictField()
|
course_access = serializers.DictField()
|
||||||
course_id = serializers.CharField()
|
course_id = serializers.CharField()
|
||||||
|
|||||||
@@ -126,7 +126,6 @@ class CourseHomeMetadataView(RetrieveAPIView):
|
|||||||
'is_self_paced': getattr(course, 'self_paced', False),
|
'is_self_paced': getattr(course, 'self_paced', False),
|
||||||
'is_enrolled': user_is_enrolled,
|
'is_enrolled': user_is_enrolled,
|
||||||
'course_access': load_access.to_json(),
|
'course_access': load_access.to_json(),
|
||||||
'can_load_courseware': True, # can be removed once the MFE no longer references this field
|
|
||||||
'celebrations': celebrations,
|
'celebrations': celebrations,
|
||||||
'user_timezone': user_timezone,
|
'user_timezone': user_timezone,
|
||||||
'can_view_certificate': certificates_viewable_for_course(course),
|
'can_view_certificate': certificates_viewable_for_course(course),
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ class CourseBlockSerializer(serializers.Serializer):
|
|||||||
'icon': icon,
|
'icon': icon,
|
||||||
'id': block_key,
|
'id': block_key,
|
||||||
'lms_web_url': block['lms_web_url'] if enable_links else None,
|
'lms_web_url': block['lms_web_url'] if enable_links else None,
|
||||||
'legacy_web_url': block['legacy_web_url'] if enable_links else None,
|
|
||||||
'resume_block': block.get('resume_block', False),
|
'resume_block': block.get('resume_block', False),
|
||||||
'type': block_type,
|
'type': block_type,
|
||||||
'has_scheduled_content': block.get('has_scheduled_content'),
|
'has_scheduled_content': block.get('has_scheduled_content'),
|
||||||
|
|||||||
@@ -440,7 +440,6 @@ class CoursewareInformation(RetrieveAPIView):
|
|||||||
* `"empty"`: no start date is specified
|
* `"empty"`: no start date is specified
|
||||||
* pacing: Course pacing. Possible values: instructor, self
|
* pacing: Course pacing. Possible values: instructor, self
|
||||||
* user_timezone: User's chosen timezone setting (or null for browser default)
|
* user_timezone: User's chosen timezone setting (or null for browser default)
|
||||||
* can_load_course: Whether the user can view the course (AccessResponse object)
|
|
||||||
* user_has_passing_grade: Whether or not the effective user's grade is equal to or above the courses minimum
|
* user_has_passing_grade: Whether or not the effective user's grade is equal to or above the courses minimum
|
||||||
passing grade
|
passing grade
|
||||||
* course_exit_page_is_active: Flag for the learning mfe on whether or not the course exit page should display
|
* course_exit_page_is_active: Flag for the learning mfe on whether or not the course exit page should display
|
||||||
|
|||||||
Reference in New Issue
Block a user