feat!: removes deprecated v1 certificate behavior (#35562)
* feat!: removes deprecated v1 certificate behavior this removes the long-deprecated v1 certificate behavior. This removes the old-style date selection behavior (ie., not a choice between *Immediately upon passing*, *End date of course*, *A date after the course end date*), which is no longer reliably maintained or supported in Studio or Credentials. FIXES: #35399
This commit is contained in:
@@ -31,4 +31,3 @@ class CourseSettingsSerializer(serializers.Serializer):
|
||||
show_min_grade_warning = serializers.BooleanField()
|
||||
sidebar_html_enabled = serializers.BooleanField()
|
||||
upgrade_deadline = serializers.DateTimeField(allow_null=True)
|
||||
use_v2_cert_display_settings = serializers.BooleanField()
|
||||
|
||||
@@ -95,7 +95,6 @@ class CourseSettingsView(DeveloperErrorViewMixin, APIView):
|
||||
"show_min_grade_warning": false,
|
||||
"sidebar_html_enabled": true,
|
||||
"upgrade_deadline": null,
|
||||
"use_v2_cert_display_settings": false
|
||||
}
|
||||
```
|
||||
"""
|
||||
@@ -112,7 +111,6 @@ class CourseSettingsView(DeveloperErrorViewMixin, APIView):
|
||||
'course_display_name_with_default': course_block.display_name_with_default,
|
||||
'platform_name': settings.PLATFORM_NAME,
|
||||
'licensing_enabled': settings.FEATURES.get("LICENSING", False),
|
||||
'use_v2_cert_display_settings': settings.FEATURES.get("ENABLE_V2_CERT_DISPLAY_SETTINGS", False),
|
||||
})
|
||||
|
||||
serializer = CourseSettingsSerializer(settings_context)
|
||||
|
||||
@@ -55,7 +55,6 @@ class CourseSettingsViewTest(CourseTestCase, PermissionAccessMixin):
|
||||
"show_min_grade_warning": False,
|
||||
"upgrade_deadline": None,
|
||||
"licensing_enabled": False,
|
||||
"use_v2_cert_display_settings": False,
|
||||
}
|
||||
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
|
||||
Reference in New Issue
Block a user