Thibault Duplessis
7ad920ca65
use $lookup.pipeline in DailyPuzzle
2021-10-14 08:28:37 +02:00
Thibault Duplessis
42577d6ab3
tweak aggregation query
2021-10-13 11:02:21 +02:00
Thibault Duplessis
ee525c188e
one aggregation query to get all threads, messages, and contacts
2021-10-13 10:55:34 +02:00
kraktus
2d0e6df79a
Show shadowban directly in the communication page
...
For https://hq.lichess.ovh/#narrow/stream/34-mod-dev/topic/shadowbans.20in.20PMs.20.28request.29/near/432680
TDLR: make it more clear it's not needed to investigate these players, without hovering the username of each of them.
2021-10-09 13:26:19 +02:00
Thibault Duplessis
0247686705
better truncate message in notification - closes #9887
2021-09-30 09:31:06 +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
87cbd84dca
data export: fix exclusion of team messages
2021-09-19 08:23:54 +02:00
Thibault Duplessis
7203d2f638
tweak msg limiter
2021-09-18 07:39:23 +02:00
kraktus
767849a396
Display to mods when conv threads are truncated
2021-09-15 14:19:31 +02:00
Thibault Duplessis
7d98857ac6
better clean up msgs
2021-09-14 15:10:50 +02:00
kraktus
b72c76d68a
Fix sbed-sbed communication
...
Private messages communication between shadow-banned users was still possible (received notifications, messages weren't hidden in inbox).
2021-09-13 14:20:37 +02:00
Thibault Duplessis
655c6aaa4f
rename Future.nevermind -> Future.recoverDefault
2021-08-29 21:34:38 +02:00
Thibault Duplessis
d57e4c5816
tweak hashCode dedup
2021-08-29 10:23:40 +02:00
Thibault Duplessis
1f96b01b57
make it easier to unsub from team messages
2021-08-18 12:34:26 +02:00
Thibault Duplessis
3b07f60d85
scala code tweaks
2021-08-12 14:49:39 +02:00
Benedikt Werner
fbc836380e
Remove wrong comma in message presets
2021-07-29 10:00:47 +02:00
Thibault Duplessis
e2e02fa50e
tweak 2fa reminder message - for #9403
2021-07-16 10:31:53 +02:00
Thibault Duplessis
7bd5300937
refactor 2fa reminder out of controllers - for #9403
2021-07-16 10:21:04 +02:00
Thibault Duplessis
0605392689
Merge branch 'send-msg-if-two-factor-disabled' of github.com:andresrcom/lila into andresrcom-send-msg-if-two-factor-disabled
...
* 'send-msg-if-two-factor-disabled' of github.com:andresrcom/lila:
sending to streamers, coaches and teachers periodic notifications when two-factor authentication is disabled
2021-07-16 10:05:00 +02:00
Benedikt Werner
c533d60673
Ignore msg security for Challenge API messages
2021-07-15 13:40:56 +02:00
andresrcom
3a0c6d7423
sending to streamers, coaches and teachers periodic notifications when two-factor authentication is disabled
2021-07-13 00:14:54 +03:00
Thibault Duplessis
35aefa9a20
dedup auto msg flags
2021-07-10 11:14:56 +02:00
Thibault Duplessis
b2b7a52ee2
forum post deletion presets fix
2021-07-08 09:57:01 +02:00
Thibault Duplessis
17870be430
fix team leader forum deletion message - closes lichess-org/tavern#119
2021-06-03 10:10:30 +02:00
Thibault Duplessis
095dfbda6f
send automatic message on forum post deletion
...
closes lichess-org/tavern#101
2021-05-26 09:50:23 +02:00
Adam Morris
983a100091
run sbt scalafmtAll
2021-04-11 20:10:31 +10:00
Thibault Duplessis
a85d47bb5d
fully streamed data export - closes #8602
2021-04-10 11:39:33 +02:00
Thibault Duplessis
10bb539717
remove unused imports with scalafix
2021-04-10 09:25:42 +02:00
Thibault Duplessis
83a8231939
remove the tuple matching ~ notation
...
it produces compiler warnings since the latest 2.13 scala release
too bad for readability, but I want warnings-free code
2021-04-09 09:00:00 +02:00
Thibault Duplessis
a427c2bc90
let kids lookup their classmate for conversations
2021-03-31 16:42:03 +02:00
Thibault Duplessis
1596c7c9a9
allow kids in the same class to PM each other
2021-03-31 14:53:42 +02:00
Joe Stein
9fa45b1b7f
Exclude deleted threads from unread count
...
Closes #8504 .
2021-03-29 19:25:23 -04:00
Thibault Duplessis
f72b0fb3dc
improve type safety with lila.user.Holder
2021-03-09 12:18:55 +01:00
Thibault Duplessis
34acb4e72d
fix personal data export - closes lichess-org/tavern#52
2021-03-06 08:25:47 +01:00
Thibault Duplessis
3e2c6c615f
remove dest user from PM export - for lichess-org/tavern#52
2021-03-06 08:13:29 +01:00
Thibault Duplessis
b46b9cedda
fix unread count of compat msg API - closes veloce/lichobile#1561
...
messages that you never read end up being moved down the list
by newer messages.
stop counting them as unread after a while.
Better fix: use the new inbox API and the lichess notification system
2021-02-21 19:02:31 +01:00
Thibault Duplessis
ed398dc676
delete message thread to prevent new posts
...
if your privacy settings prevent the other player from
creating a new message thread with you.
closes #7175
2021-02-17 18:01:18 +01:00
Thibault Duplessis
822054e36b
better monitor PMs sent
2021-02-17 17:08:07 +01:00
Thibault Duplessis
fc89094e6c
rewrite sandbag/boosting auto handlers WIP
2021-02-15 20:26:28 +01:00
Thibault Duplessis
402685f418
refactor boosting/sandbagging detection, auto-warn, auto-report
...
todo: db.boosting.drop()
2021-02-12 16:46:25 +01:00
Thibault Duplessis
18e6b5696a
send custom messages to player paired with challenge API endpoints
2021-02-08 21:03:31 +01:00
Thibault Duplessis
fe9d6da646
upgrade play to 2.8.7-lila_1.6 WIP
2021-02-08 12:52:02 +01:00
Thibault Duplessis
863b0452da
fix cli msg multi-send
2021-02-07 09:49:31 +01:00
Thibault Duplessis
65b417f6a0
monitor team mass PMs
2021-02-01 09:46:00 +01:00
Thibault Duplessis
fe566f4dbb
spam logging
2020-12-26 00:35:21 +01:00
Thibault Duplessis
f259240f7f
explicitly return unit to prevent value discarding #list
2020-09-29 10:38:01 +02:00
Thibault Duplessis
aaf88bc62c
scalafmt 2.7.1
2020-09-21 09:28:28 +02:00
Niklas Fiekas
fca93fc33b
scalafmt
2020-09-07 09:56:30 +02:00
Thibault Duplessis
cb063acd98
ensure mongodb index usage in msg search
2020-08-24 12:12:02 +02:00
Thibault Duplessis
0ba2c7cafd
rename all DataForm
2020-08-21 22:40:37 +02:00