Commit Graph

81 Commits (revert-9852-tournaments_trans)

Author SHA1 Message Date
Thibault Duplessis ed1b9defc7 scalafmt 2.6.1 2020-06-24 11:37:18 +02:00
Niklas Fiekas 9c2e5792eb scalafmt 2020-04-06 23:29:11 +02:00
Niklas Fiekas 1c6d422d97 clean up after removing relation actor 2020-04-06 22:54:52 +02:00
Thibault Duplessis 911ff5b750 remove friend list stuff 2020-03-25 12:36:14 -06:00
Thibault Duplessis 7e04a0bc79 live settings to toggle computation of crosstable/playtime 2020-03-24 13:39:07 -06:00
Thibault Duplessis 00f5daf38f disable live friends list with a live setting 2020-03-23 17:21:34 -06:00
Thibault Duplessis 788dc3430e migrate all remaining AsyncCache 2019-12-23 20:01:51 -05:00
Thibault Duplessis 2f49935bef avoid concurrent relation activity computing 2019-12-22 12:55:56 -05:00
Thibault Duplessis 6cfa509806 monitor relation actor 2019-12-15 10:07:13 -06:00
Thibault Duplessis 74afc821e7 inject play default execution context everywhere - WIP 2019-12-13 19:17:43 -06:00
Thibault Duplessis 5ee1734648 auto-unfollow closed/inactive accounts on follow limit reached
expensive, only once a hour per user.

closes #5737
2019-12-13 14:59:05 -06:00
Thibault Duplessis ff1cc70bef reformat with scalafmt 2019-12-13 08:37:32 -06:00
Thibault Duplessis 41871d3ddf more warnings fixed 2019-12-08 08:12:47 -06:00
Thibault Duplessis edb690ae8c refactor db 2019-12-06 21:37:15 -06:00
Thibault Duplessis b0d798fd37 migration WIP 2019-12-05 12:47:03 -06:00
Thibault Duplessis 547641f69b wire all the things 2019-12-04 22:32:03 -06:00
Thibault Duplessis 7ed4ef4dbb api module WIP 2019-12-04 00:45:33 -06:00
Thibault Duplessis e026f0911f migrate push module 2019-12-03 16:54:39 -06:00
Thibault Duplessis c27821e881 migrate plan module 2019-12-01 11:24:02 -06:00
Thibault Duplessis 209d3fed95 migration WIP 2019-11-30 16:45:44 -06:00
Thibault Duplessis 3a2628fa58 replace akka EventBus implementation with my own - closes #5689 2019-11-26 15:44:28 -06:00
Thibault Duplessis 428853d65d remove more direct socket stuff
and also limited tournaments and the titled users API
2019-11-25 18:03:11 -06:00
Thibault Duplessis 4f0f69e50c send a message when the max follow limit is reached 2019-05-04 10:45:12 +07:00
Thibault Duplessis c1a67637c6 flatten hub.actor 2018-12-09 08:11:28 +07:00
Thibault Duplessis 38858cefeb implement relation API endpoints - closes #4398
See https://lichess.org/api#tag/Relations
2018-07-19 12:35:41 +02:00
Thibault Duplessis 9ddaabd01f stream team users as application/x-ndjson 2018-04-04 03:45:32 +02:00
Isaac Levy 2400da72b4 Prep for Steroids refactor 2017-10-09 11:28:33 -04:00
Thibault Duplessis cdf2f56981 Revert "Merge branch 'scala-2.12-play-2.6' of github.com:ornicar/lila"
This reverts commit 2d3b4872c7, reversing
changes made to 04f1d4ae6d.
2017-09-09 10:01:35 -05:00
Thibault Duplessis 40e71ecc31 2.12 migration WIP 2017-08-25 23:49:14 -05:00
Thibault Duplessis 800a508839 no longer ask the actor for a user's online friends - for #2681 2017-02-17 10:52:07 +01:00
Thibault Duplessis 610f861d97 move thread safe caches out of RelationActor - for #2681 2017-02-17 10:34:32 +01:00
Thibault Duplessis 088db3f70a faster, leaner RelationActor - for #2681 2017-02-17 10:25:07 +01:00
ProgramFOX 61a235a04f Merge branch 'master' of https://github.com/ornicar/lila into study-friend-list-fix 2017-02-14 17:47:46 +01:00
ProgramFOX 5a3e55b984 Fix a bug for study icon in friend list
StudyBecamePublic/StudyBecamePrivate/... did not take the studyId in
account when comparing against onlineStudyingAll/onlineStudying. This
caused bugs like this one: if you are working in a private study, and you
are also a contributor of another private study (but not working there at
the moment), and this latter study becomes public, then the icon would
show up when it should not.

To make this happen, 7e2ec98... had to be reverted.
2017-02-14 17:18:13 +01:00
Thibault Duplessis 54cdf0ca65 reformat ALL the code, using sbt-scalariform 2017-02-14 16:34:07 +01:00
Thibault Duplessis 2d8d79eb29 use ID type alias for User.ID in the relation module 2017-02-14 15:01:58 +01:00
Thibault Duplessis 0ff98169ce remove unused argument 2017-02-14 14:56:44 +01:00
Thibault Duplessis 26f3872ff7 probably faster filtering of online friends that are currently playing 2017-02-14 14:51:22 +01:00
Thibault Duplessis 6ba0e6ca69 remove superfluous cache wrapper, make the cache private 2017-02-14 14:48:02 +01:00
Thibault Duplessis 69513ee8f8 make private what can be private 2017-02-14 14:35:41 +01:00
Thibault Duplessis 7e2ec980ec use an Set cache for onlineStudyingAll, since values were never used 2017-02-14 14:26:26 +01:00
ProgramFOX d7b7fee4cd Lower caching time of relation.Env.onlineStudying(All) 2017-02-13 18:30:51 +01:00
ProgramFOX 8913cd81b3 Study icon for friends in a study
The study icon will appear when:

 * A friend, who is a contributor, joins a study, or makes a move in a study if he does not have the icon yet (the latter happens if you have two studies open and close one).
 * A friend is in a study and gets added as contributor.
 * A friend is a contributor in a private study and the study becomes public.

The study icon will disappear when:

 * A friend, who is a contributor, leaves a study.
 * A friend, who is a contributor, gets his status revoked, or kicked.
 * A friend, who is a contributor, is in a public study that becomes private.
2017-02-12 22:09:23 +01:00
Thibault Duplessis c1ae809f6a extract onlinePlayings out of the relation actor (it's threadsafe) 2017-01-29 15:47:25 +01:00
Thibault Duplessis eeb07caaf8 rename AsyncCache2 to AsyncCache as there's now one to rule them all 2017-01-28 19:51:51 +01:00
Thibault Duplessis 2651456ba6 got rid of spray.caching 2017-01-27 00:23:43 +01:00
Thibault Duplessis 7b115045b6 user LightUser async API in the relation actor 2017-01-25 17:25:46 +01:00
Thibault Duplessis 6233c0f075 explicit synchronous access to LightUser cache 2017-01-25 12:33:04 +01:00
Thibault Duplessis ee1e881a18 remove dead code and unused imports 2017-01-15 13:26:08 +01:00
Thibault Duplessis 553e5ccac6 tweak relation module 2016-07-18 18:45:27 +02:00