Lichess4545 / heltour

Chess tournament management software for the Lichess4545 league
https://www.lichess4545.com/
MIT License
46 stars 38 forks source link

Start games automatically #523

Open glbert-does opened 10 months ago

glbert-does commented 10 months ago

closes #491.

with this pull request, we try to use the lichess bulk pairing api to create games and start clocks automatically at the scheduled time. here is how it is supposed to work:

at least the following things are potential problems:

i tried to test a lot of stuff, but it is difficult to get it anywhere close to what it would look like in prod.

glbert-does commented 10 months ago

todo:

glbert-does commented 10 months ago

most of the important todos are done. there's a couple nice-to-haves as well:

  1. [ ] as mentioned, a way to confirm a scheduled time via slack
  2. [ ] when a token was declined by lichess, it would be nice to force the player to get a new one, e.g. by logging them out (edit: this can potentially be done by changing their password via User.objects.get(username=[username]).set_password("whatever") - not sure if this would work for our oauth based system)
  3. [ ] possibly, whether a time was confirmed should be shown on the pairings page
  4. [ ] potentially, it could be nice to have at least the time for starting the clocks be a league setting
  5. [ ] maybe whether the clocks will be started at all could be a league setting too (edit: but personally i do not see much of a disadvantage to starting clocks)