Edit the ClassroomModule route to create TopicProgress
bryanwong8 opened this issue · comments
What feature would you like implemented/changed
- When creating a ModuleProgress object, create a TopicModule for each topic that the module is related to. Add the modules into the appropriate columns (incomplete, inprogress, completed).
- If a ModuleProgress exists in one of the modules and is not_completed add it to inprogress and if it does not exist, then add it to the incomplete column.
- Modify FetchTopicProgress route to query for a TopicProgress object and return it Marshmallow serialization.
- Edit the TopicProgress object to add an exp column. The column should be an integer and should be set
nullable=False
. When created, exp should be set to 0.
Route Url
edit /classrooms/<int:classroom_id>/modules
edit /topics/<int:topic_id>/progress
Data Sent/Returned
return a success message
Create/Update Postman/Documentation
CreateTopicProgress