Commit Graph

16128 Commits (89bd3d78914d16287efe2d99296eb7c71da0c668)

Author SHA1 Message Date
Thibault Duplessis d533767784 analysis wikibooks theory POC 2021-10-06 12:06:06 +02:00
Thibault Duplessis 1709f2e214 /api/games/user sort query parameter 2021-10-05 21:16:16 +02:00
Konstantinos07 5cb1cd5b0a
Shutup improvements (#9930)
* support pluralising es and de in shutup

* tweak dict and comments

*past tenses are redundant in en dict
*add comment and clarify which dictionaries are pluralized
2021-10-05 08:17:57 +02:00
Thibault Duplessis 9b48fd3ca9 better log and monitor markdown rendering 2021-10-04 21:13:17 +02:00
Thibault Duplessis b35f3b2691 limit class wall text size 2021-10-04 13:26:49 +02:00
Thibault Duplessis 4a80d5b6b8 enable markdown table in class news 2021-10-04 12:48:21 +02:00
Thibault Duplessis 8fdc038ae7 on start, batch load round games from DB 2021-10-04 11:21:16 +02:00
Thibault Duplessis a217b16c9b prevent errors to be stored in game cache
By just replacing them with the absence of a game.
This will cause the round and proxy to be terminated,
and the next request will try to load it again.
2021-10-04 09:01:01 +02:00
Thibault Duplessis 127ade48e0 use $sort.asc 2021-10-04 09:00:44 +02:00
Thibault Duplessis 8c84ff3496 code tweak - use $lookup.simple 2021-10-04 08:02:35 +02:00
Thibault Duplessis 52bf3de90b player JSON refactor, no functional change 2021-10-03 18:20:36 +02:00
Thibault Duplessis 70db2863e2 include closed accounts in /api/users
Also:
- always use `disabled: true` and not `closed: true` according to docs
- don't release any info about closed accounts
2021-10-03 18:14:09 +02:00
Thibault Duplessis 682dcbfb45
Merge pull request #9916 from benediktwerner/remove-mod-search-method-dropdown
Remove mod search method dropdown
2021-10-03 17:36:15 +02:00
Thibault Duplessis c41c0ee3f7
Merge pull request #9924 from kraktus/swiss_timeout_page
Public-chat page: remove "simul" channel
2021-10-03 17:35:46 +02:00
Thibault Duplessis 8492f986da
Merge pull request #9925 from kraktus/zulip_dox_note_admin
Make admin zulip notes doxy
2021-10-03 17:35:28 +02:00
kraktus e65dc9bc57 Make admin zulip notes doxy 2021-10-03 16:54:59 +02:00
kraktus 87344eeb32 Public-chat page: remove "simul" channel
They were removed from the public-chat page
2021-10-03 16:01:59 +02:00
kraktus 1d6fc99b03 Public chat page: fix swiss timeout 2021-10-03 13:36:32 +02:00
Thibault Duplessis 5af50b8b8d fix trophy kind DB mapping 2021-10-03 12:14:08 +02:00
Thibault Duplessis fee89d7af3 casual puzzle play without rating updates 2021-10-03 11:57:07 +02:00
Thibault Duplessis 3cf76bad3f only save leaderboardable perf types in rankings 2021-10-03 10:37:43 +02:00
Thibault Duplessis 6abfc8dccd remove correspondence leaderboard cache 2021-10-03 10:32:21 +02:00
Thibault Duplessis fdddc5e89b use soft text cleanup for study annotations - closes #9919 2021-10-03 10:10:21 +02:00
Thibault Duplessis ab46589a52 soft string cleanup with normalization and invisible char detection 2021-10-03 10:10:05 +02:00
Thibault Duplessis 872fa736e4
Merge pull request #9918 from benediktwerner/allow-chess-symbols
Allow chess symbols
2021-10-03 09:59:29 +02:00
Thibault Duplessis fbd5d06da5 never wait for ranking computation 2021-10-03 09:45:32 +02:00
Thibault Duplessis 1fd57bc4da log slow ranking computation 2021-10-03 09:45:32 +02:00
Benedikt Werner 1a98e78b4e
Allow chess symbols 2021-10-03 08:28:29 +02:00
Benedikt Werner 91980cb4da
scalafmt 2021-10-03 08:18:48 +02:00
Benedikt Werner 506c948568
Remove mod search method dropdown 2021-10-03 07:57:20 +02:00
Thibault Duplessis d1201d7260 raise to 40 server analysis per day, 200 per week 2021-10-02 20:33:15 +02:00
Thibault Duplessis b3a1789a23 revert chat expiration
too complex and requires reading/updating expiration
on every message posted
2021-10-02 12:32:29 +02:00
Thibault Duplessis 486fc19047 tweak chat cache 2021-10-02 12:32:29 +02:00
Thibault Duplessis fb7f6668d2 only randomly delay start of official tournaments - for #6261 2021-10-02 10:10:11 +02:00
Thibault Duplessis 797c7b759a download all tournament games of a single player 2021-10-02 09:58:20 +02:00
Thibault Duplessis 6788d4659b Merge branch 'master' of github.com:ornicar/lila
* 'master' of github.com:ornicar/lila:
  Rename "Creator Badge" to "Content Team Badge"
2021-10-02 08:59:06 +02:00
Benedikt Werner 6a67e9e643
Rename "Creator Badge" to "Content Team Badge" 2021-10-02 08:53:32 +02:00
Thibault Duplessis 21298545c2 refactor & reformat 2021-10-02 08:51:31 +02:00
Thibault Duplessis ed1a77929a
Merge pull request #9891 from ijhchess/creator-badge
creator badge for #9889
2021-10-02 08:43:02 +02:00
Thibault Duplessis 906571a231
Merge pull request #9886 from kraktus/note_every_zulip
Create a zulip note whenever a mod sends to Zulip
2021-10-02 08:33:16 +02:00
Benedikt Werner 04fddd972f
Add back error translations 2021-10-02 08:02:01 +02:00
Thibault Duplessis f8dcbe7d3b fix user API verified flag 2021-10-01 20:45:05 +02:00
Thibault Duplessis 439f476c0b add verified flag to user API JSON 2021-10-01 20:22:54 +02:00
Thibault Duplessis dacca99d97 chapter form isDefaultName for pgn import 2021-09-30 10:56:56 +02:00
Thibault Duplessis 0247686705 better truncate message in notification - closes #9887 2021-09-30 09:31:06 +02:00
Thibault Duplessis 149c365521
Merge pull request #9894 from rglbr/clear_notifications
allow users to clear notifications
2021-09-29 16:05:55 +02:00
Thibault Duplessis 607e47252d simplify PerfStat streaks, remove extra arg, rename functions
after #9872
2021-09-29 09:46:56 +02:00
G-Lorenz 1dc508f975
Bugfix in PlayStreak (#9872)
Bug: the first game of a new streak is not counted in the streak,
neither in `games played in a row` nor in `max time spent playing`. Bug
is not present if the game is the first one ever under that time
control.
Steps to reproduce: play one rated game using a time control previously
used (e.g. blitz) even though not in the last hour, than go to
`lichess.org/@/<user>/perf/blitz` and note
that both `current streak` at the bottom of the page are still zero.
From the second game the `current streak` of `games played in a row` is
systematically one less than expected, while the other one does not
count the elapsed time of the first game.

Troubleshooting: the bug is due to the call at `Streak.init`
(i.e. `(0, none, none)`) when a game is discontinued from the previous one.
I propose, with this commit, to substitute that call with a new function
inspired by `inc`. This new function is called `res` (from `reset`):
its aim is to set `nb` and `time` dynamically after the first game
of the new streak.
In order to use this new function only in `nb` and `time`
I create a new `apply` function in `Streaks` and `Streak` with an extra
parameter: the reset (`r`) value. w/l streaks still use the old
`apply` function.
2021-09-29 09:37:26 +02:00
Ragul Balaji Ravichandran 0f3ff8334c restrict initial fen to variants with custom start position 2021-09-29 09:37:11 +05:30
Ragul Balaji Ravichandran 5a20e3e7c4 remove default initial fen 2021-09-28 22:01:39 +05:30