Commit Graph
140 Commits
Author SHA1 Message Date
Thibault Duplessis bb3bda793f rename StudyOrder 2025-12-02 11:59:46 +01:00
Thanh Le 03117be178 Add Order.relevant 2025-10-18 12:23:47 +02:00
Thanh Le a81af08f0f Make Order in study/search query parameter
Also make it optional to avoid breaking mobile
2025-10-18 11:13:06 +02:00
Thanh Le b733b0ba41 StudySorting is optional 2025-10-16 20:13:49 +02:00
Thanh Le 4d8a0cda41 Use order and send it to lila-search 2025-10-16 15:20:51 +02:00
Thanh Le 91814d733f Make it compile with new lila-search version 2025-10-15 20:45:44 +02:00
Thibault Duplessis bddf2f77e5 scalafmt align.preset = none 2025-07-25 09:16:15 +02:00
Thanh Le c95f43e1f5 Fix compilation issue 2025-02-23 11:24:45 +01:00
Thibault Duplessis 835fdbd915 better type the current user 2025-02-23 08:14:52 +01:00
Thanh Le 0cae4db5d7 Clean up imports for StudySearchApi 2024-09-10 19:35:02 +02:00
Thanh Le 02b0e8bde0 Fix compilation error for sure 2024-09-10 19:28:58 +02:00
Thanh Le eceae702d1 Remove indexing study in favor of study ingestor 2024-08-11 08:10:24 +02:00
Thanh Le ac203b1332 Run scalafixAll & scalafmtAll & manual fix 2024-07-15 11:59:40 +07:00
Thanh Le 64dc2545d3 Bump lila-search RC10 and use it's types 2024-06-20 08:55:57 +07:00
Thanh Le f6225d8fb5 Bump lila-search RC8
And use count output as Long
2024-06-15 10:39:59 +07:00
Thanh Le 4f6fa36002 Use more specific types for search api 2024-06-11 08:37:53 +07:00
Thanh Le 09947ee8ba Use lila-search Query for GameSearch 2024-06-11 08:34:22 +07:00
Thanh Le 338fd54ab2 Use lila-search Query for StudySearch 2024-06-11 07:59:33 +07:00
Thanh Le 0340b32a4c Cleanup unused code 2024-05-11 15:07:23 +07:00
Thanh Le ec4d56ee6c Align change from lila-search and use noop client 2024-05-11 15:07:23 +07:00
Thanh Le 8695b2d91d Migrate studySearch to lila-search-v3 2024-05-11 15:07:23 +07:00
Thibault Duplessis bb26317261 move the full User model to lila.core.user 2024-04-12 10:55:55 +02:00
Thibault Duplessis cc17923c53 proper Relation type, move types around in core 2024-04-02 21:42:11 +02:00
Thanh Le 450ca8ee8c Revert "Move Json to core"
This reverts commit fc822709c1.
2024-04-02 16:48:02 +07:00
Thanh Le fc822709c1 Move Json to core 2024-04-02 16:01:46 +07:00
Thibault Duplessis 20a71968ed invert common->core dependency wip 2024-04-01 17:40:12 +02:00
Thibault Duplessis 9a4d6fd3a1 modules depend on core, not common 2024-04-01 13:28:26 +02:00
Thibault Duplessis 4343e98bf5 move paginator to scalalib 2024-04-01 12:42:44 +02:00
Thibault Duplessis bef125ab0e move utilities from core to common
these don't go to scalalib because they depend on akka
2024-03-30 19:54:00 +01:00
Thibault Duplessis 3a0bf8464d rename lila.hub -> lila.core 2024-03-30 14:28:39 +01:00
Thanh Le c6a95640e0 Change tree, newTree, Eval package to lila.tree 2024-03-27 23:39:31 +07:00
Thibault Duplessis 97db170687 move modules/tree to modules/hub/tree, remove fishnet dep to evalCache
as a step towards diamond architecture,
with the goal to speed up lila compilation
by allowing more parallelization.
See https://www.youtube.com/watch?v=B6bmlh1hCLo
2024-03-25 15:58:46 +01:00
Thanh Le ce7eb94ec4 Apply scalafix 2024-03-15 13:21:23 +07:00
Thibault Duplessis f8cddbee80 dangerous functions should have long and embarassing names 2024-03-09 08:47:30 +01:00
Thanh LeandThibault Duplessis 7b84562ada Rewrite infix functions in a.b(c) notation, preparing for scala 3.4 (#14777)
* Add scalafmt AvoidInfix rule

* scalafmt AvoidInfix apply

* Fix compile error after 5e0ecbebe4

* Remove AvoidInfix rule because it keeps failing

* Add rewrite commits to git-blame-ignore-revs

* scala 3.4, fix some infix precedence bugs

* fix some more scala 3.4 warnings and errors

hundreds of infix warnings remaining, was the auto-rewrite complete?

* Fix compile error & scala 3.3.3

* Rewrite Avoid infix again

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* More rewrite

* rewrite event module

* More rewrite

* Rewrite clas

* Rewrite puzzle

* Rewrite infix user

* Rewrite infix security

* Rewrite infix streamer

* Rewrite infix team

* Rewrite infix common & playban

* rewrite infix round

* rewrite infix fide

* rewrite infix app/views

* Fix compile errors

* Fix more compile errors

---------

Co-authored-by: Thibault Duplessis <t@lichess.org>
2024-03-02 09:00:23 +01:00
Thibault Duplessis 4a679ad1c1 guess broadcast player fide id from name+title, upgrade scalachess 2024-02-22 12:36:01 +01:00
Thibault Duplessis 6e30293d1b restore simplified RemoveStudy hub message 2023-09-17 13:08:26 +02:00
Thibault Duplessis f10a0556b3 remove A.unit, also scala tweaks
apparently we no longer need to explicitely return a Unit
2023-07-12 08:49:03 +02:00
Thanh Le 33e37c6865 Fix compiling error 2023-07-05 21:53:14 +02:00
Thanh Le 77ff4f65eb Run scalafmtAll 2023-07-05 20:30:08 +02:00
Thibault Duplessis fddb50cad7 akkastream code golf 2023-06-27 15:05:38 +02:00
Thanh Le edeefef7ed Merge branch 'master' into scalachess-15-for-real 2023-05-12 20:28:09 +02:00
Thanh Le dda3f649dd Remove unused things 2023-05-10 21:53:12 +02:00
kraktus cb13de059e Add study.Node methods to tree.Branch
WIP to merge both representations

finish implementing methods for tree.Branch and List[Branch]

Eventually List[Branch] should be abstracted as a total wrapper

Node.Root -> tree.root WIP

finish implementing `Root` methods to `tree.Root`

scalafmt

rewrite BSONhandler of `Node` and `Node.Root` to instead read and write from `tree.Branch` and `tree.Root`

Note: this commit include several DEBUG and TODO comments that need to be addressed later

replace `Study.Node` everywhere WIP

`TreeBuilder` should eventually go but for now it still adds a few info about dests and opening

List[Branch] -> Branches WIP

remove `Node.Root` and `Node` everywhere WIP

more WIP

more WIP

finish replacing Study.Node by tree.{Branch, Root, Branches}

it compiles!

remove legacy Study.Node code and format

remove temporary rename for `Root` in BSONhandler

fix `PgnDumpTest` and `Branches.variations`

Branches.variation now return List[Branch]
2023-04-13 16:00:47 +02:00
Thibault Duplessis 73bce7c8cc java.time.Instant WIP 2023-04-03 13:13:18 +02:00
Thibault Duplessis 61eae34ac0 java.time.LocalDateTime->Instant WIP 2023-04-03 12:24:19 +02:00
Thibault Duplessis b3d90b0344 java.time almost done 2023-04-03 09:51:17 +02:00
Thibault Duplessis af9c3a9409 java.time WIP 2023-04-02 18:45:01 +02:00
Thibault Duplessis 2f2170e79b ignore warnings on Env files as macwire is not handled well 2023-04-01 09:56:44 +02:00
Thibault Duplessis f1d7e6d900 more unused warnings and code tweaks 2023-03-31 14:09:00 +02:00