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:
Michael Terry
2022-04-19 09:24:56 -04:00
parent f416308a66
commit bc10f653dc
5 changed files with 0 additions and 8 deletions

View File

@@ -33,7 +33,6 @@ class CourseHomeMetadataSerializer(VerifiedModeSerializer):
"""
Serializer for the Course Home Course Metadata
"""
can_load_courseware = serializers.BooleanField()
celebrations = serializers.DictField()
course_access = serializers.DictField()
course_id = serializers.CharField()

View File

@@ -126,7 +126,6 @@ class CourseHomeMetadataView(RetrieveAPIView):
'is_self_paced': getattr(course, 'self_paced', False),
'is_enrolled': user_is_enrolled,
'course_access': load_access.to_json(),
'can_load_courseware': True, # can be removed once the MFE no longer references this field
'celebrations': celebrations,
'user_timezone': user_timezone,
'can_view_certificate': certificates_viewable_for_course(course),

View File

@@ -51,7 +51,6 @@ class CourseBlockSerializer(serializers.Serializer):
'icon': icon,
'id': block_key,
'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),
'type': block_type,
'has_scheduled_content': block.get('has_scheduled_content'),