Thibault Duplessis
004f383d5c
maximum 1000 forbidden pairings in a swiss tournament
2021-09-28 17:46:23 +02:00
Thibault Duplessis
4bc846816e
update lame names - closes #9897
2021-09-28 16:52:25 +02:00
Thibault Duplessis
82a6c13bf9
show post with incremented views
2021-09-28 14:06:45 +02:00
Thibault Duplessis
70a3f59b55
tweak cached paginators
2021-09-28 12:13:56 +02:00
Thibault Duplessis
c38af23730
do not count all finished hourly tournaments
2021-09-28 11:48:08 +02:00
Thibault Duplessis
53a3a397e7
remove latex from markdown editor, it breaks it
2021-09-28 08:44:39 +02:00
Thibault Duplessis
d659e5e3ba
broadcast round stream API event on tag update
2021-09-28 08:15:19 +02:00
Ragul Balaji Ravichandran
15b4ce99c7
allow users to clear notifications
2021-09-26 20:40:54 +05:30
ijhchess
c7828149c8
for #9889
2021-09-25 14:58:50 -05:00
kraktus
0eda25ce08
Create a zulip note whenever a mod sends to Zulip
...
close https://github.com/lichess-org/tavern/issues/136
2021-09-25 14:33:23 +02:00
Thibault Duplessis
f58e5161bc
Merge pull request #9877 from 370417/escape-links
...
Call the unescapeUnderscoreInLinks function
2021-09-24 09:53:49 +02:00
Thibault Duplessis
5642398eb6
optimize /inbox msg fetch query
...
There can be very slow queries when these conditions are met:
- two users have thousands of msgs in their convo
- a user has deleted all the messages
- some new messages were posted, less than 100 of them, say 50
- the user who deleted the thousands of messages loads the convo
What happens then is that lila fetches 100 messages for that user,
that have not been deleted by that user.
The query will find the latest 50 non-deleted messages,
then will look for more, and ends up scanning the thousands
of deleted messages. In vain: since messages can only be deleted
up to a point in time. There can't be non-deleted messages older
than a deleted message.
So, we removed the non-deleted condition from the query. We now
just fetch the last 100 messages (with possible skip for pagination),
deleted or not. And we filter them in lila after the fetch.
This guarantees that the DB will no longer scan thousands of
deleted messages.
2021-09-24 09:31:38 +02:00
Thibault Duplessis
8961e18799
Merge pull request #9874 from kraktus/team_forum_topic_c
...
Fix topic count
2021-09-24 08:08:35 +02:00
Albert Ford
b20f70248c
Call the unescapeUnderscoreInLinks function
2021-09-23 22:56:35 -07:00
kraktus
0c30d292af
fix topic count for troll users
2021-09-23 23:33:19 +02:00
Thibault Duplessis
7983f75234
fix challenge accept API endpoint when challenge was canceled
2021-09-23 22:35:44 +02:00
kraktus
563fbbfebe
Categ: Only increment number of topics for the first message of it
...
Close https://github.com/ornicar/lila/issues/6772
2021-09-23 22:30:29 +02:00
Thibault Duplessis
f0dccc156f
no multiline in chats, thx
2021-09-23 17:45:06 +02:00
Thibault Duplessis
913fa06d86
show swiss chats instead of self-moderated simul chats in mod view
2021-09-23 17:20:07 +02:00
Thibault Duplessis
a42717d2d5
fix round preset
2021-09-23 14:02:52 +02:00
Thibault Duplessis
443e27caef
make spectator system messages volatile, prepare player message expiration
2021-09-23 12:32:20 +02:00
Thibault Duplessis
63c22ae53c
remove superfluous monitoring endpoints
2021-09-23 10:47:44 +02:00
Thibault Duplessis
9aef32ee88
broadcast streaming API
2021-09-23 10:18:10 +02:00
kraktus
c8e0571b70
Fix the tournament names after translating ( #9866 )
...
* Revert "Revert "Improve tournament names translation""
This reverts commit ec10605e20
.
* Fix tournament names when `Speed` different from `Perf`
Only `Rapid` and `Classical` are concerned by translation anyway.
8a1a7396f5/modules/rating/src/main/PerfType.scala (L297)
Co-authored-by: kraktus <kraktus@users.noreply.github.com>
2021-09-23 07:44:31 +02:00
Thibault Duplessis
3e529ca65d
let closed accounts export their studies
2021-09-22 22:15:34 +02:00
Thibault Duplessis
f9f08662c7
Merge pull request #9863 from kraktus/trans_unused3
...
Remove legacy translation key
2021-09-22 22:04:45 +02:00
Thibault Duplessis
c1df377162
detect more garbage chars
2021-09-22 21:54:50 +02:00
kraktus
bd2e265433
Remove more legacy key
2021-09-22 21:53:00 +02:00
Thibault Duplessis
15cd13d775
swiss tournament forfeit on ToS violation
2021-09-22 21:18:07 +02:00
Thibault Duplessis
ec10605e20
Revert "Improve tournament names translation"
2021-09-22 19:57:20 +02:00
kraktus
845671979b
Remove legacy translation keys
2021-09-22 19:10:26 +02:00
Thibault Duplessis
38b5e65a86
fix default tournament.berserkable flag in API create endpoint
2021-09-22 08:21:46 +02:00
Thibault Duplessis
fe01a52440
remove ranking read preferences
2021-09-22 08:02:22 +02:00
Thibault Duplessis
0bbfce39be
tweak ublog ranking
2021-09-22 07:44:00 +02:00
Thibault Duplessis
5fbb9734be
Merge pull request #9852 from kraktus/tournaments_trans
...
Improve tournament names translation
2021-09-21 21:34:00 +02:00
Thibault Duplessis
b6f28e46f1
more tournament join optimization
2021-09-21 21:29:20 +02:00
Thibault Duplessis
95fff08b50
optimize tournament endpoints
2021-09-21 21:21:01 +02:00
kraktus
2f9893d3b8
scalafmt
2021-09-21 17:37:00 +02:00
kraktus
057c6fd24f
Tournament: Translate Perf
2021-09-21 17:35:23 +02:00
Thibault Duplessis
5ee55e1327
add ?withCurrentGames=1 flag to /api/stream/games-by-users endpoint
2021-09-21 10:03:10 +02:00
Thibault Duplessis
123980730e
Revert "tweak user profile code"
...
This reverts commit 6fc82e775a
.
2021-09-20 19:12:27 +02:00
Thibault Duplessis
31ba5d3a08
type safety: use Status rather than Int - for #9850
...
also filters out exotic status numbers
2021-09-20 18:58:00 +02:00
Thibault Duplessis
ab0c01e2a1
Merge branch 'api-filter-user-tournaments-by-status' of git://github.com/nnickoloff1234/lila into nnickoloff1234-api-filter-user-tournaments-by-status
...
* 'api-filter-user-tournaments-by-status' of git://github.com/nnickoloff1234/lila:
Update TournamentRepo.scala
add status filter parameter to users created tournaments api
2021-09-20 18:38:32 +02:00
Thibault Duplessis
ced5e57c93
don't always publish user.online to discourage API misuse
...
Use this instead: https://lichess.org/api#operation/apiUsersStatus
2021-09-20 17:54:43 +02:00
nnickoloff1234
d564bd9933
Update TournamentRepo.scala
2021-09-20 18:46:40 +03:00
nickolay
172ad1c02c
add status filter parameter to users created tournaments api
2021-09-20 18:35:30 +03:00
Thibault Duplessis
1a92c93554
remove followers streaming API which no-one uses
...
according to monitoring
2021-09-20 16:24:08 +02:00
Thibault Duplessis
ce7e72e968
fix zulip icon names
2021-09-20 14:52:46 +02:00
Thibault Duplessis
6c2c88de22
different results for mobile app
2021-09-20 12:21:47 +02:00
Thibault Duplessis
30c08f64ac
move ranking collection to YoloDb
2021-09-20 11:51:42 +02:00
Thibault Duplessis
2fe175294e
Merge branch 'master' of github.com:ornicar/lila
...
* 'master' of github.com:ornicar/lila:
tweak relation caches
show full list of friends
remove timeline entries about people following me
Revert "no longer send follow to friends timelines"
no longer send follow to friends timelines
ublog post image alt & credit
analyse/embed/css: button cursor: pointer
analyse/embed/css: Fix zh layout on mobile
Prettier
broadcast: Fix error URL
ublog: Translate follow button properly
css: Reduce page h2 line-height
css: Make .button display: inline-block
ublog/css: Prevent linebreak inside view count
Fix zulip chat panic link
Make shepherd close button visible
Fix shepherd themes being swapped
2021-09-20 07:39:19 +02:00
Thibault Duplessis
f15ead0c7b
tweak relation caches
2021-09-19 22:24:26 +02:00
Thibault Duplessis
e7fc377aad
remove timeline entries about people following me
2021-09-19 21:11:22 +02:00
Thibault Duplessis
184f6a73af
Revert "no longer send follow to friends timelines"
...
This reverts commit d1ba97df75
.
2021-09-19 21:10:42 +02:00
Thibault Duplessis
8836b8b652
Merge pull request #9842 from benediktwerner/fix-broadcast-error-link
...
broadcast: Fix error URL
2021-09-19 19:39:50 +02:00
Thibault Duplessis
d1ba97df75
no longer send follow to friends timelines
2021-09-19 19:30:22 +02:00
Thibault Duplessis
503beddb89
ublog post image alt & credit
2021-09-19 17:22:09 +02:00
Benedikt Werner
081e7900a4
broadcast: Fix error URL
2021-09-19 16:26:29 +02:00
Benedikt Werner
1277e9e0f7
ublog: Translate follow button properly
2021-09-19 16:26:05 +02:00
Benedikt Werner
23ecf30443
Fix zulip chat panic link
2021-09-19 14:34:05 +02:00
Thibault Duplessis
d2c81eb012
move perf_stat collection to YoloDb
2021-09-19 12:13:53 +02:00
Thibault Duplessis
fb874b7858
move eval_cache collection to YoloDb
2021-09-19 11:37:05 +02:00
Thibault Duplessis
75fd40a901
move the matchup collection to YoloDb
2021-09-19 11:25:34 +02:00
Thibault Duplessis
d76b50e3d1
no longer store empty crosstables
2021-09-19 10:57:44 +02:00
Thibault Duplessis
87cbd84dca
data export: fix exclusion of team messages
2021-09-19 08:23:54 +02:00
Thibault Duplessis
c56d6d94ea
try to keep the data export stream alive
2021-09-19 08:19:04 +02:00
Thibault Duplessis
87ddb3cd6c
private game chats cause personal data export to hang
...
presumably
2021-09-19 08:15:06 +02:00
Thibault Duplessis
18b8fedcb1
validate prismic IDs
2021-09-18 15:22:59 +02:00
Thibault Duplessis
3367eec955
fix and restore activity truncation
2021-09-18 14:40:27 +02:00
Thibault Duplessis
53a13fe270
prevent arena berserk if inc > limit*2
...
prevents tournament abuse with TC like 1+60
where perf is Classical but berserked games are Hyperbullet.
2021-09-18 12:17:19 +02:00
Thibault Duplessis
0cbd126f8c
tweak ublog ranking
2021-09-18 10:49:21 +02:00
Thibault Duplessis
95b223294a
tweak rating chart cache strategy
2021-09-18 10:49:04 +02:00
Thibault Duplessis
52e2767948
disable activity truncation for now
2021-09-18 08:25:23 +02:00
Thibault Duplessis
d2d10025e5
Merge branch 'master' of github.com:ornicar/lila
...
* 'master' of github.com:ornicar/lila:
rename yolodb collections
lobby/css: Tweak mobile table some more
Hide Streamer and Blog likes notifications for kids
2021-09-18 07:40:26 +02:00
Thibault Duplessis
41ca4a57ea
Merge branch 'master' of github.com:ornicar/lila
...
* 'master' of github.com:ornicar/lila:
lobby/css: Tweak mobile table some more
Hide Streamer and Blog likes notifications for kids
2021-09-18 07:40:04 +02:00
Thibault Duplessis
5f03e7eae5
rename yolodb collections
2021-09-18 07:39:55 +02:00
Thibault Duplessis
7203d2f638
tweak msg limiter
2021-09-18 07:39:23 +02:00
Thibault Duplessis
554a57ccf4
Merge pull request #9823 from kraktus/blog_timeline2
...
Hide Streamer and Blog likes notifications for kids
2021-09-17 20:32:35 +02:00
kraktus
95120c0844
Hide Streamer and Blog likes notifications for kids
...
They cannot access these items anyway.
ss
2021-09-17 14:41:38 +02:00
Thibault Duplessis
7beac6b0d8
more ublog rank tweaks
2021-09-17 13:51:58 +02:00
Thibault Duplessis
6e4fdbaa14
remove read preference from history module
...
using yoloDb
2021-09-17 10:47:41 +02:00
Thibault Duplessis
a7497bda5c
remove read preference in activity module
...
it uses the yolo DB
2021-09-17 10:46:49 +02:00
Thibault Duplessis
7d541ea9e4
always read same amount of activity days
2021-09-17 10:45:33 +02:00
Thibault Duplessis
2c0aebd270
truncate user activity after inserting a new day
2021-09-17 10:33:48 +02:00
Thibault Duplessis
8b4221e911
simplify and optimize activity writes - closes #9820
2021-09-17 09:51:13 +02:00
Thibault Duplessis
d739780f8b
fix ublog rank setting store
2021-09-17 09:09:48 +02:00
Thibault Duplessis
7d5b798cf1
more ublog rank tweaks
2021-09-17 08:31:20 +02:00
Thibault Duplessis
6526071402
recompute all ublog ranks on factor change
2021-09-16 21:53:23 +02:00
Thibault Duplessis
718c60e2f0
add SettingStore.onSet
2021-09-16 21:53:03 +02:00
Thibault Duplessis
2f9ce9e8b7
configurable ublog rank factor
2021-09-16 21:39:05 +02:00
Thibault Duplessis
da6d24dc36
Revert "activity: write doc date so it can expire"
...
This reverts commit d5c7c24e1d
.
2021-09-16 20:44:43 +02:00
Thibault Duplessis
d5c7c24e1d
activity: write doc date so it can expire
2021-09-16 19:44:57 +02:00
Thibault Duplessis
33cfc3a248
fix coll scan in aggregation query
...
because of a mongodb bug that prevents using available index
in $expr $in in aggregation pipeline
https://jira.mongodb.org/browse/SERVER-32549
https://jira.mongodb.org/browse/SERVER-37470
Revert this when the mongodb bug is fixed, for additional perf
2021-09-16 11:48:21 +02:00
Thibault Duplessis
5b57c2769a
more referrer antispam detection
2021-09-16 11:48:21 +02:00
Thibault Duplessis
ec69f642a2
increase ublog rotation
2021-09-16 10:24:15 +02:00
Thibault Duplessis
5cc2c0f905
rename YoloDb
2021-09-16 09:37:04 +02:00
Thibault Duplessis
6639987c7a
prevent changing tournament perf type after players have joined
...
closes #9730
2021-09-15 19:21:41 +02:00
Thibault Duplessis
12e7dc63a8
Revert "simplify tournament update code"
...
This reverts commit 0071ef7497
.
2021-09-15 19:08:28 +02:00
Thibault Duplessis
0071ef7497
simplify tournament update code
2021-09-15 19:02:51 +02:00
Thibault Duplessis
01031e26ba
use akka BoundedQueueSource in WorkQueue - closes #9805
2021-09-15 18:51:59 +02:00