on the first time the method is called, reset the learningMode to learn, and use the user's last streak update date to determine if it's necessary
Flow diagram for the selection of the next elements to review or learn
![Diagrams drawio](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/5997565b-556c-4695-812f-29d05219ba49)
What needs to be done
Implement in KnowledgeLevelsRepository the getNextResources method following the requirements and the diagram.
It will use LearningOrderRepository.getNextResourcesToLearn for new elements
Requirements
Implement in the
KnowledgeLevelRepository
:List<KnowledgeUpdate> getNextResources({int quantity = 15, List<ResourceUid> restrain = []})
:quantity
: is the number of resources to returnrestrain
: if the resources pool is restrainedlearningMode
tolearn
, and use the user's last streak update date to determine if it's necessaryFlow diagram for the selection of the next elements to review or learn
![Diagrams drawio](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/5997565b-556c-4695-812f-29d05219ba49)What needs to be done
Implement in
KnowledgeLevelsRepository
thegetNextResources
method following the requirements and the diagram. It will useLearningOrderRepository.getNextResourcesToLearn
for new elementsDependencies
Child of #218
Depends on:
229
231
Dev notes