-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
User perfs #13134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User perfs #13134
Conversation
* master: Update sbt to 1.9.1
* master: fix gamebook embeds in Lpv - closes #13129 fix branchToMove function name, again rename branchToMove to please fleischfleisch let lichess-pgn-viewer read default orientation from the PGN Orientation tag don't try loading lpv css twice fix ui/round reload URL expand forum studies without iframes expand blog studies without iframes Update sbt to 1.9.1 Update google-auth-library-oauth2-http to 1.19.0 Codegolf with ByColor Scala 15.3.6 and update Crazyhouse.Pocket changes
* 'user-perfs' of github.com:lichess-org/lila:
* master: X-file, redirect to next user when auto-next report enabled fix X-file controller type use new scala3 syntax for `flatMap`
* 'user-perfs' of github.com:lichess-org/lila: X-file, redirect to next user when auto-next report enabled fix X-file controller type use new scala3 syntax for `flatMap`
* origin/master: remove board menu "NEW" nag fix ui/analysis game socket url New Crowdin updates (#13125) Update sbt-bloop to 1.5.7
* master: New Crowdin updates (#13140) fix lichobile game analysis board
* master: (39 commits) New translations: preferences.xml (Vietnamese) New translations: arena.xml (Sorani (Kurdish)) New translations: arena.xml (Sorani (Kurdish)) New translations: storm.xml (Sorani (Kurdish)) New translations: faq.xml (Sorani (Kurdish)) New translations: contact.xml (Sorani (Kurdish)) New translations: arena.xml (Sorani (Kurdish)) New translations: broadcast.xml (Sorani (Kurdish)) New translations: insight.xml (Sorani (Kurdish)) New translations: class.xml (Sorani (Kurdish)) New translations: arena.xml (Sorani (Kurdish)) New translations: puzzle.xml (Sorani (Kurdish)) New translations: ublog.xml (Uzbek) New translations: preferences.xml (Uzbek) Remove add SanStr when black moves first New translations: puzzle.xml (Sorani (Kurdish)) New translations: site.xml (Ukrainian) fix ws exception taking down dasher New translations: puzzle.xml (Sorani (Kurdish)) New translations: keyboardMove.xml (Spanish) ...
* master: allow up to 64 official broadcasts to be active at the same time (!) Hide "search note" page from the sidebar to non-admin mods Fix tests Make ImporterForm returns Either Migrate scalachess 15.4.0 with Either
* origin/master: New Crowdin updates (#13149) whitelist trusted oauth apps operated by lichess scalafmt tweak abort and error propagation for explorerXhr Fix missing negation & code golf Refactor findCorrespondingChapter Refactor RelaySync.apply Use cats for LilaFuture
* origin/master: send new clock total time to WS on clockInc scala tweaks Fix move to X-file
* origin/master: Fix puzzleis playedXTimes translation - fixes #13159
|
anyone wants to review 5K LOC? No? I'll just merge then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only look at lila.user, and have few comments.
|
|
||
| def bestRatedPerf: Option[Perf.Typed] = | ||
| val ps = perfs.filter(_._1 != PerfType.Puzzle) | ||
| val minNb = math.max(1, ps.foldLeft(0)(_ + _._2.nb) / 10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: there are few places, where we use 10, 15, should we create a const variables, so it'll be easier to understand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
* master: scala tweaks fix Long to Int globally import cats.syntax.all.* tweak tournament top cache scala tweaks use union type after lichess-org#13134 neater cats syntax after lichess-org#13134 New Crowdin updates (lichess-org#13167)
* master: (46 commits)
globally import cats.{Eq, Show, data.NonEmptyList}
scala tweaks
fix Long to Int
globally import cats.syntax.all.*
tweak tournament top cache
scala tweaks
use union type after lichess-org#13134
neater cats syntax after lichess-org#13134
New Crowdin updates (lichess-org#13167)
use ReadPref.priTemp
Fix wrong rewrite by scalafmt
fix ublog page title when editing
Update git blame ignore revs
Fix scalafmt crashes
Run scalafmtAll again
Fix compiling error
Run scalafmtAll
reduce some youtube streamer log statement priorities
Bump scalafmt 3.7.7 and add rewrite config
remove last references to ReadPreference
...
* master: (58 commits)
globally import cats.{Eq, Show, data.NonEmptyList}
scala tweaks
fix Long to Int
globally import cats.syntax.all.*
tweak tournament top cache
scala tweaks
use union type after lichess-org#13134
neater cats syntax after lichess-org#13134
New Crowdin updates (lichess-org#13167)
use ReadPref.priTemp
Fix wrong rewrite by scalafmt
fix ublog page title when editing
Update git blame ignore revs
Fix scalafmt crashes
Run scalafmtAll again
Fix compiling error
Run scalafmtAll
reduce some youtube streamer log statement priorities
Bump scalafmt 3.7.7 and add rewrite config
remove last references to ReadPreference
...
* master: (55 commits)
globally import cats.{Eq, Show, data.NonEmptyList}
scala tweaks
fix Long to Int
globally import cats.syntax.all.*
tweak tournament top cache
scala tweaks
use union type after lichess-org#13134
neater cats syntax after lichess-org#13134
New Crowdin updates (lichess-org#13167)
use ReadPref.priTemp
Fix wrong rewrite by scalafmt
fix ublog page title when editing
Update git blame ignore revs
Fix scalafmt crashes
Run scalafmtAll again
Fix compiling error
Run scalafmtAll
reduce some youtube streamer log statement priorities
Bump scalafmt 3.7.7 and add rewrite config
remove last references to ReadPreference
...
* master: (49 commits)
globally import cats.{Eq, Show, data.NonEmptyList}
scala tweaks
fix Long to Int
globally import cats.syntax.all.*
tweak tournament top cache
scala tweaks
use union type after lichess-org#13134
neater cats syntax after lichess-org#13134
New Crowdin updates (lichess-org#13167)
use ReadPref.priTemp
Fix wrong rewrite by scalafmt
fix ublog page title when editing
Update git blame ignore revs
Fix scalafmt crashes
Run scalafmtAll again
Fix compiling error
Run scalafmtAll
reduce some youtube streamer log statement priorities
Bump scalafmt 3.7.7 and add rewrite config
remove last references to ReadPreference
...
users are obviously a very commonly used piece of data, and we can make it lighter and faster this way. It does add some code complexity to load the perfs from DB where and when we actually need it.
user4 document example: