Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Call ChainQueryR/W?Maps to New Query

submission_history(request, course_id,

student_username, location)

student_module = StudentModule.objects.get(
course_id=course_key,
module_state_key=usage_key,
student_id=student.id
)
history_entries = StudentModuleHistory.objects.filter(
student_module=student_module
).order_by('-id')

# If no history records exist, let's force a save to get history started.
if not history_entries:
student_module.save()
history_entries = StudentModuleHistory.objects.filter(
student_module=student_module
).order_by('-id')

R/W

003

BUT CSMH will likely become just another

column family. Possibly one like:

 

  Row key
<course|student|module> =>
 Column Name       Column Value
 <timestamp> : <JSON with version|created|state|grade|max_grade>

...