Skip to content
Snippets Groups Projects
Unverified Commit 0d714087 authored by Carla Duarte's avatar Carla Duarte Committed by GitHub
Browse files

Merge pull request #27141 from edx/ciduarte/AA-722-2

fix: surface assignment type short_label in Progress Tab MFE API
parents a33e8c08 4570d4e3
Branches
Tags release-2020-05-26-15.05
No related merge requests found
......@@ -54,6 +54,7 @@ class GradingPolicySerializer(serializers.Serializer):
def get_assignment_policies(self, grading_policy):
return [{
'num_droppable': assignment_policy['drop_count'],
'short_label': assignment_policy.get('short_label', ''),
'type': assignment_policy['type'],
'weight': assignment_policy['weight'],
} for assignment_policy in grading_policy['GRADER']]
......
......@@ -68,7 +68,8 @@ class ProgressTabView(RetrieveAPIView):
enrollment_mode: (str) a str representing the enrollment the user has ('audit', 'verified', ...)
grading_policy:
assignment_policies: List of serialized assignment grading policy objects, each has the following fields:
num_droppable: (int) the number of assignments able to be dropped
num_droppable: (int) the number of lowest scored assignments that will not be counted towards the final grade
short_label: (str) the abbreviated name given to the assignment type
type: (str) the assignment type
weight: (float) the percent weight the given assigment type has on the overall grade
grade_range: an object containing the grade range cutoffs. The exact keys in the object can vary, but they
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment