bjedrzejewski / chessmates

Statistics for your Lichess team
1 stars 3 forks source link

Lichess data is updated periodically #34

Closed janakerman closed 7 years ago

janakerman commented 7 years ago

Right so this is quite a big change, both in size and behaviour. Sorry about the size but there wasn't really an intermediary.

This adds repository interfaces, and mock repository implementations that currently use hash maps. The EntityServiceImpl now hits the repositories instead of the LichessDataService. There's a scheduled task that runs every 60 minutes (and at start up) that uses the LichessDataService, saving the new Lichess data to the repositories.

There's quite a few questions here and things that need unit testing: