a method void update(KnowledgeUpdate update) that update a specific knowledge level
a method void updateBulk(List<KnowledgeUpdate> updates) that update a bulk of knowledge levels
Those methods should:
retrieve the correct KnowledgeLevel
update the gap and other necessary information
save the updated KnowledgeLevel
update the user streak if necessary
update the user progression if necessary
synchronize the user with the API
Update KnowledgeLevel full diagram
![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/a5dcfc1e-7f68-4e7d-b9b4-83334363161e)
Update a single KnowledgeLevel diagram
![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/30b1ffd9-f534-4f23-8d4f-daa1610e6a85)
What needs to be done
Implement in the KnowledgeLevelRepository both update and updateBulk methods following the diagrams
Requirements
Implement in the
KnowledgeLevelRepository
:void update(KnowledgeUpdate update)
that update a specific knowledge levelvoid updateBulk(List<KnowledgeUpdate> updates)
that update a bulk of knowledge levelsThose methods should:
KnowledgeLevel
KnowledgeLevel
Update
![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/a5dcfc1e-7f68-4e7d-b9b4-83334363161e)KnowledgeLevel
full diagramUpdate a single
![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/30b1ffd9-f534-4f23-8d4f-daa1610e6a85)KnowledgeLevel
diagramWhat needs to be done
Implement in the
KnowledgeLevelRepository
bothupdate
andupdateBulk
methods following the diagramsDependencies
Child of #218
Depends on:
231
148
Dev notes