Implement Future<void> LearningOrderRepository.updateProgression(List<ResourceUid> uids, {bool syncUser = false}), it should update the progression of the user if necessary.
What needs to be done
Implement in LearningOrderRepository, a updateProgression(List<ResourceUid> uids, {bool syncUser = false}) method. It should:
check if uids
are on the current level, and determine which is the farest one it will become the new progression index
if they aren't on the current level, check the next level and update the level and resetting the progressin index
if there is no next level, update the stage and level while resetting the progressin index
Requirements
Implement
Future<void> LearningOrderRepository.updateProgression(List<ResourceUid> uids, {bool syncUser = false})
, it should update the progression of the user if necessary.What needs to be done
Implement in
LearningOrderRepository
, aupdateProgression(List<ResourceUid> uids, {bool syncUser = false})
method. It should:uids
level
, and determine which is the farest one it will become the new progression indexlevel
and resetting the progressin indexstage
andlevel
while resetting the progressin indexDependencies
Child of #218
Depends on:
230
Dev notes