labxchange / labxchange-xblocks

XBlocks for LabXchange
Apache License 2.0
2 stars 4 forks source link

Improve data that lx_assignment block provides about its children #6

Closed bradenmacdonald closed 4 years ago

bradenmacdonald commented 4 years ago

This updates the student_view_data of Assignment XBlocks so that for each child block:

  1. graded is no longer based on the deprecated graded attribute, but rather has_score etc.
  2. max_attempts is returned, if known
  3. weight (maximum score that can be earned) is set, if known

This also updates the XBlock to properly handle unit children that themselves contain problems, e.g. if a Video or HTML is grouped together with a capa problem.